aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-06-16 16:42:17 -0400
committertdro <tdro@noreply.example.com>2022-06-16 16:42:17 -0400
commitf8edb8e8ab98d4d429f71b37c03a49654b976465 (patch)
tree76e972c5df4c292351de795d90fee31fed998f78
parent575f2c07583b4a05b40bc829e83e77891c27f12f (diff)
downloadcanory-f8edb8e8ab98d4d429f71b37c03a49654b976465.tar.gz
canory-f8edb8e8ab98d4d429f71b37c03a49654b976465.tar.bz2
canory-f8edb8e8ab98d4d429f71b37c03a49654b976465.zip
assets/templates/markdown-feed: Guard against enclosures that are not images
Other enclosure types can be handled differently.
-rw-r--r--assets/templates/markdown-feed.yaml14
-rw-r--r--content/default/messages/quickstart.md2
-rw-r--r--themes/default/layouts/_default/home.sources.html2
3 files changed, 16 insertions, 2 deletions
diff --git a/assets/templates/markdown-feed.yaml b/assets/templates/markdown-feed.yaml
index 3e7d9a9..005d411 100644
--- a/assets/templates/markdown-feed.yaml
+++ b/assets/templates/markdown-feed.yaml
@@ -30,7 +30,21 @@ feed:
{{- end }}
{{ with .enclosure -}}
+{{- if or
+ (in . "apng")
+ (in . "avif")
+ (in . "gif")
+ (in . "jfif")
+ (in . "jpeg")
+ (in . "jpg")
+ (in . "pjp")
+ (in . "pjpeg")
+ (in . "png")
+ (in . "svg")
+ (in . "webp")
+-}}
![{{ $enclosureDescription }}]({{ . }} "
{{ $enclosureDescription }}"
)
+{{- end -}}
{{- end }}
diff --git a/content/default/messages/quickstart.md b/content/default/messages/quickstart.md
index 08cb768..38eea2e 100644
--- a/content/default/messages/quickstart.md
+++ b/content/default/messages/quickstart.md
@@ -11,7 +11,7 @@ explaining how to get started.
GIT CLONE. EXECUTE HUGO TWICE. HUGO VERSION >= 0.94.2.
```shell
-git clone --branch 0.6.28 https://www.thedroneely.com/git/thedroneely/canory
+git clone --branch 0.7.28 https://www.thedroneely.com/git/thedroneely/canory
cd canory
hugo && hugo
```
diff --git a/themes/default/layouts/_default/home.sources.html b/themes/default/layouts/_default/home.sources.html
index 95246b5..6bf4b77 100644
--- a/themes/default/layouts/_default/home.sources.html
+++ b/themes/default/layouts/_default/home.sources.html
@@ -93,7 +93,7 @@
<footer>
<p>
- Canory Version: 0.6.28
+ Canory Version: 0.7.28
&middot; Dictionary Access by Paul Lutus: <a href="https://arachnoid.com/javascript/dictionary_access.js">GPLv2+ License</a>
&middot; Feather Icons by Cole Bemis: <a href="https://github.com/feathericons/feather/blob/8b5d6802fa8fd1eb3924b465ff718d2fa8d61efe/LICENSE">MIT License</a>
&middot; Tabler Icons by Paweł Kuna: <a href="https://github.com/tabler/tabler-icons/blob/60f39297d0f785f2e8635faca6857b2260b2d164/LICENSE">MIT License</a>