Skip to content

Commit

Permalink
Make config.description optional in atom.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-morgan committed Apr 14, 2020
1 parent 048949e commit 0cc1435
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/templates/src/builtins/atom.xml
@@ -1,7 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="{{ config.default_language }}">
<title>{{ config.title }}</title>
{%- if config.description %}
<subtitle>{{ config.description }}</subtitle>
{%- endif %}
<link href="{{ feed_url | safe }}" rel="self" type="application/atom+xml"/>
<link href="{{ config.base_url | safe }}"/>
<generator uri="https://www.getzola.org/">Zola</generator>
Expand Down

0 comments on commit 0cc1435

Please sign in to comment.