summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-05-04 20:41:52 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-05-04 20:41:52 +0200
commit51ec28ab172054a7e7eba4eb0558ab697dd344f1 (patch)
tree5697aab395e998056e7d9470b11c40d8a7789d6a
parentbcc057616988fd86fedfc89d3f66da8219282b4d (diff)
Move GA to bottom
-rw-r--r--template/root.tmpl14
1 files changed, 6 insertions, 8 deletions
diff --git a/template/root.tmpl b/template/root.tmpl
index b9f76c6..199254c 100644
--- a/template/root.tmpl
+++ b/template/root.tmpl
@@ -1,15 +1,14 @@
{{/* This template is combined with other templates to render blog pages. */}}
-{{define "google"}}
- <meta name="google-site-verification" content="3cwuN4OwVfNZEGTw5Q9UotI2AJCTzr8F7QB8uhtfAWo">
- <script>
+{{define "ga"}}
+<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-22272807-1', 'auto');
ga('send', 'pageview');
- </script>
+</script>
{{end}}
{{define "root"}}
@@ -18,12 +17,10 @@
<head>
<meta charset="UTF-8">
<title>{{template "title" .}}</title>
- <link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Abel">
- <link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Raleway">
- <link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Anonymous+Pro">
+ <link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Abel|Raleway|Anonymous+Pro">
<link rel="stylesheet" type="text/css" href="/static/style.css">
<link rel="alternate" type="application/atom+xml" title="Atom Feed" href="/feed.atom">
- {{template "google"}}
+ <meta name="google-site-verification" content="3cwuN4OwVfNZEGTw5Q9UotI2AJCTzr8F7QB8uhtfAWo">
</head>
<body>
@@ -57,6 +54,7 @@
</aside>
{{template "content" .}}
+{{template "ga"}}
</body>
</html>