diff options
author | tdro <tdro@noreply.example.com> | 2022-07-20 09:44:00 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-07-20 09:44:00 -0400 |
commit | f2c054a417791c626aa142ffdac6c4b37fe80343 (patch) | |
tree | 5176e47a2ff30a468157c0adf35c79fdce44f4c1 /themes/default | |
parent | 189085e403724bfc6d095badb90540d2a1fd1bb3 (diff) | |
download | canory-f2c054a417791c626aa142ffdac6c4b37fe80343.tar.gz canory-f2c054a417791c626aa142ffdac6c4b37fe80343.tar.bz2 canory-f2c054a417791c626aa142ffdac6c4b37fe80343.zip |
themes/default/layouts/partials/generate-feeds: Check for enclosure existence
Don't complete links without enclosures.
Diffstat (limited to 'themes/default')
-rw-r--r-- | themes/default/layouts/partials/generate-feeds.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/default/layouts/partials/generate-feeds.html b/themes/default/layouts/partials/generate-feeds.html index 4421ee8..21bc216 100644 --- a/themes/default/layouts/partials/generate-feeds.html +++ b/themes/default/layouts/partials/generate-feeds.html @@ -137,7 +137,7 @@ {{- end -}} {{- /* Try to complete enclosure relative links. */ -}} - {{- if not ($enclosure | urls.Parse).Host -}} + {{- if and $enclosure (not ($enclosure | urls.Parse).Host) -}} {{- $enclosure = print "http://" $sourceDomain $link -}} {{- end -}} |