Updated GoogleAnalytics. Updated wiki formatting.

This commit is contained in:
Chris 2018-01-13 01:40:20 -05:00
parent 6b28ab5855
commit a492a3de7d
2 changed files with 30 additions and 15 deletions

View file

@ -43,13 +43,20 @@
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-112443698-1"></script>
<script type="text/javascript">
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{ .Site.Params.GoogleAnalyticsTrackingId }}');
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<!-- Google Analytics -->
<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','https://www.google-analytics.com/analytics.js','ga');
ga('create', '{{ .Site.Params.GoogleAnalyticsTrackingId }}', 'auto');
ga('send', 'pageview');
</script>
<!-- End Google Analytics -->
{{- block "scripts" . }}{{- end }}
</body>

View file

@ -1,11 +1,19 @@
{{ define "main" }}
<article class="message is-primary">
<div class="message-body">
<p>The below wiki article is based on user submitted content.</p>
<p>Please verify <strong>all</strong> hyperlinks and terminal commands below!</p>
See a mistake? Want to contribute? <a href="{{ .Site.Params.GithubURL }}/wiki/{{ .File.BaseFileName }}/_edit/">Edit this article on Github</a>
</div>
</article>
<section class="section">
<div class="container">
<h1 class="title">{{ .Title }}</h1>
<div class="content">
{{ .Content }}
{{ end }}
<article class="message is-primary">
<div class="message-body">
<p>The below wiki article is based on user submitted content.</p>
<p>Please verify
<strong>all</strong> hyperlinks and terminal commands below!</p>
See a mistake? Want to contribute?
<a href="{{ .Site.Params.GithubURL }}/wiki/{{ .File.BaseFileName }}/_edit/">Edit this article on Github</a>
</div>
</article>
{{ .Content }}
</div>
</div>
</section>