Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/calintat/minimal.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCalin Tataru <calintat@gmail.com>2019-10-10 19:16:10 +0300
committerCalin Tataru <calintat@gmail.com>2019-10-10 19:16:10 +0300
commitc185a525dc870dce7e06dae4c0e437693f2121a7 (patch)
tree229a68301fb2e4a9590dbece5b0bc4878350b993
parent80c365b18d8ff410e3d69e856bdd456c538cb526 (diff)
Add body-close (similar to head-close)
-rw-r--r--layouts/partials/body-close.html5
-rw-r--r--layouts/partials/body-open.html7
-rw-r--r--layouts/partials/footer.html2
-rw-r--r--layouts/partials/head-close.html8
-rw-r--r--layouts/partials/head-open.html8
-rw-r--r--layouts/partials/header.html30
6 files changed, 33 insertions, 27 deletions
diff --git a/layouts/partials/body-close.html b/layouts/partials/body-close.html
new file mode 100644
index 0000000..5c09a68
--- /dev/null
+++ b/layouts/partials/body-close.html
@@ -0,0 +1,5 @@
+<!--
+ This partial has been intentionally left empty.
+ Override this in your site to insert code just before the closing <body> tag.
+ For example, to install an analytics tracking package.
+-->
diff --git a/layouts/partials/body-open.html b/layouts/partials/body-open.html
index 87b95b8..b022929 100644
--- a/layouts/partials/body-open.html
+++ b/layouts/partials/body-open.html
@@ -1,2 +1,5 @@
-<!-- Intentionally left empty. Override this partial in your website to insert code
-just after the opening <body> tag. For example, to install Google Analytics. -->
+<!--
+ This partial has been intentionally left empty.
+ Override this in your site to insert code just after the opening <body> tag.
+ For example, to install an analytics tracking package.
+-->
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 07cead4..7743b5b 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -2,6 +2,8 @@
<p class="copyright text-muted">{{ .Site.Params.copyright | default "&copy; All rights reserved. Powered by [Hugo](https://gohugo.io) and [Minimal](https://github.com/calintat/minimal)." | markdownify }}</p>
</footer>
+ {{ partial "body-close" . }}
+
</body>
</html>
diff --git a/layouts/partials/head-close.html b/layouts/partials/head-close.html
index 9f34255..5e91c16 100644
--- a/layouts/partials/head-close.html
+++ b/layouts/partials/head-close.html
@@ -1,5 +1,5 @@
- <!--
- Intentionally left empty. Override this partial in your site to insert
- code just after the CLOSING <head> tag. For example, to install an
- analytics tracking package.
+<!--
+ This partial has been intentionally left empty.
+ Override this in your site to insert code just before the closing <head> tag.
+ For example, to install an analytics tracking package.
-->
diff --git a/layouts/partials/head-open.html b/layouts/partials/head-open.html
index 1cf1342..cb72120 100644
--- a/layouts/partials/head-open.html
+++ b/layouts/partials/head-open.html
@@ -1,5 +1,5 @@
<!--
- Intentionally left empty. Override this partial in your site to insert
- code just after the OPENING <head> tag. For example, to install an
- analytics tracking package.
---> \ No newline at end of file
+ This partial has been intentionally left empty.
+ Override this in your site to insert code just after the opening <head> tag.
+ For example, to install an analytics tracking package.
+-->
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 90101d1..108232e 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -6,33 +6,29 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ .Title }}</title>
{{ if .Site.Params.favicon }}
- <link rel="icon" href="{{ .Site.Params.favicon | absURL }}">
+ <link rel="icon" href="{{ .Site.Params.favicon | absURL }}">
{{ end }}
{{ partial "css" . }} {{ partial "js" . }} {{ hugo.Generator }}
{{ with .OutputFormats.Get "RSS" }}
- <link href="{{ .RelPermalink }}" rel="alternate" type="{{ .MediaType.Type }}" title="{{ $.Site.Title }}" />
- <link href="{{ .RelPermalink }}" rel="feed" type="{{ .MediaType.Type }}" title="{{ $.Site.Title }}" />
+ <link href="{{ .RelPermalink }}" rel="alternate" type="{{ .MediaType.Type }}" title="{{ $.Site.Title }}" />
+ <link href="{{ .RelPermalink }}" rel="feed" type="{{ .MediaType.Type }}" title="{{ $.Site.Title }}" />
{{ end }}
{{ if .Site.GoogleAnalytics }}
- <!-- Global Site Tag (gtag.js) - Google Analytics -->
- <script async src="https://www.googletagmanager.com/gtag/js?id={{ .Site.GoogleAnalytics }}"></script>
- <script>
- window.dataLayer = window.dataLayer || [];
- function gtag(){dataLayer.push(arguments)};
- gtag('js', new Date());
- gtag('config', '{{ .Site.GoogleAnalytics }}');
- </script>
+ <script async src="https://www.googletagmanager.com/gtag/js?id={{ .Site.GoogleAnalytics }}"></script>
+ <script>
+ window.dataLayer = window.dataLayer || [];
+ function gtag(){dataLayer.push(arguments)};
+ gtag('js', new Date());
+ gtag('config', '{{ .Site.GoogleAnalytics }}');
+ </script>
{{ end }}
- {{ partial "head-close" . }}
- </head>
{{ if .Site.Params.MathJax | default true }}
- <!-- adds MathJax support -->
- <script type="text/javascript" async
- src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
- </script>
+ <script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
{{ end }}
+
+ {{ partial "head-close" . }}
</head>
<body>