Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/coderzh/hugo-pacman-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcoderzh <coderzh@gmail.com>2018-03-30 17:52:33 +0300
committercoderzh <coderzh@gmail.com>2018-03-30 18:00:02 +0300
commit1604409a72ca7494c3847ebfe138a121fd03d007 (patch)
treee3b46437665b4388fa35ac1cb70b0f6b415fc011
parent91b2c8922baef7e2d602e0b12f2f40a3fcd5cab3 (diff)
support Hugo v0.37.1 #19 #18 #17 #14
-rw-r--r--exampleSite/config.toml20
-rw-r--r--layouts/partials/footer.html2
-rw-r--r--theme.toml6
3 files changed, 19 insertions, 9 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 81529e4..e6335d2 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -1,15 +1,22 @@
-BaseURL = "http://coderzh.github.io/"
+BaseURL = "http://coderzh.github.io/hugo-pacman-theme/"
LanguageCode = "zh-CN"
HasCJKLanguage = true
Title = "Hugo PacMan Theme Demo"
Theme = "hugo-pacman-theme"
pygmentsStyle = "default"
pygmentsUseClasses = true
-RSSUri = "feed.xml"
[Author]
Name = "coderzh"
+[outputs]
+ home = [ "RSS", "HTML" ]
+
+[outputFormats]
+ [outputFormats.RSS]
+ mediatype = "application/rss"
+ baseName = "feed"
+
[Params]
AuthorHomepage = "http://blog.coderzh.com"
BottomIntroduce = "Introduce1 <br/> Introduce2"
@@ -26,9 +33,12 @@ RSSUri = "feed.xml"
DateFormat = "2006年01月02日"
MonthFormat = "2006年01月"
FancyBox = true
- # DuoShuoShortName = "coderzh"
- DisqusShortName = "coderzh"
- GoogleAnalyticsID = "UA-10147768-2"
+
+ [Params.GoogleAnalytics]
+ ID = "UA-10147768-2"
+
+ [Params.Disqus]
+ ShortName = "coderzh"
[Params.Strings]
Search = "搜索"
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 06c51f2..e49fda4 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -27,7 +27,7 @@
<a href="https://www.linkedin.com/{{ . }}" target="_blank" title="linkedin"></a>
{{ end }}
</div>
- <p class="copyright">Powered by <a href="http://gohugo.io" target="_blank" title="hugo">hugo</a> and Theme by <a href="https://github.com/coderzh/hugo-pacman-theme" target="_blank" title="hugo-pacman-theme">hugo-pacman-theme</a> © {{ .Now.Year }}
+ <p class="copyright">Powered by <a href="http://gohugo.io" target="_blank" title="hugo">hugo</a> and Theme by <a href="https://github.com/coderzh/hugo-pacman-theme" target="_blank" title="hugo-pacman-theme">hugo-pacman-theme</a> © {{ now.Format "2006" }}
{{ if .Site.Author.Name }}
<a href="{{ .Site.BaseURL }}" target="_blank" title="{{ .Site.Author.Name }}">{{ .Site.Author.Name }}</a>
{{ else }}
diff --git a/theme.toml b/theme.toml
index d187275..da377b4 100644
--- a/theme.toml
+++ b/theme.toml
@@ -5,14 +5,14 @@ name = "Hugo Pacman Theme"
license = "MIT"
licenselink = "https://github.com/coderzh/hugo-pacman-theme/blob/master/LICENSE.md"
description = ""
-homepage = "http://blog.coderzh.com/"
-tags = ["", ""]
+homepage = "https://github.com/coderzh/hugo-pacman-theme"
+tags = ["Pacman", "Blog", "Responsive"]
features = ["", ""]
min_version = 0.15
[author]
name = "coderzh"
- homepage = "http://blog.coderzh.com"
+ homepage = "https://github.com/coderzh/hugo-pacman-theme"
# If porting an existing theme
[original]