Improved feed

This commit is contained in:
mathias 2019-07-30 22:56:21 +03:00
parent 2cf45ebd14
commit 145faced03
3 changed files with 20 additions and 1 deletions

View file

@ -11,5 +11,4 @@ sass:
style: :compressed style: :compressed
gems: gems:
- jekyll-feed
- jekyll-sitemap - jekyll-sitemap

View file

@ -17,6 +17,7 @@ layout: minify
<meta name="description" content="{{ site.description }}"> <meta name="description" content="{{ site.description }}">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="canonical" href="{{ site.url }}"> <link rel="canonical" href="{{ site.url }}">
<link rel="alternate" type="application/atom+xml" href="/feed.xml">
<link rel="manifest" href="/site.webmanifest"> <link rel="manifest" href="/site.webmanifest">
<style> <style>
{% capture style %} {% capture style %}

19
feed.xml Normal file
View file

@ -0,0 +1,19 @@
---
layout: minify
---
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ site.name }} - News</title>
<subtitle>{{ site.description }}</subtitle>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<link href="{{ site.url }}"/>
<link href="{{ site.url }}feed.xml" rel="self"/>
{% for post in site.posts %}
<entry>
<title>{{ post.date | date: "%B %e, %Y" }}</title>
<content>{{ post.content | xml_escape }}</content>
<published>{{ post.date | date_to_xmlschema }}</published>
<link href="{{ site.url }}news/"/>
</entry>
{% endfor %}
</feed>