[WIP] Migrate to hugo-bearblog theme

This commit is contained in:
2021-04-18 20:48:02 -05:00
committed by BBaoVanC
parent 12576834c2
commit 7d4f8d9f1b
9 changed files with 974 additions and 106 deletions

10
layouts/partials/nav.html Normal file
View File

@ -0,0 +1,10 @@
<!--This file is exactly the same as the one in the theme, except references
to /blog are changed to /posts (since that's what I use).
See lines 7 and 8.-->
<a href="{{ "/" | relURL }}">Home</a>
{{ range .Site.Menus.main }}
<a href="{{ .URL }}">{{ .Name }}</a>
{{ end }}
{{ with .Site.GetPage "/posts" }}
<a href="{{ "/posts" | relURL }}">Blog</a>
{{ end }}