Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJimmy Cai <hi@jimmycai.com>2020-09-28 17:12:52 +0300
committerGitHub <noreply@github.com>2020-09-28 17:12:52 +0300
commitbd8e03ba6113f544194ae5de7a098a1c6973d681 (patch)
tree9791c9f1e4ed1eb109cb69a499c4131f468a8dc0 /layouts
parent12578a57692a72239603d1025782b72e9a0f0a60 (diff)
fix(rss): remove featured image width height attr
Throws error when featured image is not found inside page bundle. closes https://github.com/CaiJimmy/hugo-theme-stack/issues/20
Diffstat (limited to 'layouts')
-rw-r--r--layouts/rss.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/rss.xml b/layouts/rss.xml
index 7ca03dd..178f997 100644
--- a/layouts/rss.xml
+++ b/layouts/rss.xml
@@ -34,9 +34,9 @@
<description>
{{- $image := partial "helper/image" (dict "Context" . "Type" "rss") -}}
{{- if $image.exists -}}
- {{ "<" | html }}img src="{{ $image.permalink | absURL }}" width="{{ $image.resource.Width }}" height="{{ $image.resource.Height }}" alt="Featured image of post {{ .Title }}" {{ "/>" | html}}
+ {{ "<" | html }}img src="{{ $image.permalink | absURL }}" alt="Featured image of post {{ .Title }}" {{ "/>" | html}}
{{- end -}}{{ $content }}</description>
</item>
{{ end }}
</channel>
-</rss> \ No newline at end of file
+</rss>