mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-12-26 09:28:52 -05:00
f954689bb6
Feed urls are more flexible with linklog items
15 lines
1.1 KiB
HTML
15 lines
1.1 KiB
HTML
{% assign linklog = false %}
|
|
{% assign index = false %}
|
|
|
|
{% if page.external-url %}
|
|
{% capture linklog %}{{ page.external-url }}{% endcapture %}
|
|
{% elsif post.external-url %}
|
|
{% capture linklog %}{{ post.external-url }}{% endcapture %}
|
|
{% endif %}
|
|
{% if post.url %}{% assign index = true %}{% endif %}
|
|
{% capture permalink %}{{ root_url }}{% if index %}{{ post.url }}{% else %}{{ page.url }}{% endif %}{% endcapture %}
|
|
{% capture title_url %}{% if linklog %}{{ linklog }}{% else %}{{ permalink }}{% endif %}{% endcapture %}
|
|
{% capture article_title %}{% if index %}{% unless linklog %}{{ site.standard_post_marker }}{% endunless %}{{ post.title }}{% else %}{% unless linklog %}{{ site.standard_post_marker }}{% endunless %}{{ page.title }}{% endif %}{% endcapture %}
|
|
{% capture linklog_marker %}<span class='linklog-marker'>{{ site.linklog_marker }}</span>{% endcapture %}
|
|
{% capture content %}{% if index %}{% capture excerpted %}{{ post.content | has_excerpt }}{% endcapture %}{% if excerpted != 'false' %}{{ post.content | excerpt }}{% else %}{{ post.content }}{% endif %}{% else %}{{ content }}{% endif %}{% endcapture %}
|