Add RSS feed
This commit is contained in:
parent
032b1ce57d
commit
b4d56be69b
3 changed files with 40 additions and 2 deletions
3
_config.yml
Normal file
3
_config.yml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
title: OpenNeo Blog
|
||||||
|
url: https://blog.openneo.net/
|
||||||
|
description: For Dress to Impress, and uhh maybe other things later!
|
|
@ -3,8 +3,14 @@
|
||||||
<head>
|
<head>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<title>{{ page.title }} - OpenNeo Blog</title>
|
<title>{{ page.title }} - {{ site.title }}</title>
|
||||||
<link rel="stylesheet" href="/assets/css/main.css" />
|
<link rel="stylesheet" href="/assets/css/main.css" />
|
||||||
|
<link
|
||||||
|
rel="alternate"
|
||||||
|
type="application/rss+xml"
|
||||||
|
href="{{ site.url }}/feed.xml"
|
||||||
|
title="{{ site.title }}"
|
||||||
|
/>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
|
@ -12,7 +18,7 @@
|
||||||
<img src="/assets/images/logo.png" />
|
<img src="/assets/images/logo.png" />
|
||||||
</a>
|
</a>
|
||||||
<h1>
|
<h1>
|
||||||
<a href="/">OpenNeo Blog</a>
|
<a href="/">{{ site.title }}</a>
|
||||||
</h1>
|
</h1>
|
||||||
<p role="doc-subtitle">
|
<p role="doc-subtitle">
|
||||||
For
|
For
|
||||||
|
|
29
feed.xml
Normal file
29
feed.xml
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
---
|
||||||
|
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>
|
||||||
|
<link>{{ site.url }}</link>
|
||||||
|
<atom:link href="{{ page.url | prepend: site.url }}" rel="self" type="application/rss+xml" />
|
||||||
|
<description>{{ site.description }}</description>
|
||||||
|
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
|
||||||
|
{% for post in site.posts %}
|
||||||
|
<item>
|
||||||
|
<title>{{ post.title }}</title>
|
||||||
|
<link>
|
||||||
|
{{ post.url | prepend: site.url }}
|
||||||
|
</link>
|
||||||
|
<description>
|
||||||
|
{{ post.content | escape }}
|
||||||
|
</description>
|
||||||
|
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
|
||||||
|
<guid>
|
||||||
|
{{ post.url | prepend: site.url }}
|
||||||
|
</guid>
|
||||||
|
</item>
|
||||||
|
{% endfor %}
|
||||||
|
</channel>
|
||||||
|
</rss>
|
Loading…
Reference in a new issue