vanilla-hugo/layouts/partials/header.html
Danila Fedorin d570c8f421 Factor GitHub URL and resume link into configuration
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2023-12-30 14:27:37 -08:00

21 lines
866 B
HTML

<div class="container">
<h1>{{ .Site.Title }}</h1>
</div>
<nav>
<div class="container">
<a href="{{ .Site.BaseURL }}">{{ i18n "home" }}</a>
<a href="{{ relref . "about" }}">{{ i18n "about" }}</a>
{{ with .Site.Params.githubUsername }}
<a href="https://github.com/{{ . }}">GitHub</a>
{{ end }}
{{ if .Site.Params.resumeStaticFile }}
<a href="{{ .Site.BaseURL }}/{{ .Site.Params.resumeStaticFile }}">{{ i18n "resume" }}</a>
{{ end }}
<a href="{{ .Site.BaseURL }}/tags">{{ i18n "tags" }}</a>
<a href="{{ .Site.BaseURL }}/series">{{ i18n "series" }}</a>
<a href="{{ .Site.BaseURL }}/favorites">{{ i18n "favorites" }}</a>
<a href="{{ .Site.BaseURL }}/search">{{ i18n "search" }}</a>
<a href="{{ relref . "blog" }}">{{ i18n "allPosts" }}</a>
</div>
</nav>