aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
authorJulien Dessaux2021-03-12 12:22:57 +0100
committerJulien Dessaux2021-03-12 12:24:24 +0100
commit72307e55ee454f8e7cee4971a4f173fdb7804dbb (patch)
tree1a418a3e8eeb2ae7be253a31802c928cd2705a03 /layouts/partials
parentSome more articles reformatting (diff)
downloadwww-72307e55ee454f8e7cee4971a4f173fdb7804dbb.tar.gz
www-72307e55ee454f8e7cee4971a4f173fdb7804dbb.tar.bz2
www-72307e55ee454f8e7cee4971a4f173fdb7804dbb.zip
Added RSS feed link in nav menu, prevented docs section from showing up in the home page feed and tweaked the title of the home page feed to not have the "Home on <website>" title, juste <website>.
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/nav.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index f6bf6c9..b3e4863 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -2,6 +2,7 @@
<nav>
<ul>
<li class="nav-menu-title"><a href="/">{{ .Site.Title }}</a></li>
+ <li><a href="/index.xml">RSS</a></li>
{{- $p := . -}}
{{- range .Site.Menus.main.ByWeight -}}
{{- $active := or ($p.IsMenuCurrent "main" .) ($p.HasMenuCurrent "main" .) -}}
@@ -11,7 +12,7 @@
{{- $url := urls.Parse .URL -}}
{{- $baseurl := urls.Parse $.Site.Params.Baseurl -}}
<li>
- <a class="{{if $active }}nav-menu-active{{end}}" href="{{ with .Page }}{{ .RelPermalink }}{{ else }}{{ .URL | relLangURL }}{{ end }}"{{ if ne $url.Host $baseurl.Host }}target="_blank" {{ end }}>{{ .Name }}</a>
+ <a{{if $active }} class="nav-menu-active"{{end}} href="{{ with .Page }}{{ .RelPermalink }}{{ else }}{{ .URL | relLangURL }}{{ end }}"{{ if ne $url.Host $baseurl.Host }}target="_blank" {{ end }}>{{ .Name }}</a>
</li>
{{ end }}
</ul>