aboutsummaryrefslogtreecommitdiff
blob: c89ec48812bccb065ba73f59ecf666404a4020c9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
permalink: /photos.xml
---
<?xml version="1.0" encoding="UTF-8"?>
{% capture srcbase %}src="{{site.url}}/{% endcapture %}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>@clarkzjw's photos</title>
    <description>Photos</description>
    {% assign photos = site.data.photos | slice: 0, 10 %}
    <lastBuildDate>{{ photos.first.createdAt | date_to_rfc822 }}</lastBuildDate>
    <atom:link href="{{ site.url }}/feed.xml" rel="self" type="application/rss+xml" />
    <link>{{ site.url }}/photos.xml</link>
    {% for photo in photos limit:10 %}
      <item>
        <title>{{ photo.caption | markdownify | strip_html | xml_escape }}</title>
        <description>
          {% capture content %}
            <a href="{{ photo.path }}/public">
              <img src="{{ photo.path }}/public" width="100%" alt="{{ photo.alt }}"/>
            </a>
          {% endcapture %}
          {{ content | xml_escape }}{{ openheart | xml_escape }}
        </description>
        <pubDate>{{ photo.createdAt | date_to_rfc822 }}</pubDate>
        <link>{{ site.url }}/photos#P{{ photo.guid }}</link>
        <guid isPermaLink="true">{{ site.url }}/photos#P{{ photo.guid }}</guid>
      </item>
    {% endfor %}
  </channel>
</rss>
Powered by cgit v1.2.3 (git 2.41.0)