2020-09-20 16:46:25 +00:00
|
|
|
{{ define "header" }}
|
2021-09-09 06:26:35 +00:00
|
|
|
{{ with .Blog.Announcement }}{{ with .Text }}
|
|
|
|
<div id="announcement" data-nosnippet>
|
|
|
|
{{ md . }}
|
|
|
|
</div>
|
|
|
|
{{ end }}{{ end }}
|
2020-09-20 16:46:25 +00:00
|
|
|
<header>
|
2021-08-04 21:26:38 +00:00
|
|
|
<h1><a href="{{ .Blog.RelativePath "/" }}" rel="home" title="{{ mdtitle .Blog.Title }}" translate="no">{{ mdtitle .Blog.Title }}</a></h1>
|
2020-10-12 16:47:23 +00:00
|
|
|
{{ with .Blog.Description }}<p><i>{{ . }}</i></p>{{ end }}
|
2020-11-01 17:37:21 +00:00
|
|
|
<nav>
|
2021-06-18 12:32:03 +00:00
|
|
|
{{ with index .Blog.Menus "main" }}
|
2021-08-04 21:26:38 +00:00
|
|
|
{{ range $i, $item := .Items }}{{ if ne $i 0 }} • {{ end }}<a href="{{ $item.Link }}">{{ mdtitle $item.Title }}</a>{{ end }}
|
2020-11-01 17:37:21 +00:00
|
|
|
{{ end }}
|
|
|
|
</nav>
|
2021-02-20 22:35:16 +00:00
|
|
|
{{ if .LoggedIn }}
|
|
|
|
<nav>
|
2021-06-18 12:32:03 +00:00
|
|
|
<a href="{{ .Blog.RelativePath "/editor" }}">{{ string .Blog.Lang "editor" }}</a>
|
2021-02-20 22:35:16 +00:00
|
|
|
• <a href="/notifications">{{ string .Blog.Lang "notifications" }}</a>
|
2021-04-23 17:36:57 +00:00
|
|
|
{{ if .WebmentionReceivingEnabled }}• <a href="/webmention">{{ string .Blog.Lang "webmentions" }}</a>{{ end }}
|
2021-06-18 12:32:03 +00:00
|
|
|
{{ if .CommentsEnabled }}• <a href="{{ .Blog.RelativePath "/comment" }}">{{ string .Blog.Lang "comments" }}</a>{{ end }}
|
2021-02-24 15:01:10 +00:00
|
|
|
• <a href="/logout">{{ string .Blog.Lang "logout" }}</a>
|
2021-02-20 22:35:16 +00:00
|
|
|
</nav>
|
|
|
|
{{ end }}
|
2020-09-20 16:46:25 +00:00
|
|
|
</header>
|
|
|
|
{{ end }}
|