From a24450d9cfc6a6f7e5f6ddfabd6167fb6c0857d9 Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Thu, 27 Jul 2023 23:23:45 +0800 Subject: [PATCH] Remove link posts feature --- layout/_macro/post-collapse.njk | 12 +++--------- layout/_macro/post.njk | 12 +----------- .../css/_common/components/post/post-collapse.styl | 5 ----- 3 files changed, 4 insertions(+), 25 deletions(-) diff --git a/layout/_macro/post-collapse.njk b/layout/_macro/post-collapse.njk index 4c39119..1489454 100644 --- a/layout/_macro/post-collapse.njk +++ b/layout/_macro/post-collapse.njk @@ -22,15 +22,9 @@
- {%- 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 e297189..7cb3a6e 100644 --- a/layout/_macro/post.njk +++ b/layout/_macro/post.njk @@ -26,17 +26,7 @@ {%- 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"> - {# 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 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 a4b5719..b406c62 100644 --- a/source/css/_common/components/post/post-collapse.styl +++ b/source/css/_common/components/post/post-collapse.styl @@ -89,11 +89,6 @@ border-bottom: 0; color: var(--link-color); } - - .fa { - font-size: $font-size-small; - margin-left: 5px; - } } &::before {