From ba540ab18adfc8b5a948e810f72de14c9a3f245a Mon Sep 17 00:00:00 2001 From: xunpod Date: Tue, 24 Sep 2024 20:23:00 +0800 Subject: [PATCH] docs: add index.d --- content/_index.md | 6 +++++ hugo.yaml | 68 ++++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 71 insertions(+), 3 deletions(-) create mode 100644 content/_index.md diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..b1f5f47 --- /dev/null +++ b/content/_index.md @@ -0,0 +1,6 @@ +--- +title: +toc: false +--- + +AOSC 用户手册! diff --git a/hugo.yaml b/hugo.yaml index fa5818b..ac9e5df 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -1,3 +1,65 @@ -baseURL: https://example.org/ -languageCode: en-us -title: My New Hugo Site +languageCode: zh-cn +enableInlineShortcodes: true +defaultContentLanguage: zh-cn +# Hugo configuration file +baseURL: https://users-guide.aosc.io/ +title: "AOSC OS 用户手册" +enableGitInfo: true + +outputs: + home: [ HTML ] + page: [ HTML ] + section: [ HTML, RSS ] +# import hextra as module +module: + imports: + - path: github.com/imfing/hextra + +markup: + # allow raw html + goldmark: + renderer: + unsafe: true + + # enable hextra syntax highlight + highlight: + noClasses: false + +menu: + main: + - name: 联系我们 + url: https://aosc.io/zh-cn/contact/ + weight: 3 + - name: 社区主页 + url: https://aosc.io/zh-cn/ + weight: 4 + - name: Search + weight: 5 + params: + type: search +params: + displayUpdatedDate: true + dateFormat: "January 2, 2006" + page: + # full (100%), wide (90rem), normal (1280px) + width: wide + footer: + enable: true + displayCopyright: true + displayPoweredBy: true + width: normal + # Search + search: + enable: true + type: flexsearch + flexsearch: + # index page by: content | summary | heading | title + index: title + theme: + # light | dark | system + default: system + displayToggle: true + editURL: + enable: true + base: "https://github.com/AOSC-Dev/liblol-website/edit/master/content" +description: AOSC 为您在新旧世界之间架起桥梁!