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

github.com/it-gro/hugo-theme-w3css-basic.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorit-gro <grossnik@tuvok>2018-08-25 09:13:14 +0300
committerit-gro <grossnik@tuvok>2018-08-25 09:13:14 +0300
commitf7b22c927877f446a057141536744588073b12e1 (patch)
treebc978f4f206f6cfa6aae512507d95d9df7a14c9d
parent49286ccf00992a6b8d95e1803b8235635a23419b (diff)
Fix .Site.GetPage issue
-rw-r--r--layouts/shortcodes/litt.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/shortcodes/litt.html b/layouts/shortcodes/litt.html
index 08d481d..a62ada6 100644
--- a/layouts/shortcodes/litt.html
+++ b/layouts/shortcodes/litt.html
@@ -19,7 +19,8 @@
`theOutFormat` : {{- $.Scratch.Get `theOutFormat` }} <br/>
{{- end }}
-{{- with $.Site.GetPage `taxonomy` ($.Scratch.Get `theTaxonomy`) (lower ($.Scratch.Get `theTaxTerm`)) }}
+{{/*- with $.Site.GetPage `taxonomy` ($.Scratch.Get `theTaxonomy`) (lower ($.Scratch.Get `theTaxTerm`)) */}}
+{{- with $.Site.GetPage ($.Scratch.Get `theTaxonomy`) (lower ($.Scratch.Get `theTaxTerm`)) }}
<a href='{{.URL}}'>
{{- if findRE `.Kind` ($.Scratch.Get `theOutFormat`)}}{{.Kind -}}:&nbsp;{{end}}
{{- if findRE `.RelPermalink` ($.Scratch.Get `theOutFormat`)}}{{.RelPermalink}}{{end}}