Skip to content

Commit

Permalink
Implement hugo privacy config, set version 0.41.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbub committed May 28, 2018
1 parent 5b9400c commit 2340a01
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 31 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ copyright = "My Name"
googleAnalytics = "XXX"
disqusShortname = "XXX"

[Privacy]

[Privacy.disqus]
disable = true

[Privacy.googleAnalytics]
anonymizeIP = true
respectDoNotTrack = true
useSessionStorage = false

[Author]
name = "My Name"
profile = "https://google.com/+XXX"
Expand All @@ -72,8 +82,6 @@ disqusShortname = "XXX"
dateFormat = "Mon, Jan 2, 2006"
highlightJsUrl = ""
highlightJsLocalUrl = ""
googleAnalyticsAnonymizeIP = false
googleAnalyticsRespectDoNotTrack = false

[Permalinks]
post = "/:year/:month/:day/:filename/"
Expand Down
12 changes: 10 additions & 2 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ copyright = "My Name"
disqusShortname = "XXX"
googleAnalytics = "XXX"

[Privacy]

[Privacy.disqus]
disable = true

[Privacy.googleAnalytics]
anonymizeIP = true
respectDoNotTrack = true
useSessionStorage = false

[Author]
name = "My Name"
profile = "https://google.com/+XXX"
Expand All @@ -32,8 +42,6 @@ googleAnalytics = "XXX"
dateFormat = "Mon, Jan 2, 2006"
highlightJsUrl = ""
highlightJsLocalUrl = ""
googleAnalyticsAnonymizeIP = false
googleAnalyticsRespectDoNotTrack = false

[Permalinks]
post = "/:year/:month/:day/:filename/"
Expand Down
25 changes: 0 additions & 25 deletions layouts/partials/google_analytics.html

This file was deleted.

2 changes: 1 addition & 1 deletion layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{{ partial "extra-in-head.html" . }}
</head>
<body>
{{ partial "google_analytics.html" . }}
{{ template "_internal/google_analytics.html" . }}

<div id="wrapper">
<header class="site-header">
Expand Down
2 changes: 1 addition & 1 deletion theme.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "A fork of simple AJAX driven theme for the Ghost blogging platfor
homepage = "https://github.com/jbub/ghostwriter"
tags = ["blog", "technical", "personal"]
features = ["blog", "technical", "personal"]
min_version = 0.37
min_version = "0.41"

[author]
name = "Juraj Bubniak"
Expand Down

0 comments on commit 2340a01

Please sign in to comment.