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

github.com/xaprb/story.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaron Schwartz <xaprb@users.noreply.github.com>2019-02-15 03:57:23 +0300
committerBaron Schwartz <xaprb@users.noreply.github.com>2019-02-15 03:57:23 +0300
commit35c2b3baf5423c3659135c833c632b083d00693b (patch)
treeafaa6e0767ec68239f771472baac920e4940fc5e
parentf1b1f7ea2dad13bb85c220b52f436e412b6fc1ee (diff)
add featured images to rss feeds
-rw-r--r--layouts/_default/index.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/layouts/_default/index.xml b/layouts/_default/index.xml
index 4d7e8b0..30fcf7b 100644
--- a/layouts/_default/index.xml
+++ b/layouts/_default/index.xml
@@ -14,6 +14,7 @@
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }}</pubDate>
<author>{{ .Site.Params.Author }}</author>
<guid>{{ .Permalink }}</guid>
+ <media:content xmlns:media="http://search.yahoo.com/mrss/" url="{{ (absURL (default (default "img/default-header-img.tn-500x500.jpg" .Params.image) .Params.thumbnail)) }}" medium="image" type="image/jpg" width="100" height="100" />
<description>{{ .Content | html }}</description>
</item>
{{ end }}