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:
authorcalintat <calintat@gmail.com>2017-10-21 22:59:15 +0300
committercalintat <calintat@gmail.com>2017-10-21 22:59:15 +0300
commit98a494a4d0767d4d41c36f514c04949224477990 (patch)
tree2fa987cf984f13275b8070243e487231dd0f8403
parentd2564cbb4bcd456946affc088d467d5dbaf3f75f (diff)
parent97a259de880f610db2ab2147df0987cc009382af (diff)
Merge branch 'jamestharpe-master'
-rw-r--r--layouts/partials/body-open.html2
-rw-r--r--layouts/partials/head-open.html2
-rw-r--r--layouts/partials/header.html6
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">