1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-13 16:45:14 +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>
# feed redirects
Redirect 301 /feed/ /feed.xml
Redirect 301 /feed /feed.xml
Redirect 301 /home/feed/ /feed.xml
Redirect 301 /home/feed/ /feed/
# Remove date from post permalinks
RedirectMatch 301 ^/([0-9]+)/([0-9]+)/(.*)$ /$3

View File

@ -20,7 +20,7 @@ layout: nil
<link>{{ post.linkurl | escape }}</link>
{% else %}
<title>{{ post.title | escape }}</title>
<link>{{ site.url }}/{{ post.url | escape }}</link>
<link>{{ site.url }}{{ post.url | escape }}</link>
{% endif %}
<published>{{ post.date | date_to_xmlschema }}</published>
@ -29,7 +29,7 @@ layout: nil
<updated>{{ post.updated | date_to_xmlschema }}</updated>
{% endif %}
<id>{{ site.url }}/{{ post.url | escape }}</id>
<id>{{ site.url }}{{ post.url | escape }}</id>
<content type="html">
{% if post.image %}
&lt;img src=&quot;{{ site.url }}/media/{{ post.image }}&quot; /&gt;
@ -39,7 +39,7 @@ layout: nil
{% 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 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 %}
</content>
</entry>