Browse Source

Fix blank lines at start of Atom/RSS feeds

merge-requests/135/head
Deimos 4 years ago
parent
commit
348c930133
  1. 2
      tildes/tildes/templates/base.atom.jinja2
  2. 2
      tildes/tildes/templates/base.rss.jinja2
  3. 2
      tildes/tildes/templates/home.atom.jinja2
  4. 2
      tildes/tildes/templates/home.rss.jinja2
  5. 2
      tildes/tildes/templates/topic_listing.atom.jinja2
  6. 2
      tildes/tildes/templates/topic_listing.rss.jinja2

2
tildes/tildes/templates/base.atom.jinja2

@ -1,5 +1,5 @@
{# Copyright (c) 2021 Tildes contributors <code@tildes.net> #} {# Copyright (c) 2021 Tildes contributors <code@tildes.net> #}
{# SPDX-License-Identifier: AGPL-3.0-or-later #}
{# SPDX-License-Identifier: AGPL-3.0-or-later -#}
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<feed xmlns="http://www.w3.org/2005/Atom"> <feed xmlns="http://www.w3.org/2005/Atom">

2
tildes/tildes/templates/base.rss.jinja2

@ -1,5 +1,5 @@
{# Copyright (c) 2021 Tildes contributors <code@tildes.net> #} {# Copyright (c) 2021 Tildes contributors <code@tildes.net> #}
{# SPDX-License-Identifier: AGPL-3.0-or-later #}
{# SPDX-License-Identifier: AGPL-3.0-or-later -#}
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0"> <rss version="2.0">

2
tildes/tildes/templates/home.atom.jinja2

@ -1,6 +1,6 @@
{# Copyright (c) 2021 Tildes contributors <code@tildes.net> #} {# Copyright (c) 2021 Tildes contributors <code@tildes.net> #}
{# SPDX-License-Identifier: AGPL-3.0-or-later #} {# SPDX-License-Identifier: AGPL-3.0-or-later #}
{% extends 'topic_listing.atom.jinja2' %}
{%- extends 'topic_listing.atom.jinja2' %}
{% block feed_title %}Tildes Atom feed{% endblock %} {% block feed_title %}Tildes Atom feed{% endblock %}

2
tildes/tildes/templates/home.rss.jinja2

@ -1,7 +1,7 @@
{# Copyright (c) 2021 Tildes contributors <code@tildes.net> #} {# Copyright (c) 2021 Tildes contributors <code@tildes.net> #}
{# SPDX-License-Identifier: AGPL-3.0-or-later #} {# SPDX-License-Identifier: AGPL-3.0-or-later #}
{% extends 'topic_listing.rss.jinja2' %}
{%- extends 'topic_listing.rss.jinja2' %}
{% block channel_title %}Tildes{% endblock %} {% block channel_title %}Tildes{% endblock %}
{% block channel_link %}https://tildes.net/{% endblock %} {% block channel_link %}https://tildes.net/{% endblock %}

2
tildes/tildes/templates/topic_listing.atom.jinja2

@ -1,7 +1,7 @@
{# Copyright (c) 2021 Tildes contributors <code@tildes.net> #} {# Copyright (c) 2021 Tildes contributors <code@tildes.net> #}
{# SPDX-License-Identifier: AGPL-3.0-or-later #} {# SPDX-License-Identifier: AGPL-3.0-or-later #}
{% extends 'base.atom.jinja2' %}
{%- extends 'base.atom.jinja2' %}
{% block feed_title %}~{{ group.path }} - Tildes{% endblock %} {% block feed_title %}~{{ group.path }} - Tildes{% endblock %}

2
tildes/tildes/templates/topic_listing.rss.jinja2

@ -1,5 +1,5 @@
{# Copyright (c) 2021 Tildes contributors <code@tildes.net> #} {# Copyright (c) 2021 Tildes contributors <code@tildes.net> #}
{# SPDX-License-Identifier: AGPL-3.0-or-later #}
{# SPDX-License-Identifier: AGPL-3.0-or-later -#}
{% extends 'base.rss.jinja2' %} {% extends 'base.rss.jinja2' %}

Loading…
Cancel
Save