diff options
author | tdro <tdro@noreply.example.com> | 2022-06-05 01:52:32 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-06-05 01:52:32 -0400 |
commit | 3bbf841311209695660efc06d5f598dff49380a0 (patch) | |
tree | 4d8077246427801fee7db34725c8eea7d22cf554 /assets/templates | |
parent | b7e72b625895e9cbbfd086391cd9d3fff56a8925 (diff) | |
download | canory-3bbf841311209695660efc06d5f598dff49380a0.tar.gz canory-3bbf841311209695660efc06d5f598dff49380a0.tar.bz2 canory-3bbf841311209695660efc06d5f598dff49380a0.zip |
assets/templates/markdown-feed: Ensure relative links on enclosure
Diffstat (limited to 'assets/templates')
-rw-r--r-- | assets/templates/markdown-feed.yaml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/templates/markdown-feed.yaml b/assets/templates/markdown-feed.yaml index 8361144..8ea9797 100644 --- a/assets/templates/markdown-feed.yaml +++ b/assets/templates/markdown-feed.yaml @@ -40,7 +40,7 @@ feed: {{- with $enclosure := resources.GetRemote . -}} {{- $enclosure = .Content | resources.FromString (print $author "/media/" ($enclosure | urlize)) -}} -![{{ $description }}]({{ ($enclosure.Resize "600x").RelPermalink }} " +![{{ $description }}](/{{ print $author "/media/" (path.Base ($enclosure.Resize "600x").RelPermalink) }} " {{ $description }}" ) {{- end -}} |