diff --git a/layout/_macro/post-collapse.njk b/layout/_macro/post-collapse.njk index 1489454..4c39119 100644 --- a/layout/_macro/post-collapse.njk +++ b/layout/_macro/post-collapse.njk @@ -22,9 +22,15 @@
- + {%- if post.link %}{# Link posts #} + {%- set postTitleIcon = '' %} + {%- set postText = post.title or post.link %} + {{ next_url(post.link, postText + postTitleIcon, {class: 'post-title-link post-title-link-external', itemprop: 'url'}) }} + {% else %} + + {%- endif %}
{{ post_gallery(post.photos) }} diff --git a/layout/_macro/post.njk b/layout/_macro/post.njk index 7cb3a6e..e297189 100644 --- a/layout/_macro/post.njk +++ b/layout/_macro/post.njk @@ -26,7 +26,17 @@ {%- if post.header !== false %}
<{% if is_index %}h2{% else %}h1{% endif %} class="post-title{% if post.direction and post.direction.toLowerCase() === 'rtl' %} rtl{% endif %}" itemprop="name headline"> - {% if is_index %} + {# Link posts #} + {%- if post.link %} + {%- if post.sticky > 0 %} + + + + {%- endif %} + {%- set postTitleIcon = '' %} + {%- set postText = post.title or post.link %} + {{- next_url(post.link, postText + postTitleIcon, {class: 'post-title-link post-title-link-external', itemprop: 'url'}) }} + {% elif is_index %} {%- if post.sticky > 0 %} diff --git a/source/css/_common/components/post/post-collapse.styl b/source/css/_common/components/post/post-collapse.styl index b406c62..a4b5719 100644 --- a/source/css/_common/components/post/post-collapse.styl +++ b/source/css/_common/components/post/post-collapse.styl @@ -89,6 +89,11 @@ border-bottom: 0; color: var(--link-color); } + + .fa { + font-size: $font-size-small; + margin-left: 5px; + } } &::before {