* Allow to disable the footer with params.footer.enable = false Default is to have the footer enabled (to keep backwards compatibility). The diff looks much worse than it is, I just added a variable and an if clause, but then had to indent the rest of the file. Make footerEnabled an explicit variable. This should improve readability. Use default parameter for even more readability. * Allow to enable/disable the "contact me" section in the footer. Just set `footer.contactMe.enable` in the config. Default is true, for backwards compatibility. * Make footer template more consistent. Enabling footers elements and the newsletter is now managed in the same place. * Allow to disable the footer navigation. Default is enabled. * Allow to disable credentials and copyright notice. Default: enabled * Footer: Reformat variable initialization for readability. * Allow providing template for footer Signed-off-by: hossainemruz <hossainemruz@gmail.com> Co-authored-by: hossainemruz <hossainemruz@gmail.com>
42 lines
1.2 KiB
HTML
42 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>{{ .Page.Title }}</title>
|
|
<!------ ADD COMMON HEADERS -------->
|
|
{{- partial "header.html" . -}}
|
|
|
|
<!------ ADD PAGE SPECIFIC HEADERS ------->
|
|
{{ block "header" . }} {{ end }}
|
|
|
|
<!-- ADD GOOGLE ANALYTICS IF ENABLED -->
|
|
{{ if site.GoogleAnalytics }}
|
|
{{ template "_internal/google_analytics_async.html" . }}
|
|
{{ end }}
|
|
</head>
|
|
|
|
<body data-spy="scroll" data-target="#TableOfContents" data-offset="80">
|
|
<div class="container-fluid bg-dimmed wrapper">
|
|
<!----- ADD NAVBAR --------------->
|
|
{{ block "navbar" . }} {{ end }}
|
|
|
|
<!----- ADD SIDEBAR --------------->
|
|
{{ block "sidebar" . }} {{ end }}
|
|
|
|
<!----- ADD PAGE CONTENT --------->
|
|
{{ block "content" . }} {{ end }}
|
|
|
|
<!----- ADD TABLE OF CONTENTS ----------->
|
|
{{ block "toc" . }} {{ end }}
|
|
</div>
|
|
|
|
<!------- ADD FOOTER ------------>
|
|
{{ $footerTemplate:= site.Params.footer.template | default "footer.html" }}
|
|
{{- partial $footerTemplate . -}}
|
|
|
|
<!------- ADD COMMON SCRIPTS ------->
|
|
{{ partial "scripts.html" . }}
|
|
|
|
<!------- ADD PAGE SPECIFIC SCRIPTS ------>
|
|
{{ block "scripts" . }} {{ end }}
|
|
</body>
|
|
</html>
|