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 %}
-
- {{ post.title or __('post.untitled') }}
-
- {%- endif %}
+
+ {{ post.title or __('post.untitled') }}
+
{{ 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 %}