From 56aba374b8d34876410f87f6a2c45519093a4977 Mon Sep 17 00:00:00 2001 From: steverusso Date: Mon, 1 Jun 2020 18:07:55 -0400 Subject: [PATCH] Move navbar and footer out of directories where they are the only files, update base template. --- layouts/_default/baseof.html | 12 ++++-------- .../{footer/site-footer.html => footer.html} | 0 .../{navbar/site-navbar.html => navbar.html} | 0 3 files changed, 4 insertions(+), 8 deletions(-) rename layouts/partials/{footer/site-footer.html => footer.html} (100%) rename layouts/partials/{navbar/site-navbar.html => navbar.html} (100%) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 0dd2df1..3f38f69 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -9,21 +9,17 @@ - {{ block "title" . }} - {{ .Site.Title }} - {{ end }} + {{ block "title" . }} {{ .Site.Title }} {{ end }} - {{ partial "navbar/site-navbar.html" . }} + {{ partial "navbar.html" . }}
- {{ block "main" . }} - - {{ end }} + {{ block "main" . }} {{ end }}
- {{ partial "footer/site-footer.html" . }} + {{ partial "footer.html" . }} {{ partial "scripts/scripts.html" . }} diff --git a/layouts/partials/footer/site-footer.html b/layouts/partials/footer.html similarity index 100% rename from layouts/partials/footer/site-footer.html rename to layouts/partials/footer.html diff --git a/layouts/partials/navbar/site-navbar.html b/layouts/partials/navbar.html similarity index 100% rename from layouts/partials/navbar/site-navbar.html rename to layouts/partials/navbar.html