mirror of
https://github.com/Vimux/Binario.git
synced 2024-11-11 01:38:28 +00:00
Fix deprecated config params (GA, Disqus) (#89)
As of Hugo 0.120.0, `.Site.disqusShortname` and `.Site.googleAnalytics` are deprecated. Backward
compatible change, new notation supported from Hugo v0.41. See
4ddcf52ccc
This commit is contained in:
parent
3f0f4c199c
commit
2558f6bbde
2 changed files with 8 additions and 3 deletions
|
@ -123,8 +123,13 @@ title = "Binario"
|
||||||
languageCode = "en-us"
|
languageCode = "en-us"
|
||||||
paginate = "10" # Number of elements per page in pagination
|
paginate = "10" # Number of elements per page in pagination
|
||||||
theme = "binario"
|
theme = "binario"
|
||||||
disqusShortname = "" # Enable comments by entering your Disqus shortname
|
disqusShortname = "" # DEPRECATED! Use .Services.Disqus.Shortname
|
||||||
googleAnalytics = "" # Enable Google Analytics by entering your tracking id
|
googleAnalytics = "" # DEPRECATED! Use .Services.googleAnalytics.ID
|
||||||
|
|
||||||
|
[services.disqus]
|
||||||
|
shortname = "" # Enable Disqus by entering your Disqus shortname
|
||||||
|
[services.googleAnalytics]
|
||||||
|
ID = "" # Enable Google Analytics by entering your tracking ID
|
||||||
|
|
||||||
[Author] # Used in authorbox
|
[Author] # Used in authorbox
|
||||||
name = "John Doe"
|
name = "John Doe"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{{ if and (.Site.DisqusShortname) (.Param "comments") (not .Site.IsServer) }}
|
{{ if and (.Site.Config.Services.Disqus.Shortname) (.Param "comments") (not .Site.IsServer) }}
|
||||||
<section class="comments block">
|
<section class="comments block">
|
||||||
{{ template "_internal/disqus.html" . }}
|
{{ template "_internal/disqus.html" . }}
|
||||||
</section>
|
</section>
|
||||||
|
|
Loading…
Reference in a new issue