Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Don't show Permalink in feed for non-linkblog entries #800

Merged
merged 1 commit into from

2 participants

@mxmerz

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.

@mxmerz mxmerz 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.
a28ffaf
@mxmerz mxmerz referenced this pull request
Closed

Allow linklog style posts. #418

@imathis imathis merged commit 1750830 into from
@imathis
Owner

Thanks for the fix, good call.

@mxmerz mxmerz deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 28, 2012
  1. @mxmerz

    Don't show Permalink in feed for non-linkblog entries

    mxmerz authored
    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.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  .themes/classic/source/_includes/feed_entry.xml
View
2  .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 }}<p><a rel="bookmark" href="{{ site.url }}{{ post.url }}">{{ site.excerpt_link }}</a></p>{% else %}{{ post.content | expand_urls: site.url }}<p><a rel="bookmark" href="{{ site.url }}{{ post.url }}">{{ site.permalink_label_feed }}</a></p>{% endif %}{% endcapture %}
+{% capture content %}{% if site.excerpt_in_feed %}{{ post.content | excerpt | expand_urls: site.url }}<p><a rel="bookmark" href="{{ site.url }}{{ post.url }}">{{ site.excerpt_link }}</a></p>{% else %}{{ post.content | expand_urls: site.url }}{% endif %}{% if linklog and site.permalink_label_feed %}<p><a rel="bookmark" href="{{ site.url }}{{ post.url }}">{{ site.permalink_label_feed }}</a></p>{% endif %}{% endcapture %}
<title type="html"><![CDATA[{{ title | cdata_escape }}]]></title>
<link href="{{ title_url }}"/>
<updated>{{ post.date | date_to_xmlschema }}</updated>
Something went wrong with that request. Please try again.