May
13th,
2019
スライド資料をmarkdownで書ける remark.js を試しました。
Jekyll側では
post.layout == 'presentation'
の投稿についてはtopとrssには含めないようにしてみました。
feed.xmlは以下のような感じ
---
layout: null
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ site.title }}</title>
<description>{{ site.description }}</description>
<link>{{ site.BASE_PATH }}/</link>
<atom:link href="{{ site.BASE_PATH }}/{{ site.rss_path }}" rel="self" type="application/rss+xml" />
{% for post in site.posts limit:10 %}
{% if post.layout == "presentation" %}
{% else %}
<item>
<title>{{ post.title }}</title>
<description>{{ post.content | xml_escape }}</description>
<pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
<link>{{ site.BASE_PATH }}{{ post.url }}</link>
<guid isPermaLink="true">{{ site.BASE_PATH }}{{ post.url }}</guid>
</item>
{% endif %}
{% endfor %}
</channel>
</rss>