diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/index.html | 10 | ||||
-rw-r--r-- | layouts/partials/footer.html | 10 | ||||
-rw-r--r-- | layouts/partials/header.html | 6 |
3 files changed, 9 insertions, 17 deletions
diff --git a/layouts/index.html b/layouts/index.html index aa2bb11..fde59c7 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,6 +1,8 @@ {{ partial "head.html" . }} -{{ partial "header.html" . }} -<main> - {{ .Content }} -</main> +<body> + {{ partial "header.html" . }} + <main> + {{ .Content }} + </main> +</body> {{ partial "footer.html" . }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 1226f49..8952bf1 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,13 +1,5 @@ <footer> - <hr /> - <nav> - <ul class="links"> - {{ range .Site.Menus.footer }} - <li><a href="{{ .URL }}">{{ .Name }}</a></li> - {{ end }} - </ul> - </nav> - <hr /> Site content is <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC-BY-SA</a>. Projects are <a href="https://www.gnu.org/licenses/gpl-3.0.en.html">GNU GPL</a>. </footer> +</html> diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 2b68b32..d53a61e 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,12 +1,10 @@ <header> <h1>{{ .Title }}</h1> - <hr /> <nav> - <ul class="links"> - {{ range .Site.Menus.header }} + <ul> + {{ range .Site.Menus.nav }} <li><a href="{{ .URL }}">{{ .Name }}</a></li> {{ end }} </ul> </nav> - <hr /> </header> |