diff --git a/_config.yml b/_config.yml index d11bd2a..d54a0a2 100644 --- a/_config.yml +++ b/_config.yml @@ -19,6 +19,7 @@ vendor_url: /vendor/ ### pages about_url: /about/ +blog_feed_url: /blog.xml blog_url: /blog/ backlog_url: /backlog/ community_hub_url: /community-hub/ diff --git a/feed.xml b/blog.xml similarity index 51% rename from feed.xml rename to blog.xml index dd82f35..231f0fa 100644 --- a/feed.xml +++ b/blog.xml @@ -2,12 +2,12 @@ layout: null --- <?xml version="1.0" encoding="UTF-8"?> -<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> +<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="'http://purl.org/rss/1.0/modules/content/"> <channel> <title>{{ site.title | xml_escape }}</title> <description>{{ site.description | xml_escape }}</description> <link>{{ site.url }}{{ site.base_url }}</link> - <atom:link href="{{ site.url }}{{ site.base_url }}feed.xml" rel="self" type="application/rss+xml"/> + <atom:link href="{{ site.url }}{{ site.base_url }}{{ site.blog_feed_url }}" rel="self" type="application/rss+xml"/> <pubDate>{{ site.time | date_to_rfc822 }}</pubDate> <lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate> <generator>Jekyll v{{ jekyll.version }}</generator> @@ -15,13 +15,26 @@ layout: null {% for post in sorted_blogs %} <item> <title>{{ post.title | xml_escape }}</title> - <description>{{ post.content | xml_escape }}</description> + {% if post.progress_update %} + <description>Progress Updates Are Only Compatible in Webview (due to CSS tricks for NoJS support)</description> + <content:encoded> + {{ post.content | markdownify | xml_escape }} + </content:encoded> + {% elsif post.summary %} + <description>{{ post.summary | markdownify | xml_escape }}</description> + <content:encoded> + {{ post.content | markdownify | xml_escape }} + </content:encoded> + {% else %} + <description>{{ post.content | xml_escape }}</description> + {% endif %} <pubDate>{{ post.date | date_to_rfc822 }}</pubDate> <link>{{ site.url }}{{ site.base_url }}{{ post.url | replace_first: '/', '' }}</link> <guid isPermaLink="true">{{ site.url }}{{ site.base_url }}{{ post.url | replace_first: '/', '' }}</guid> {% for tag in post.tags %} <category>{{ tag | xml_escape }}</category> {% endfor %} + <dc:creator>{{ post.author | xml_escape }}</dc:creator> </item> {% endfor %} </channel> diff --git a/docker-compose.yml b/docker-compose.yml index 1f89b56..a828876 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ # docker-compose up jekyll: image: jekyll/jekyll - command: jekyll serve --watch --incremental --livereload + command: jekyll serve --watch --incremental --livereload --future ports: - 4000:4000 - 35729:35729