Merge branch 'change-feed-path'

This commit is contained in:
Oliver Davies 2019-03-06 21:58:19 +00:00
commit d595d425cd
4 changed files with 10 additions and 2 deletions

2
source/_headers Normal file
View file

@ -0,0 +1,2 @@
/feed
Content-Type: application/xml

View file

@ -104,6 +104,7 @@
/articles/system-users-null-users /articles/null-users-and-system-users-in-drupal /articles/system-users-null-users /articles/null-users-and-system-users-in-drupal
/articles/tweets-from-drupalcamp-london /articles/tweets-drupalcamp-london /articles/tweets-from-drupalcamp-london /articles/tweets-drupalcamp-london
/blog /articles /blog /articles
/blog.xml /feed
/blog/* /articles/:splat /blog/* /articles/:splat
/book /test-driven-drupal /book /test-driven-drupal
/consulting / /consulting /

View file

@ -10,7 +10,12 @@ use: [posts]
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<div class="-mt-4 -mx-4 spaced-y-4"> <header class="spaced-y-4 mb-6">
<p class="text-lg">Everything I've ever published on my site, in reverse chronological order.</p>
<p class="text-lg">You can also subscribe via <a href="/feed">the RSS feed</a>.</p>
</header>
<div class="-mx-4 spaced-y-4">
{% for post in data.posts %} {% for post in data.posts %}
<article class="p-4 {{ post.draft ? 'bg-blue-lighter' }}"> <article class="p-4 {{ post.draft ? 'bg-blue-lighter' }}">
{% include 'blog/post-summary' %} {% include 'blog/post-summary' %}

View file

@ -1,5 +1,5 @@
--- ---
permalink: blog.xml permalink: /feed
use: [posts] use: [posts]
--- ---
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>