Skip to content

Commit f53fc12

Browse files
fix(config): site.DisqusShortname and site.GoogleAnalytics are deprecated (CaiJimmy#952)
Remove deprecations. Fixes CaiJimmy#895
1 parent 188e49e commit f53fc12

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

exampleSite/config.yaml

+16-14
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ paginate: 3
55
title: Example Site
66
copyright: Example Person
77

8+
# Theme i18n support
9+
# Available values: ar, bn, ca, de, el, en, es, fr, hu, id, it, ja, ko, nl, pt-br, th, uk, zh-cn, zh-hk, zh-tw
10+
DefaultContentLanguage: en
11+
12+
# Set hasCJKLanguage to true if DefaultContentLanguage is in [zh-cn ja ko]
13+
# This will make .Summary and .WordCount behave correctly for CJK languages.
14+
hasCJKLanguage: false
15+
816
languages:
917
en:
1018
languageName: English
@@ -26,19 +34,13 @@ languages:
2634
params:
2735
description: وصف تجريبي
2836

29-
# Change it to your Disqus shortname before using
30-
disqusShortname: hugo-theme-stack
31-
32-
# GA Tracking ID
33-
googleAnalytics:
34-
35-
# Theme i18n support
36-
# Available values: ar, bn, ca, de, el, en, es, fr, hu, id, it, ja, ko, nl, pt-br, th, uk, zh-cn, zh-hk, zh-tw
37-
DefaultContentLanguage: en
38-
39-
# Set hasCJKLanguage to true if DefaultContentLanguage is in [zh-cn ja ko]
40-
# This will make .Summary and .WordCount behave correctly for CJK languages.
41-
hasCJKLanguage: false
37+
services:
38+
# Change it to your Disqus shortname before using
39+
disqus:
40+
shortname: "hugo-theme-stack"
41+
# GA Tracking ID
42+
googleAnalytics:
43+
id:
4244

4345
permalinks:
4446
post: /p/:slug/
@@ -49,7 +51,7 @@ params:
4951
- post
5052
featuredImageField: image
5153
rssFullContent: true
52-
favicon: # e.g.: favicon placed in `static/favicon.ico` of your site folder, then set this field to `/favicon.ico` (`/` is necessary)
54+
favicon: # e.g.: favicon placed in `static/favicon.ico` of your site folder, then set this field to `/favicon.ico` (`/` is necessary)
5355

5456
footer:
5557
since: 2020

0 commit comments

Comments
 (0)