feat: add detection of the theme version and Hugo version (#173)

* feat: add detection of the theme version and Hugo version

* fix: hugo.IsProduction is incompatible in Hugo v0.62.0
This commit is contained in:
Dillon
2020-03-16 21:35:16 +08:00
committed by GitHub
parent 9a7189c2a3
commit 41c2d3a38e
20 changed files with 53 additions and 26 deletions

View File

@@ -189,7 +189,7 @@ Note that some of these parameters are explained in details in other sections of
defaultTheme = "auto"
# public git repo url only then enableGitInfo is true
gitRepo = ""
# LoveIt :(fas fa-greater-than-equal): :(far fa-file-archive): 0.1.1
# {{< version 0.1.1 >}}
# which hash function used for SRI, when empty, no SRI is used ("sha256", "sha384", "sha512", "md5")
fingerprint = ""
# Header info
@@ -349,13 +349,13 @@ Note that some of these parameters are explained in details in other sections of
enable = true
# Disqus Comment Config (https://disqus.com/)
[params.comment.disqus]
# LoveIt :(fas fa-greater-than-equal): :(far fa-file-archive): 0.1.1
# {{< version 0.1.1 >}}
enable = false
# Disqus shortname to use Disqus in posts
shortname = ""
# Gitalk Comment Config (https://github.com/gitalk/gitalk)
[params.comment.gitalk]
# LoveIt :(fas fa-greater-than-equal): :(far fa-file-archive): 0.1.1
# {{< version 0.1.1 >}}
enable = false
owner = ""
repo = ""