diff options
author | Vincent Tam <sere@live.hk> | 2019-08-02 13:23:14 +0300 |
---|---|---|
committer | Vincent Tam <sere@live.hk> | 2019-08-02 13:25:19 +0300 |
commit | dc5a80f7a274b22bb9cce5f9fb0ab254ee14347f (patch) | |
tree | a6df3a4dda9bcba9aa84978e116fecb217677f90 | |
parent | c86fb57d14c2eb8a1b9115f1a2f300817bfedfa7 (diff) |
Corrected theme link and index list
In response to https://github.com/gohugoio/hugoThemes/issues/665#issuecomment-517635357
-rw-r--r-- | layouts/index.html | 3 | ||||
-rw-r--r-- | theme.toml | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/layouts/index.html b/layouts/index.html index ade1783..70b5a13 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,5 +1,6 @@ {{ define "main" }} -{{- range (.Paginator 5).Pages -}} +{{- $paginator := .Paginate (where site.RegularPages "Type" "in" site.Params.mainSections) 5 -}} +{{- range $paginator.Pages -}} <article> <header> <h1> @@ -3,9 +3,9 @@ name = "Huginn" license = "GPL3" -licenselink = "https://framagit.org/staticman-gitlab-pages/hugo-theme-huginn/blob/master/LICENSE.md" -description = "A simple blog theme for Hugo, inspired by [Pneumatic](https://github.com/iKevinY/pneumatic) (A Pelican theme)" -homepage = "https://framagit.org/staticman-gitlab-pages/hugo-theme-huginn" +licenselink = "https://gitlab.com/VincentTam/huginn/blob/master/LICENSE.md" +description = "A simple Hugo + Staticman blog theme" +homepage = "https://gitlab.com/VincentTam/huginn" tags = [ "responsive", "simple", |