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>.
This commit is contained in:
parent
8d4bb3881d
commit
72307e55ee
3 changed files with 47 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue