aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2023-02-28 23:58:16 -0800
committerclarkzjw <[email protected]>2023-03-01 00:03:53 -0800
commit1b0ac2486321266238e90ab3a8c5b1ed1174e2fe (patch)
treef6dd60879106b8eab0a622d22df56f4407774a18
parentf853b99bc68b7df7fa22f9b21ec42bdc8eef9dea (diff)
downloadphoto-1b0ac2486321266238e90ab3a8c5b1ed1174e2fe.tar.gz
fix rss feed link
-rw-r--r--feeds/photos.xml14
1 files changed, 7 insertions, 7 deletions
diff --git a/feeds/photos.xml b/feeds/photos.xml
index c89ec48..41ecc5d 100644
--- a/feeds/photos.xml
+++ b/feeds/photos.xml
@@ -1,5 +1,5 @@
1--- 1---
2permalink: /photos.xml 2permalink: /rss.xml
3--- 3---
4<?xml version="1.0" encoding="UTF-8"?> 4<?xml version="1.0" encoding="UTF-8"?>
5{% capture srcbase %}src="{{site.url}}/{% endcapture %} 5{% capture srcbase %}src="{{site.url}}/{% endcapture %}
@@ -9,22 +9,22 @@ permalink: /photos.xml
9 <description>Photos</description> 9 <description>Photos</description>
10 {% assign photos = site.data.photos | slice: 0, 10 %} 10 {% assign photos = site.data.photos | slice: 0, 10 %}
11 <lastBuildDate>{{ photos.first.createdAt | date_to_rfc822 }}</lastBuildDate> 11 <lastBuildDate>{{ photos.first.createdAt | date_to_rfc822 }}</lastBuildDate>
12 <atom:link href="{{ site.url }}/feed.xml" rel="self" type="application/rss+xml" /> 12 <atom:link href="{{ site.url }}/rss.xml" rel="self" type="application/rss+xml" />
13 <link>{{ site.url }}/photos.xml</link> 13 <link>{{ site.url }}/rss.xml</link>
14 {% for photo in photos limit:10 %} 14 {% for photo in photos limit:10 %}
15 <item> 15 <item>
16 <title>{{ photo.caption | markdownify | strip_html | xml_escape }}</title> 16 <title>{{ photo.caption | markdownify | strip_html | xml_escape }}</title>
17 <description> 17 <description>
18 {% capture content %} 18 {% capture content %}
19 <a href="{{ photo.path }}/public"> 19 <a href="{{ photo.path }}">
20 <img src="{{ photo.path }}/public" width="100%" alt="{{ photo.alt }}"/> 20 <img src="{{ photo.path }}" width="100%" alt="{{ photo.alt }}"/>
21 </a> 21 </a>
22 {% endcapture %} 22 {% endcapture %}
23 {{ content | xml_escape }}{{ openheart | xml_escape }} 23 {{ content | xml_escape }}{{ openheart | xml_escape }}
24 </description> 24 </description>
25 <pubDate>{{ photo.createdAt | date_to_rfc822 }}</pubDate> 25 <pubDate>{{ photo.createdAt | date_to_rfc822 }}</pubDate>
26 <link>{{ site.url }}/photos#P{{ photo.guid }}</link> 26 <link>{{ site.url }}/#P{{ photo.guid }}</link>
27 <guid isPermaLink="true">{{ site.url }}/photos#P{{ photo.guid }}</guid> 27 <guid isPermaLink="true">{{ site.url }}/#P{{ photo.guid }}</guid>
28 </item> 28 </item>
29 {% endfor %} 29 {% endfor %}
30 </channel> 30 </channel>
Powered by cgit v1.2.3 (git 2.41.0)