Skip to content

Commit

Permalink
update screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
JugglerX committed Jan 3, 2019
1 parent 7b77b9e commit 98112e4
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 11 deletions.
Binary file modified images/screenshot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 24 additions & 11 deletions layouts/partials/google-analytics.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
{{ if .Site.Params.google_analytics_id }}
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ .Site.Params.google_analytics_id }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', '{{ .Site.Params.google_analytics_id }}');
</script>
{{ end }}
{{ if eq (getenv "HUGO_ENV") "production" }}
{{ if isset (getenv "HUGO_GOOGLE_ANALYTICS_ID") }}
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{getenv "HUGO_GOOGLE_ANALYTICS_ID" }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', '{{getenv "HUGO_GOOGLE_ANALYTICS_ID" }}');
</script>
{{ else }}
{{ if .Site.Params.google_analytics_id }}
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ .Site.Params.google_analytics_id }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{ .Site.Params.google_analytics_id }}');
</script>
{{ end }}
{{ end}}
{{ end }}

0 comments on commit 98112e4

Please sign in to comment.