diff options
author | Sascha Brendel <mail@lednerb.eu> | 2020-07-27 14:08:15 +0300 |
---|---|---|
committer | Sascha Brendel <mail@lednerb.eu> | 2020-07-27 14:08:15 +0300 |
commit | d3c1138c1e95f69a04a0dab6ab40b57293b362af (patch) | |
tree | 8e9cd844cba614861eeaad78db0d81d4be13f6a8 | |
parent | 6dc4b19464822457ad165c5a2a31982255e97421 (diff) |
Fixed missing .ctx reference from refactoring #208
-rw-r--r-- | layouts/partials/default-content.html | 6 |
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> |