Add default values for config variables (#621)

This commit is contained in:
Gabriel 2020-04-24 01:18:23 +02:00 committed by GitHub
parent 4a708530d9
commit b03fb7311f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 46 additions and 30 deletions

View file

@ -4,8 +4,12 @@ layout: null
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
{% if site.title %}
<title>{{ site.title | xml_escape }}</title>
{% endif %}
{% if site.description %}
<description>{{ site.description | xml_escape }}</description>
{% endif %}
<link>{{ '' | absolute_url }}</link>
<atom:link href="{{ 'feed.xml' | absolute_url }}" rel="self" type="application/rss+xml" />
{% for post in site.posts limit:20 %}