From 375c0d2544b20124a8cf497819006e01cd217225 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Wed, 1 Mar 2023 19:14:59 -0800 Subject: host photos.json on cloudflare r2 --- site/feeds/photos.xml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 site/feeds/photos.xml (limited to 'site/feeds') diff --git a/site/feeds/photos.xml b/site/feeds/photos.xml new file mode 100644 index 0000000..41ecc5d --- /dev/null +++ b/site/feeds/photos.xml @@ -0,0 +1,31 @@ +--- +permalink: /rss.xml +--- + +{% capture srcbase %}src="{{site.url}}/{% endcapture %} + + + @clarkzjw's photos + Photos + {% assign photos = site.data.photos | slice: 0, 10 %} + {{ photos.first.createdAt | date_to_rfc822 }} + + {{ site.url }}/rss.xml + {% for photo in photos limit:10 %} + + {{ photo.caption | markdownify | strip_html | xml_escape }} + + {% capture content %} + + {{ photo.alt }} + + {% endcapture %} + {{ content | xml_escape }}{{ openheart | xml_escape }} + + {{ photo.createdAt | date_to_rfc822 }} + {{ site.url }}/#P{{ photo.guid }} + {{ site.url }}/#P{{ photo.guid }} + + {% endfor %} + + -- cgit v1.2.3