show rss feed optional, menu by weight

This commit is contained in:
Luke Smith 2022-06-29 21:44:09 -04:00
parent d3a6b31e4a
commit a88176dd82
3 changed files with 3 additions and 2 deletions

View File

@ -6,3 +6,4 @@ languageCode = 'en-us'
#relatedtext = "Related:"
favicon = "/favicon.ico"
stylesheet = "/style.css"
showrss = true

View File

@ -14,7 +14,7 @@
</main>
<footer>
<a href="{{ .Site.BaseURL }}">{{ .Site.BaseURL }}</a></br>
<a href="/index.xml"><img src="/pix/rss.svg" style="max-height:.9em;display:inline" alt=""> Subscribe via RSS for Updates.</a></footer>
{{ if .Site.Params.showrss }}<a href="/index.xml"><img src="/pix/rss.svg" style="max-height:.9em;display:inline" alt=""> Subscribe via RSS for Updates.</a>{{ end }}
</footer>
</body>
</html>

View File

@ -2,7 +2,7 @@
<nav>
<ul>
{{- $sec := .Page.Section }}{{ $file := .File.TranslationBaseName -}}
{{ range.Site.Menus.main }}{{ $base := path.Base .URL }}
{{ range.Site.Menus.main.ByWeight }}{{ $base := path.Base .URL }}
<a {{ if or ( eq $sec $base ) ( eq $file $base ) ( and (eq $sec "") ( eq $file "_index") (eq $base "/") ) }}class="menuactive" {{ end }}href="{{ .URL }}"><li><span class=pre>{{ .Pre }}</span><span class=menuname>{{ .Name }}</span></li></a>
{{- end }}
</ul>