mirror of
https://github.com/morgan9e/blog
synced 2026-04-14 00:04:07 +09:00
Reset
This commit is contained in:
8
themes/plain/layouts/partials/nav.html
Normal file
8
themes/plain/layouts/partials/nav.html
Normal file
@@ -0,0 +1,8 @@
|
||||
{{ $parent := .Parent }}
|
||||
<nav class="site-nav">
|
||||
{{ if and $parent (not $parent.IsHome) }}
|
||||
<a href="{{ $parent.RelPermalink }}">← {{ with $parent.Title }}{{ . }}{{ else }}{{ $parent.Section }}{{ end }}</a>
|
||||
{{ else }}
|
||||
<a href="/">← home</a>
|
||||
{{ end }}
|
||||
</nav>
|
||||
Reference in New Issue
Block a user