From 28aa04ddb662bce5f9cabd43985419b9a12cd40c Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Tue, 21 Jul 2020 15:36:30 +0530 Subject: [PATCH] baseof: separate into header, footer --- layouts/_default/baseof.html | 20 ++--------------- layouts/partials/footer.html | 18 +++++++++++----- layouts/partials/header.html | 42 +++++++++++++++++++++++------------- 3 files changed, 42 insertions(+), 38 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 6784f2be..9610585c 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -6,28 +6,12 @@ - {{- if $.Site.Params.SetThemeAuto -}} - - {{- end -}} -
- {{- partial "header.html" . }} -
- + {{- partial "header.html" . }}
{{- block "main" . }} {{end }}
- - - {{ $highlight := resources.Get "js/highlight.min.js" | minify | fingerprint}} - - + {{- partial "footer.html" . }} \ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 1062c079..38f6d30e 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,5 +1,13 @@ -© {{ now.Year }} {{ .Site.Title }} -· -Powered by Hugo️️ -· -Theme️ PaperMod \ No newline at end of file + +{{ $highlight := resources.Get "js/highlight.min.js" | minify | fingerprint}} + + \ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html index c1cc59e8..a72672a5 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,16 +1,28 @@ - \ No newline at end of file + {{- if .Site.Menus.main }} + + {{- end }} + + \ No newline at end of file