Browse Source

paramaterize links in header from site config

Alexander Avery 3 months ago
parent
commit
393fa5f9fb
  1. 6
      layouts/partials/header.html

6
layouts/partials/header.html

@ -2,9 +2,9 @@
<nav class="spread"> <nav class="spread">
<a href="/"><img src="{{ .Site.Params.logo }}" alt="The {{ .Site.Title }} Logo"></a> <a href="/"><img src="{{ .Site.Params.logo }}" alt="The {{ .Site.Title }} Logo"></a>
<ul class="spread"> <ul class="spread">
<li><a href="https://gitea.beetbox.io/BeetBox" title="Gitea Repositories">Gitea</a></li> {{ range .Site.Params.HeaderLinks }}
<li><a href="https://odysee.com/@BeetBox:f" title="Odysee Channel">Odysee</a></li> <li><a href="{{ .url }}" title="{{ .title }}">{{ .title }}</a></li>
<li><a href="/games" title="Games">Games</a></li> {{ end }}
<li>{{ printf `<a href="/index.xml" title="%s">RSS</a>` $.Site.Title | safeHTML }}</li> <li>{{ printf `<a href="/index.xml" title="%s">RSS</a>` $.Site.Title | safeHTML }}</li>
</ul> </ul>
</nav> </nav>

Loading…
Cancel
Save