diff options
author | tdro <tdro@noreply.example.com> | 2022-08-28 02:03:17 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-08-28 02:03:17 -0400 |
commit | 953328c4581e1001951512b95de12b61db66747a (patch) | |
tree | 186b3e0475d3d1cb6463af0b1001ed03dfc57f1d /themes/default/layouts/_default | |
parent | f21c9f431e71cd379f8d31bd008a6d8544613bce (diff) | |
download | canory-953328c4581e1001951512b95de12b61db66747a.tar.gz canory-953328c4581e1001951512b95de12b61db66747a.tar.bz2 canory-953328c4581e1001951512b95de12b61db66747a.zip |
themes/default/layouts/_default/home.xslt.xsl: Select image from RSS XML
Diffstat (limited to 'themes/default/layouts/_default')
-rw-r--r-- | themes/default/layouts/_default/home.xslt.xsl | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/themes/default/layouts/_default/home.xslt.xsl b/themes/default/layouts/_default/home.xslt.xsl index f2aeb43..30adb42 100644 --- a/themes/default/layouts/_default/home.xslt.xsl +++ b/themes/default/layouts/_default/home.xslt.xsl @@ -113,12 +113,10 @@ <figure> <a><xsl:attribute name="href"><xsl:value-of select="/rss/channel/link"/></xsl:attribute> <picture> - <img - loading="lazy" - > + <img loading="lazy"> <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="src"><xsl:value-of select="/rss/channel/image/url"/></xsl:attribute> </img> </picture> </a> @@ -131,7 +129,7 @@ <xsl:value-of select="title" /> </a> </h2> - <small> Published: <xsl:value-of select="pubDate" /> </small> + <small>Published: <xsl:value-of select="pubDate"/></small> </micro-content> </micro-summary> </micro-card> |