Skip to content

Commit 3c2771f

Browse files
committed
Feat: 커스텀 피드 생성
1 parent 9e516ba commit 3c2771f

2 files changed

Lines changed: 24 additions & 1 deletion

File tree

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
- [Powered by Jekyll & Minima Mistakes](https://mmistakes.github.io/minimal-mistakes/)
44
- [https://devbattery.com](https://devbattery.com)
5-
65
## Theme
76

87
### Light Mode

feed.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
layout: null
3+
---
4+
<?xml version="1.0" encoding="UTF-8"?>
5+
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/">
6+
<channel>
7+
<title>{{ site.title | xml_escape }}</title>
8+
<description>{{ site.description | xml_escape }}</description>
9+
<link>{{ site.url }}{{ site.baseurl }}/</link>
10+
<atom:link href="{{ "/feed.xml" | absolute_url }}" rel="self" type="application/rss+xml" />
11+
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
12+
{% for post in site.posts limit: 15 %}
13+
<item>
14+
<title>{{ post.title | xml_escape }}</title>
15+
<link>{{ post.url | absolute_url }}</link>
16+
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
17+
<guid isPermaLink="true">{{ post.url | absolute_url }}</guid>
18+
<description>{{ post.excerpt | strip_html | truncatewords: 30 | xml_escape }}</description>
19+
{%- capture teaser_path -%}{% include auto-teaser-path.html post=post %}{%- endcapture -%}
20+
<media:content url="{{ teaser_path | strip | absolute_url }}" medium="image" />
21+
</item>
22+
{% endfor %}
23+
</channel>
24+
</rss>

0 commit comments

Comments
 (0)