Skip to content

Commit

Permalink
refactor: disable RSS XSL by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudLigny committed Dec 21, 2023
1 parent 6a1f09a commit 8ff8412
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
'layout' => 'feed',
'output' => 'xsl',
'uglyurl' => true,
'published' => true,
'published' => false,
'exclude' => true,
],
],
Expand Down
4 changes: 3 additions & 1 deletion resources/layouts/_default/list.atom.twig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@

{% block feed %}
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="{{ url('xsl/atom', {'language': lang}) }}" media="all"?>
{%- if site.page('xsl/atom') ~%}
<?xml-stylesheet type="text/xsl" href="{{ url('xsl/atom') }}" media="all"?>
{%- endif ~%}
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="{{ lang }}">
<id>{{ url(page, {canonical: true}) }}</id>
<title>{{ title|e }}</title>
Expand Down
4 changes: 3 additions & 1 deletion resources/layouts/_default/list.rss.twig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

{% block feed %}
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="{{ url('xsl/rss', {'language': lang}) }}" media="all"?>
{%- if site.page('xsl/rss') ~%}
<?xml-stylesheet type="text/xsl" href="{{ url('xsl/rss') }}" media="all"?>
{%- endif ~%}
<rss version="2.0">
<channel>
<title>{{ title|e }}</title>
Expand Down

0 comments on commit 8ff8412

Please sign in to comment.