diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 29f96f5..cf12701 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -16,7 +16,7 @@ theme = "hugo-theme-minima" [author] name = "XJJ" slogon = "A student and web developer from Earth 🌍" -description = "This is Minima, a clean and minimal Hugo theme porting from Minima on Hexo. It not only inherits everything from Hexo Minima like dark/light mode but intgrated KaTeX and some taxonomies like categories, series and tags. I created this from scratch using SCSS and Vanilla JS without unnecessary development packs! 😁" +description = "This is Minima, a clean and minimal Hugo theme porting from Minima on Hexo. Except for everything from Hexo Minima like dark/light mode, it supports KaTeX and some taxonomies like categories, series and tags. I created this using SCSS, Vanilla JS and most importantly, Hugo. 😁" [params] @@ -32,6 +32,8 @@ comment = "disqus" timeformat = "Jan 2, 2006" # switch for turning on/off lights. switch = ["🌚", "🌝"] +# if true, date of posts will be displayed in the homepage +displayDate = true # OvO is a comment plugin written by the author of Minima. diff --git a/layouts/partials/list.html b/layouts/partials/list.html index a915265..f6c98fa 100644 --- a/layouts/partials/list.html +++ b/layouts/partials/list.html @@ -1,4 +1,6 @@
+{{ if .Params.displayDate }}
{{ dateFormat .Site.Params.timeformat .Date }}
+{{ end }} {{ .Title }}
\ No newline at end of file