diff options
-rw-r--r-- | layouts/partials/body-open.html | 2 | ||||
-rw-r--r-- | layouts/partials/head-open.html | 2 | ||||
-rw-r--r-- | layouts/partials/header.html | 6 |
3 files changed, 9 insertions, 1 deletions
diff --git a/layouts/partials/body-open.html b/layouts/partials/body-open.html new file mode 100644 index 0000000..11b798a --- /dev/null +++ b/layouts/partials/body-open.html @@ -0,0 +1,2 @@ + <!-- Intentionally left empty. Override this partial in your website to insert code just after the + opening <body> tag. For example, to install Google Analytics. -->
\ No newline at end of file diff --git a/layouts/partials/head-open.html b/layouts/partials/head-open.html new file mode 100644 index 0000000..9828a89 --- /dev/null +++ b/layouts/partials/head-open.html @@ -0,0 +1,2 @@ + <!-- Intentionally left empty. Override this partial in your website to insert code just after the + opening <head> tag. For example, to install Google Tag Manager. -->
\ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html index d925d88..a28a851 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,6 +1,7 @@ <!DOCTYPE html> <html lang="{{ .Site.LanguageCode }}"> <head> + {{ partial "head-open" . }} <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>{{ .Title }}</title> @@ -9,6 +10,8 @@ <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> <link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" 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> @@ -18,10 +21,11 @@ gtag('config', '{{ .Site.GoogleAnalytics }}'); </script> + {{ end }} </head> <body> - + {{ partial "body-open" . }} <nav class="navbar navbar-default navbar-fixed-top"> <div class="container"> |