aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-06-16 19:56:44 -0400
committertdro <tdro@noreply.example.com>2022-06-16 19:56:44 -0400
commit8a904dcbd0eb8a0ae38f51d6793746bad18d56aa (patch)
tree807038835bb4df34ffe836a114adaf2cee19cc1b
parent1540150b31c3bc4c4f2d73d981d5f42642cd8b9d (diff)
downloadcanory-8a904dcbd0eb8a0ae38f51d6793746bad18d56aa.tar.gz
canory-8a904dcbd0eb8a0ae38f51d6793746bad18d56aa.tar.bz2
canory-8a904dcbd0eb8a0ae38f51d6793746bad18d56aa.zip
themes/default/layouts/_default/home.rss-style: Remove image config
Avoid errors when content folder missing. RSS style sheet is written in place, no image configuration is possible.
-rw-r--r--themes/default/layouts/_default/home.rss-style.xsl11
1 files changed, 4 insertions, 7 deletions
diff --git a/themes/default/layouts/_default/home.rss-style.xsl b/themes/default/layouts/_default/home.rss-style.xsl
index e85f866..7d3fc96 100644
--- a/themes/default/layouts/_default/home.rss-style.xsl
+++ b/themes/default/layouts/_default/home.rss-style.xsl
@@ -113,15 +113,12 @@
<figure>
<a><xsl:attribute name="href"><xsl:value-of select="/rss/channel/link"/></xsl:attribute>
<picture>
- {{- $file := "/profile/picture.png" -}}
- {{- $image := imageConfig (print "content/" (partial "author-media-path.html" .) $file) -}}
<img
loading="lazy"
- width="{{ $image.Width }}"
- height="{{ $image.Height }}">
- <xsl:attribute name="alt"><xsl:value-of select="/rss/channel/category"/></xsl:attribute>
- <xsl:attribute name="title"><xsl:value-of select="/rss/channel/category"/></xsl:attribute>
- <xsl:attribute name="src">{{ .Site.BaseURL }}/<xsl:value-of select="/rss/channel/category"/>/media/profile/picture.png</xsl:attribute>
+ >
+ <xsl:attribute name="alt"><xsl:value-of select="/rss/channel/category"/></xsl:attribute>
+ <xsl:attribute name="title"><xsl:value-of select="/rss/channel/category"/></xsl:attribute>
+ <xsl:attribute name="src">{{ .Site.BaseURL }}/<xsl:value-of select="/rss/channel/category"/>/media/profile/picture.png</xsl:attribute>
</img>
</picture>
</a>