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

github.com/shaform/hugo-theme-den.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaform <shaform@gmail.com>2018-07-24 17:23:15 +0300
committerShaform <shaform@gmail.com>2018-07-24 17:23:15 +0300
commit0e72312a08ca30131e26e040ca07fc5a7340a976 (patch)
tree2209c7fff1c4ccdbd7f027efe76631cd32d7bc59
parentb88d25b99bd91ad4fd6a9e16a5d9b889ad6ecc97 (diff)
support older version
-rw-r--r--layouts/_default/terms.html4
-rw-r--r--layouts/partials/footer.html4
-rw-r--r--layouts/posts/single.html4
-rw-r--r--theme.toml2
4 files changed, 7 insertions, 7 deletions
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html
index 7fbf926..30f80f8 100644
--- a/layouts/_default/terms.html
+++ b/layouts/_default/terms.html
@@ -27,7 +27,7 @@
{{ range .Data.Terms.ByCount }}
{{ $name := .Name }}
{{ $pages := .Pages }}
- {{ with $.Site.GetPage (printf "/%s/%s" $type .Term) }}
+ {{ with $.Site.GetPage "taxonomy" (printf "/%s/%s" $type .Term) }}
<h2><a href="{{ .Permalink }}">{{ $name }}</a></h2>
<dl class="row">
{{ range first ($.Site.Params.numListPosts | default 10) $pages }}
@@ -48,7 +48,7 @@
{{ range .Data.Terms.Alphabetical }}
{{ $name := .Name }}
{{ $count := len .Pages }}
- {{ with $.Site.GetPage (printf "/%s/%s" $type .Term) }}
+ {{ with $.Site.GetPage "taxonomy" (printf "/%s/%s" $type .Term) }}
<dt class="col-md-3"><span class="badge badge-secondary">{{ $count }}</span> {{ if gt $count 1 }}{{ i18n "articles_tagged" }}{{ else }}{{ i18n "article_tagged" }}{{ end }}</dt>
<dd class="col-md-9"><a href="{{ .Permalink }}">{{ $name }}</a></dd>
{{ end }}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 66ffa7e..eb8757b 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -9,10 +9,10 @@
<li><a href="{{ .URL | absLangURL | safeURL }}">{{ .Name }}</a></li>
{{ end }}
{{ else }}
- {{ with .Site.GetPage "/tags" }}
+ {{ with .Site.GetPage "taxonomyTerm" "/tags" }}
<li><a href="{{ .Permalink }}">{{ i18n "tags" }}</a></li>
{{ end }}
- {{ with .Site.GetPage "/categories" }}
+ {{ with .Site.GetPage "taxonomyTerm" "/categories" }}
<li><a href="{{ .Permalink }}">{{ i18n "categories" }}</a></li>
{{ end }}
{{ end }}
diff --git a/layouts/posts/single.html b/layouts/posts/single.html
index b986299..5f6a191 100644
--- a/layouts/posts/single.html
+++ b/layouts/posts/single.html
@@ -18,7 +18,7 @@
/ {{ i18n "in_category" }}
{{ range . -}}
{{- $name := . -}}
- {{- with $.Site.GetPage (printf "/categories/%s" $name) | default ($.Site.GetPage (printf "/categories/%s" ($name | urlize))) -}}
+ {{- with $.Site.GetPage "taxonomy" (printf "/categories/%s" $name) | default ($.Site.GetPage "taxonomy" (printf "/categories/%s" ($name | urlize))) -}}
{{- if not ($.Scratch.Get "firstcategory") -}}
,
{{ else -}}
@@ -37,7 +37,7 @@
<i class="fas fa-tags" aria-hidden="true"></i>
{{ range (. | sort) -}}
{{- $name := . -}}
- {{- with $.Site.GetPage (printf "/tags/%s" $name) | default ($.Site.GetPage (printf "/tags/%s" ($name | urlize))) -}}
+ {{- with $.Site.GetPage "taxonomy" (printf "/tags/%s" $name) | default ($.Site.GetPage "taxonomy" (printf "/tags/%s" ($name | urlize))) -}}
{{- if not ($.Scratch.Get "firsttag") -}}
,
{{ else -}}
diff --git a/theme.toml b/theme.toml
index a5b4f8a..5a3208a 100644
--- a/theme.toml
+++ b/theme.toml
@@ -5,7 +5,7 @@ description = "A port of the Nest Pelican theme for Hugo"
homepage = "https://github.com/shaform/hugo-theme-den"
tags = ["responsive", "blog", "clean", "multilingual"]
features = ["responsive", "blog", "clean", "multilingual"]
-min_version = "0.45"
+min_version = "0.41"
[author]
name = "shaform"