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:
parent
ace41ceda5
commit
2f3eb99d11
@ -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
|
||||||
|
@ -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 %}
|
||||||
<img src="{{ site.url }}/media/{{ post.image }}" />
|
<img src="{{ site.url }}/media/{{ post.image }}" />
|
||||||
@ -39,7 +39,7 @@ layout: nil
|
|||||||
|
|
||||||
{% if post.layout == "link" %}
|
{% if post.layout == "link" %}
|
||||||
<a class="more-link" href="{{ post.linkurl | escape }}">Go to source &#187;</a> <br />
|
<a class="more-link" href="{{ post.linkurl | escape }}">Go to source &#187;</a> <br />
|
||||||
<a href="{{ site.url }}/{{ post.url | escape }}" title="Permalink for this post">&#8734;</a>
|
<a href="{{ site.url }}{{ post.url | escape }}" title="Permalink for this post">&#8734;</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</content>
|
</content>
|
||||||
</entry>
|
</entry>
|
||||||
|
Loading…
Reference in New Issue
Block a user