1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-22 18:00:06 +01:00

rss feed fixes

This commit is contained in:
Matthias Kretschmann 2013-12-15 15:03:06 +01:00
parent ace41ceda5
commit 2f3eb99d11
2 changed files with 4 additions and 6 deletions

View File

@ -663,9 +663,7 @@ FileETag None
</IfModule> </IfModule>
# feed redirects # feed redirects
Redirect 301 /feed/ /feed.xml Redirect 301 /home/feed/ /feed/
Redirect 301 /feed /feed.xml
Redirect 301 /home/feed/ /feed.xml
# Remove date from post permalinks # Remove date from post permalinks
RedirectMatch 301 ^/([0-9]+)/([0-9]+)/(.*)$ /$3 RedirectMatch 301 ^/([0-9]+)/([0-9]+)/(.*)$ /$3

View File

@ -20,7 +20,7 @@ layout: nil
<link>{{ post.linkurl | escape }}</link> <link>{{ post.linkurl | escape }}</link>
{% else %} {% else %}
<title>{{ post.title | escape }}</title> <title>{{ post.title | escape }}</title>
<link>{{ site.url }}/{{ post.url | escape }}</link> <link>{{ site.url }}{{ post.url | escape }}</link>
{% endif %} {% endif %}
<published>{{ post.date | date_to_xmlschema }}</published> <published>{{ post.date | date_to_xmlschema }}</published>
@ -29,7 +29,7 @@ layout: nil
<updated>{{ post.updated | date_to_xmlschema }}</updated> <updated>{{ post.updated | date_to_xmlschema }}</updated>
{% endif %} {% endif %}
<id>{{ site.url }}/{{ post.url | escape }}</id> <id>{{ site.url }}{{ post.url | escape }}</id>
<content type="html"> <content type="html">
{% if post.image %} {% if post.image %}
&lt;img src=&quot;{{ site.url }}/media/{{ post.image }}&quot; /&gt; &lt;img src=&quot;{{ site.url }}/media/{{ post.image }}&quot; /&gt;
@ -39,7 +39,7 @@ layout: nil
{% if post.layout == "link" %} {% if post.layout == "link" %}
&lt;a class=&quot;more-link&quot; href=&quot;{{ post.linkurl | escape }}&quot;&gt;Go to source &amp;#187;&lt;/a&gt; &lt;br /&gt; &lt;a class=&quot;more-link&quot; href=&quot;{{ post.linkurl | escape }}&quot;&gt;Go to source &amp;#187;&lt;/a&gt; &lt;br /&gt;
&lt;a href=&quot;{{ site.url }}/{{ post.url | escape }}&quot; title=&quot;Permalink for this post&quot;&gt;&amp;#8734;&lt;/a&gt; &lt;a href=&quot;{{ site.url }}{{ post.url | escape }}&quot; title=&quot;Permalink for this post&quot;&gt;&amp;#8734;&lt;/a&gt;
{% endif %} {% endif %}
</content> </content>
</entry> </entry>