fix: feeds

This commit is contained in:
Cory Dransfeldt 2023-08-04 12:09:19 -07:00
parent 3b743d60f7
commit 7d7676b589
No known key found for this signature in database
5 changed files with 8 additions and 11 deletions

View file

@ -15,21 +15,18 @@ package = "@netlify/plugin-lighthouse"
### ###
[[headers]] [[headers]]
for = "/feed.xml" for = "/feed.xml"
[headers.values] [headers.values]
Content-Type = "application/xml; charset=utf-8" Content-Type = "application/xml; charset=utf-8"
x-content-type-options = "nosniff" x-content-type-options = "nosniff"
[[headers]] [[headers]]
for = "/links.xml" for = "/links.xml"
[headers.values] [headers.values]
Content-Type = "application/xml; charset=utf-8" Content-Type = "application/xml; charset=utf-8"
x-content-type-options = "nosniff" x-content-type-options = "nosniff"
[[headers]] [[headers]]
for = "/books.xml" for = "/books.xml"
[headers.values] [headers.values]
Content-Type = "application/xml; charset=utf-8" Content-Type = "application/xml; charset=utf-8"
x-content-type-options = "nosniff" x-content-type-options = "nosniff"

View file

@ -4,8 +4,8 @@
<title> <title>
{% block title %}Books • Cory Dransfeldt{% endblock %} {% block title %}Books • Cory Dransfeldt{% endblock %}
</title> </title>
<link href="{{ pkg.homepage }}/books.xml" rel="self" /> <link href="{{ site.url }}/books.xml" rel="self" />
<link href="{{ pkg.homepage }}/" /> <link href="{{ site.url }}" />
<link rel="hub" href="https://pubsubhubbub.superfeedr.com/" /> <link rel="hub" href="https://pubsubhubbub.superfeedr.com/" />
<updated>{% block update %}{{ books[0].dateAdded | date: "%Y-%m-%dT%H:%M:%S-08:00" }}{% endblock %}</updated> <updated>{% block update %}{{ books[0].dateAdded | date: "%Y-%m-%dT%H:%M:%S-08:00" }}{% endblock %}</updated>
<id>{{ site.url }}</id> <id>{{ site.url }}</id>

View file

@ -4,8 +4,8 @@
<title> <title>
{% block title %}All posts • Cory Dransfeldt{% endblock %} {% block title %}All posts • Cory Dransfeldt{% endblock %}
</title> </title>
<link href="{{ pkg.homepage }}/feed.xml" rel="self" /> <link href="{{ site.url }}/feed.xml" rel="self" />
<link href="{{ pkg.homepage }}/" /> <link href="{{ site.url }}" />
<link rel="hub" href="https://pubsubhubbub.superfeedr.com/" /> <link rel="hub" href="https://pubsubhubbub.superfeedr.com/" />
<updated>{% block update %}{{ collections.posts[0].date | date: "%Y-%m-%dT%H:%M:%S-08:00" }}{% endblock %}</updated> <updated>{% block update %}{{ collections.posts[0].date | date: "%Y-%m-%dT%H:%M:%S-08:00" }}{% endblock %}</updated>
<id>{{ site.url }}/</id> <id>{{ site.url }}/</id>

View file

@ -4,8 +4,8 @@
<title> <title>
{% block title %}Follow • Cory Dransfeldt{% endblock %} {% block title %}Follow • Cory Dransfeldt{% endblock %}
</title> </title>
<link href="{{ pkg.homepage }}/follow.xml" rel="self" /> <link href="{{ site.url }}/follow.xml" rel="self" />
<link href="{{ pkg.homepage }}/" /> <link href="{{ site.url }}" />
<link rel="hub" href="https://pubsubhubbub.superfeedr.com/" /> <link rel="hub" href="https://pubsubhubbub.superfeedr.com/" />
<updated>{% block update %}{{ follow.posts[0].date_published | date: "%Y-%m-%dT%H:%M:%S-08:00" }}{% endblock %}</updated> <updated>{% block update %}{{ follow.posts[0].date_published | date: "%Y-%m-%dT%H:%M:%S-08:00" }}{% endblock %}</updated>
<id>{{ site.url }}</id> <id>{{ site.url }}</id>

View file

@ -4,8 +4,8 @@
<title> <title>
{% block title %}Links • Cory Dransfeldt{% endblock %} {% block title %}Links • Cory Dransfeldt{% endblock %}
</title> </title>
<link href="{{ pkg.homepage }}/links.xml" rel="self" /> <link href="{{ site.url }}/links.xml" rel="self" />
<link href="{{ pkg.homepage }}/" /> <link href="{{ site.url }}" />
<link rel="hub" href="https://pubsubhubbub.superfeedr.com/" /> <link rel="hub" href="https://pubsubhubbub.superfeedr.com/" />
<updated>{% block update %}{{ links[0].date | date: "%Y-%m-%dT%H:%M:%S-08:00" }}{% endblock %}</updated> <updated>{% block update %}{{ links[0].date | date: "%Y-%m-%dT%H:%M:%S-08:00" }}{% endblock %}</updated>
<id>{{ site.url }}</id> <id>{{ site.url }}</id>