From 3de3e1de4db08083e817bb530ea50337cb579ce6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=A1=E6=A2=A6=E6=98=9F=E5=B0=98?= Date: Sat, 13 Aug 2022 16:27:15 +0800 Subject: [PATCH] :lipstick: Make flinks page support note short code. --- assets/css/_common/scaffolding/tags/note.scss | 2 +- exampleSite/config.yaml | 3 ++- exampleSite/content/flinks.md | 12 ++++++++---- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/assets/css/_common/scaffolding/tags/note.scss b/assets/css/_common/scaffolding/tags/note.scss index 877e097..f22fef4 100644 --- a/assets/css/_common/scaffolding/tags/note.scss +++ b/assets/css/_common/scaffolding/tags/note.scss @@ -1,7 +1,7 @@ //@use 'sass:map'; @if $note_style != 'disabled' { - .post-body .note { + .main .note { $note-icons : $note_icons; $note-style : $note_style; diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 9c0c8e1..e832f90 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -87,7 +87,8 @@ outputFormats: outputs: home: ["HTML", "RSS", "LocalIndexes"] -# 输入 +# 输出 robots 文件支持爬虫扫描 +# Enable robots with support crawler scan enableRobotsTXT: true #-------------------------------------- diff --git a/exampleSite/content/flinks.md b/exampleSite/content/flinks.md index d90beb4..525f67e 100644 --- a/exampleSite/content/flinks.md +++ b/exampleSite/content/flinks.md @@ -6,7 +6,11 @@ url: flinks.html 如想要交换友情链接,请在评论区留下你的站点信息,格式参考如下: -> **名称:** NexT 主题
-> **说明:** 保持简单的易用性和强大的功能。
-> **站标:** https://hugo-next.eu.org/imgs/hugo_next_avatar.png
-> **网址:** https://hugo-next.eu.org \ No newline at end of file +{{< note success no-icon >}} + + **名称:** NexT 主题
+ **说明:** 保持简单的易用性和强大的功能。
+ **站标:** https://hugo-next.eu.org/imgs/hugo_next_avatar.png
+ **网址:** https://hugo-next.eu.org
+ +{{< /note >}} \ No newline at end of file