diff options
author | Baron Schwartz <xaprb@users.noreply.github.com> | 2019-02-15 03:57:23 +0300 |
---|---|---|
committer | Baron Schwartz <xaprb@users.noreply.github.com> | 2019-02-15 03:57:23 +0300 |
commit | 35c2b3baf5423c3659135c833c632b083d00693b (patch) | |
tree | afaa6e0767ec68239f771472baac920e4940fc5e | |
parent | f1b1f7ea2dad13bb85c220b52f436e412b6fc1ee (diff) |
add featured images to rss feeds
-rw-r--r-- | layouts/_default/index.xml | 1 |
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 }} |