Skip to content

Commit

Permalink
fix(blog): remove duplicate RSS feed and add JSON feed (#15890)
Browse files Browse the repository at this point in the history
Co-authored-by: Mike Fiedler <miketheman@gmail.com>
  • Loading branch information
Guts and miketheman committed May 9, 2024
1 parent 8c51e0a commit 52aaa2d
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions docs/blog/overrides/main.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
{% extends "base.html" %}

{% block extrahead %}
<!-- RSS Feed -->
<link rel="alternate" type="application/rss+xml" title="RSS feed of created content" href="{{ config.site_url }}feed_rss_created.xml">
<link rel="alternate" type="application/rss+xml" title="RSS feed of updated content" href="{{ config.site_url }}feed_rss_updated.xml">
{# JSON Feed #}
{% if "rss" in config.plugins %}
<link
rel="alternate"
type="application/feed+json"
title="JSON feed" href="{{ 'feed_json_created.json' | url }}"
/>
<link
rel="alternate"
type="application/feed+json"
title="JSON feed of updated content"
href="{{ 'feed_json_updated.json' | url }}" />
{% endif %}
{% endblock %}

0 comments on commit 52aaa2d

Please sign in to comment.