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

gitlab.com/VincentTam/huginn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Tam <sere@live.hk>2019-08-02 13:23:14 +0300
committerVincent Tam <sere@live.hk>2019-08-02 13:25:19 +0300
commitdc5a80f7a274b22bb9cce5f9fb0ab254ee14347f (patch)
treea6df3a4dda9bcba9aa84978e116fecb217677f90
parentc86fb57d14c2eb8a1b9115f1a2f300817bfedfa7 (diff)
Corrected theme link and index list
In response to https://github.com/gohugoio/hugoThemes/issues/665#issuecomment-517635357
-rw-r--r--layouts/index.html3
-rw-r--r--theme.toml6
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>
diff --git a/theme.toml b/theme.toml
index 8764a6f..6834007 100644
--- a/theme.toml
+++ b/theme.toml
@@ -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",