From a28ffaf51f66b89d296460470e637f76c109d621 Mon Sep 17 00:00:00 2001 From: Max Merz Date: Sun, 28 Oct 2012 12:28:12 +0100 Subject: [PATCH] Don't show Permalink in feed for non-linkblog entries The permalink at the bottom of a feed entry only makes sense for linkblog posts. For non-linkblog posts, it should not be displayed in the feed entry since the title already links to the post. --- .themes/classic/source/_includes/feed_entry.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.themes/classic/source/_includes/feed_entry.xml b/.themes/classic/source/_includes/feed_entry.xml index 189c1fd..7c686f2 100644 --- a/.themes/classic/source/_includes/feed_entry.xml +++ b/.themes/classic/source/_includes/feed_entry.xml @@ -2,7 +2,7 @@ {% if post.external-url %}{% capture linklog %}{{ post.external-url }}{% endcapture %}{% endif %} {% capture title_url %}{% if linklog %}{{ linklog }}{% else %}{{ site.url }}{{ post.url }}{% endif %}{% endcapture %} {% capture title %}{% if linklog and site.linklog_marker_position_feed == 'before' %}{% unless linklog %}{{ site.standard_post_marker }}{% endunless %}{{ site.linklog_marker }} {% endif %}{{ post.title }}{% if linklog and site.linklog_marker_position_feed == 'after' %} {{ site.linklog_marker }}{% endif %}{% endcapture %} -{% capture content %}{% if site.excerpt_in_feed %}{{ post.content | excerpt | expand_urls: site.url }}

{{ site.excerpt_link }}

{% else %}{{ post.content | expand_urls: site.url }}

{{ site.permalink_label_feed }}

{% endif %}{% endcapture %} +{% capture content %}{% if site.excerpt_in_feed %}{{ post.content | excerpt | expand_urls: site.url }}

{{ site.excerpt_link }}

{% else %}{{ post.content | expand_urls: site.url }}{% endif %}{% if linklog and site.permalink_label_feed %}

{{ site.permalink_label_feed }}

{% endif %}{% endcapture %} <![CDATA[{{ title | cdata_escape }}]]> {{ post.date | date_to_xmlschema }}