From 96ba605026a05c60eada2f097f6d5c5d8592f5a7 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, 6 Aug 2022 16:15:15 +0800 Subject: [PATCH] :bug: Fixed some configuration & display scripts. --- assets/js/next-boot.js | 2 +- exampleSite/config.yaml | 15 ++++++++++----- exampleSite/content/about.md | 2 +- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/assets/js/next-boot.js b/assets/js/next-boot.js index 8f96889..cad11e4 100644 --- a/assets/js/next-boot.js +++ b/assets/js/next-boot.js @@ -4,7 +4,7 @@ NexT.boot = {}; NexT.boot.registerEvents = function() { - // NexT.utils.registerScrollPercent(); + NexT.utils.registerScrollPercent(); // NexT.utils.registerCanIUseTag(); // Mobile top menu bar. diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 43af436..20656b0 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -67,7 +67,7 @@ outputFormats: baseName: "rss" # 自定义生成本地搜索文件 # Custom file of indexes for local search - SearchIndexes: + LocalIndexes: mediaType: application/xml baseName: searchindexes isPlainText: true @@ -81,7 +81,7 @@ outputFormats: notAlternative: true outputs: - home: ["HTML", "RSS", "SearchIndexes"] + home: ["HTML", "RSS", "LocalIndexes"] #-------------------------------------- # 菜单配置说明 @@ -112,16 +112,21 @@ menus: pageref: /about.html pre: user weight: 2 + - identifier: flinks + name: 站点示例 + pageref: /flinks.html + pre: thumbs-up + weight: 3 - identifier: archives name: 归档 pageref: /archives pre: archive - weight: 3 + weight: 4 - identifier: commonweal name: 公益 404 url: /404.html pre: heartbeat - weight: 4 + weight: 5 #----------------------------------------- # Hugo NexT 主题参数配置 @@ -912,7 +917,7 @@ params: # Algolia Search # For more information: https://www.algolia.com algoliaSearch: - enable: true + enable: false appId: # apiKey: # indexName: # diff --git a/exampleSite/content/about.md b/exampleSite/content/about.md index ca58c5f..c4e89c7 100644 --- a/exampleSite/content/about.md +++ b/exampleSite/content/about.md @@ -1,6 +1,6 @@ --- title: "关于 Hugo NexT 组织" -description: "" +description: "Hugo NexT 组织介绍说明。" date: 2022-06-09T20:12:52+08:00 lastmod: 2022-06-09T20:12:52+08:00