2024-04-23 13:21:26 +00:00
|
|
|
{{ $s := path.Dir (.Permalink | relURL) }}
|
|
|
|
{{ $t := index (split $s "/") 2 }}
|
|
|
|
{{ $o := index (split $s "/") 1 }}
|
2024-04-23 13:28:33 +00:00
|
|
|
<body>
|
|
|
|
<div class="containerx">
|
|
|
|
<header id="header">
|
2024-04-26 09:28:00 +00:00
|
|
|
{{ if eq $o "" }}
|
|
|
|
<div class="logo">
|
|
|
|
<a href="/">{{ partial "svg.html" . }}</a>
|
|
|
|
{{ partial "term.html" . }}
|
|
|
|
</div>
|
|
|
|
{{ else if eq $t "note" }}
|
2024-04-23 13:28:33 +00:00
|
|
|
<div class="logo">
|
|
|
|
<a href="/archive">{{ partial "svg.html" . }}</a>
|
|
|
|
</div>
|
2024-04-26 09:28:00 +00:00
|
|
|
{{ else if eq $t "post" }}
|
2024-04-23 13:28:33 +00:00
|
|
|
<div class="logo">
|
|
|
|
<a href="/blog">{{ partial "svg.html" . }}</a>
|
|
|
|
</div>
|
|
|
|
{{ else }}
|
|
|
|
<div class="logo">
|
|
|
|
<a href="/">{{ partial "svg.html" . }}</a>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</header>
|