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

github.com/Lednerb/bilberry-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Brendel <mail@lednerb.eu>2020-07-27 14:08:15 +0300
committerSascha Brendel <mail@lednerb.eu>2020-07-27 14:08:15 +0300
commitd3c1138c1e95f69a04a0dab6ab40b57293b362af (patch)
tree8e9cd844cba614861eeaad78db0d81d4be13f6a8
parent6dc4b19464822457ad165c5a2a31982255e97421 (diff)
Fixed missing .ctx reference from refactoring #208
-rw-r--r--layouts/partials/default-content.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/default-content.html b/layouts/partials/default-content.html
index d072433..21e67a1 100644
--- a/layouts/partials/default-content.html
+++ b/layouts/partials/default-content.html
@@ -22,17 +22,17 @@
<span class="categories">
{{ range . }}
{{ $urlValue := replace . " " "-" | lower}}
- {{ with $.Site.GetPage (printf "/categories/%s" $urlValue) }}
+ {{ with $.ctx.Site.GetPage (printf "/categories/%s" $urlValue) }}
<a href="{{ .Permalink }}">{{ .Title }}</a>
{{ end }}
{{ end }}
</span>
{{ end }}
- {{ with .Params.author }}
+ {{ with .ctx.Params.author }}
<span class="author">
{{ $urlValue := replace . " " "-" | lower}}
- {{ with $.Site.GetPage (printf "/author/%s" $urlValue ) }}
+ {{ with $.ctx.Site.GetPage (printf "/author/%s" $urlValue ) }}
<a href="{{ .Permalink }}">{{ .Title }}</a>
{{ end }}
</span>