diff options
author | Brian Picciano <mediocregopher@gmail.com> | 2024-05-18 18:29:19 +0200 |
---|---|---|
committer | Brian Picciano <mediocregopher@gmail.com> | 2024-05-18 18:29:19 +0200 |
commit | 0665d0c65974533fbd313f4e0b062b5103057aeb (patch) | |
tree | 5287795eed9767bd959a5139b77ef78b4024216d /src/http/tpl/post.html | |
parent | ffa26298c95451639a6e01db6692d02d50b3d518 (diff) |
Replace all URL rendering within templates by a URLConstructor
Diffstat (limited to 'src/http/tpl/post.html')
-rw-r--r-- | src/http/tpl/post.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/tpl/post.html b/src/http/tpl/post.html index 46a24fc..1bda8c9 100644 --- a/src/http/tpl/post.html +++ b/src/http/tpl/post.html @@ -27,7 +27,7 @@ This post is part of a series.<br/> {{ if $seriesNextPrev.Next }} - Next: <a href="{{ PostURL $seriesNextPrev.Next.ID }}">{{ $seriesNextPrev.Next.Title }}</a> + Next: <a href="{{ .RootURL.Post $seriesNextPrev.Next.ID }}">{{ $seriesNextPrev.Next.Title }}</a> {{ end }} {{ if and $seriesNextPrev.Next $seriesNextPrev.Previous }} @@ -35,7 +35,7 @@ {{ end }} {{ if $seriesNextPrev.Previous }} - Previously: <a href="{{ PostURL $seriesNextPrev.Previous.ID }}">{{ $seriesNextPrev.Previous.Title }}</a> + Previously: <a href="{{ .RootURL.Post $seriesNextPrev.Previous.ID }}">{{ $seriesNextPrev.Previous.Title }}</a> <br/> {{ end }} |