-
- {{ post.data.title or post.data.name or "Untitled" }}
+
+
+ {# Detect post type from frontmatter properties #}
+ {% set likedUrl = post.data.likeOf or post.data.like_of %}
+ {% set bookmarkedUrl = post.data.bookmarkOf or post.data.bookmark_of %}
+ {% set repostedUrl = post.data.repostOf or post.data.repost_of %}
+ {% set replyToUrl = post.data.inReplyTo or post.data.in_reply_to %}
+ {% set hasPhotos = post.data.photo and post.data.photo.length %}
+
+ {% if likedUrl %}
+ {# ── Like card ── #}
+
+
+
+
+
+
+ Liked
+
+
+
+ {% if post.templateContent %}
+
+ {{ post.templateContent | safe }}
+
+ {% endif %}
+ Permalink
+
+
+
+ {% elif bookmarkedUrl %}
+ {# ── Bookmark card ── #}
+
+
+
+
+
+
+ Bookmarked
+
+
+ {% if post.data.title %}
+
+ {{ post.data.title }}
+
+ {% endif %}
+
+ {% if post.templateContent %}
+
+ {{ post.templateContent | safe }}
+
+ {% endif %}
+ Permalink
+
+
+
+ {% elif repostedUrl %}
+ {# ── Repost card ── #}
+
+
+
+
+
+
+ Reposted
+
+
+
+ {% if post.templateContent %}
+
+ {{ post.templateContent | safe }}
+
+ {% endif %}
+ Permalink
+
+
+
+ {% elif replyToUrl %}
+ {# ── Reply card ── #}
+
+
+
+
+
+
+ In reply to
+
+
+
+
+
+ {% if post.templateContent %}
+
+ {{ post.templateContent | safe }}
+
+ {% endif %}
+ Permalink
+
+
+
+ {% elif hasPhotos %}
+ {# ── Photo card ── #}
+
+
+
+
+
+
+ Photo
+
+
+
+ {% for img in post.data.photo | head(2) %}
+ {% set photoUrl = img.url %}
+ {% if photoUrl and photoUrl[0] != '/' and 'http' not in photoUrl %}
+ {% set photoUrl = '/' + photoUrl %}
+ {% endif %}
+
+
+
+ {% endfor %}
+
+ {% if post.templateContent %}
+
+ {{ post.templateContent | safe }}
+
+ {% endif %}
+ Permalink
+
+
+
+ {% elif post.data.title %}
+ {# ── Article card ── #}
+
+
+ {{ post.data.title }}
-
- {% if showSummary and post.data.summary %}
+ {% if showSummary and post.templateContent %}
- {{ post.data.summary }}
+ {{ post.templateContent | striptags | truncate(250) }}
{% endif %}
-
-
+
+ {% else %}
+ {# ── Note card ── #}
+
+
+
+ {{ post.date | dateDisplay }}
+
+
+ {% if post.data.postType %}
+
+ {{ post.data.postType }}
+
+ {% endif %}
+
+ {% if post.templateContent %}
+
+ {{ post.templateContent | safe }}
+
+ {% endif %}
+
+ Permalink
+
+ {% endif %}
+
{% endfor %}
+
+
+ {% elif bookmarkedUrl %}
+ {# ── Bookmark card ── #}
+
+
+
+
+
+
+ Liked
+
+
+
+ {% if post.templateContent %}
+
+ {{ post.templateContent | safe }}
+
+ {% endif %}
+ Permalink
+
+
+
+ {% elif repostedUrl %}
+ {# ── Repost card ── #}
+
+
+
+
+
+
+ Bookmarked
+
+
+ {% if post.data.title %}
+ + {{ post.data.title }} +
+ {% endif %} + + {% if post.templateContent %} +
+ {{ post.templateContent | safe }}
+
+ {% endif %}
+ Permalink
+
+
+
+ {% elif replyToUrl %}
+ {# ── Reply card ── #}
+
+
+
+
+
+
+ Reposted
+
+
+
+ {% if post.templateContent %}
+
+ {{ post.templateContent | safe }}
+
+ {% endif %}
+ Permalink
+
+
+
+ {% elif hasPhotos %}
+ {# ── Photo card ── #}
+
+
+
+
+
+
+ In reply to
+
+
+ + +
+ {% if post.templateContent %} +
+ {{ post.templateContent | safe }}
+
+ {% endif %}
+ Permalink
+
+
+
+ {% elif post.data.title %}
+ {# ── Article card ── #}
+
+
+
+
+
+
+ Photo
+
+
+
+ {% for img in post.data.photo | head(2) %}
+ {% set photoUrl = img.url %}
+ {% if photoUrl and photoUrl[0] != '/' and 'http' not in photoUrl %}
+ {% set photoUrl = '/' + photoUrl %}
+ {% endif %}
+
+
+
+ {% endfor %}
+
+ {% if post.templateContent %}
+
+ {{ post.templateContent | safe }}
+
+ {% endif %}
+ Permalink
+ + + {{ post.data.title }}
- - {% if showSummary and post.data.summary %} + {% if showSummary and post.templateContent %}- {{ post.data.summary }} + {{ post.templateContent | striptags | truncate(250) }}
{% endif %} -
-
+
+ {% else %}
+ {# ── Note card ── #}
+
+
+
+ {{ post.date | dateDisplay }}
+
+
+ {% if post.data.postType %}
+
+ {{ post.data.postType }}
+
+ {% endif %}
+
+ {% if post.templateContent %}
+
+ {{ post.templateContent | safe }}
+
+ {% endif %}
+
+ Permalink
+
+ {% endif %}
+