diff --git a/.gitmodules b/.gitmodules index 51510b7b..33260468 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "themes/hugo-coder"] path = themes/hugo-coder url = git@github.com:zzsqwq/hugo-coder.git +[submodule "themes/PaperMod"] + path = themes/hugo-PaperMod + url = git@github.com:zzsqwq/hugo-PaperMod.git diff --git a/config.toml b/config.back.toml similarity index 100% rename from config.toml rename to config.back.toml diff --git a/config.yaml b/config.yaml new file mode 100644 index 00000000..5f9b0915 --- /dev/null +++ b/config.yaml @@ -0,0 +1,169 @@ +baseURL: "https://blog.zzsqwq.cn" +title: Zs's Blog +paginate: 5 +theme: hugo-PaperMod +languageCode: en +defaultContentLanguage: en +googleAnalytics: 'G-WF7TH97J9X' + +enableInlineShortcodes: true +enableRobotsTXT: true +buildDrafts: false +buildFuture: false +buildExpired: false +enableEmoji: true +pygmentsUseClasses: true +# googleAnalytics: UA-123-45 + +minify: + disableXML: true + # minifyOutput: true + +languages: + en: + languageName: "English" + weight: 1 + taxonomies: + category: categories + tag: tags + series: series + menu: + main: + - name: About + url: about + weight: 1 + - name: Posts + url: posts + weight: 5 + - name: Friends + url: friends + weight: 6 + - name: Contact + url: contact + weight: 10 + - name: Search + url: search + weight: 10 + +outputs: + home: + - HTML + - RSS + - JSON + +params: + env: production # to enable google analytics, opengraph, twitter-cards and schema. + author: zzsqwq + description: "Zs's personal website." + # author: ["Me", "You"] # multiple authors + + defaultTheme: auto + # disableThemeToggle: true + ShowShareButtons: false + ShowReadingTime: true + # disableSpecial1stPost: true + displayFullLangName: true + ShowPostNavLinks: true + ShowBreadCrumbs: true + ShowCodeCopyButtons: true + ShowRssButtonInSectionTermList: true + ShowToc: true + comments: true + # images: ["papermod-cover.png"] + avatarURL: "images/avatar.png" + favicon_32: "images/favicon-32x32.png" + dateFormat: "January 2, 2006" + since: 2019 + + profileMode: + enabled: true + title: zzsqwq + imageUrl: "images/avatar.png" + imageTitle: Profile avatar + imageWidth: 200 + imageHeight: 200 + subtitle: "Do whatever you want." + + + socialIcons: + - name: github + url: "https://github.com/zzsqwq" + - name: gitlab + url: "https://gitlab.com/zzsqwq" + - name: telegram + url: "https://t.me/zzsqwq" + - name: Rss + url: "index.xml" + + editPost: + URL: "https://github.com/zzsqwq/zzsqwq.github.io/tree/master/content" + Text: "Suggest Changes" # edit text + appendFilePath: true # to append file path to Edit link + + # label: + # text: "Home" + # icon: icon.png + # iconHeight: 35 + + analytics: + google: + SiteVerificationTag: "G-WF7TH97J9X" + + assets: + disableHLJS: true + favicon: "images/avatar.png" + # favicon16x16: "" + favicon32x32: "images/favicon-32x32.png" + # apple_touch_icon: "" + # safari_pinned_tab: "" + + # cover: + # hidden: true # hide everywhere but not in structured data + # hiddenInList: true # hide on list pages and home + # hiddenInSingle: true # hide on single page + + # fuseOpts: + # isCaseSensitive: false + # shouldSort: true + # location: 0 + # distance: 1000 + # threshold: 0.4 + # minMatchCharLength: 0 + # limit: 10 # refer: https://www.fusejs.io/api/methods.html#search + # keys: ["title", "permalink", "summary", "content"] + +markup: + goldmark: + renderer: + unsafe: true + highlight: + noClasses: true + # anchorLineNos: true + # codeFences: true + # guessSyntax: true + # lineNos: true + # style: monokai + +privacy: + vimeo: + disabled: false + simple: true + + twitter: + disabled: false + enableDNT: true + simple: true + + instagram: + disabled: false + simple: true + + youtube: + disabled: false + privacyEnhanced: true + +services: + instagram: + disableInlineCSS: true + twitter: + disableInlineCSS: true diff --git a/configTaxo.yaml b/configTaxo.yaml new file mode 100644 index 00000000..a0337d2b --- /dev/null +++ b/configTaxo.yaml @@ -0,0 +1,26 @@ +timeout: 30000 +enableInlineShortcodes: true + +taxonomies: + category: categories + tag: tags + series: series + +privacy: + vimeo: + disabled: false + simple: true + + twitter: + disabled: false + enableDNT: true + simple: true + disableInlineCSS: true + + instagram: + disabled: false + simple: true + + youtube: + disabled: false + privacyEnhanced: true diff --git a/content/archives.md b/content/archives.md new file mode 100644 index 00000000..95b4db54 --- /dev/null +++ b/content/archives.md @@ -0,0 +1,6 @@ +--- +title: "Archive" +layout: "archives" +# url: "/archives" +summary: "archives" +--- \ No newline at end of file diff --git "a/content/posts/Markdown-\347\274\226\350\276\221\345\231\250\346\216\250\350\215\220.md" "b/content/posts/Markdown-\347\274\226\350\276\221\345\231\250\346\216\250\350\215\220.md" index 921f86e0..418bf07a 100644 --- "a/content/posts/Markdown-\347\274\226\350\276\221\345\231\250\346\216\250\350\215\220.md" +++ "b/content/posts/Markdown-\347\274\226\350\276\221\345\231\250\346\216\250\350\215\220.md" @@ -12,7 +12,7 @@ date: "2021-12-01 20:12:00" 近期著名 Markdown 编辑器 [Typora](https://typora.io/) 宣布收费了,起初感觉很难受,后来感慨之余也觉得算是合理,毕竟 Typora 用起来感觉是真的很良心,也在考虑是否买一份支持一下。 -{{< notice tip >}} 已于2021/12/10购入,还是选择回归了 Typora 了哈哈哈 {{< /notice >}} +> 已于2021/12/10购入,还是选择回归了 Typora 了哈哈哈 虽说左右分屏的设计可能更符合 Markdown 的初衷,但是像 Typora 这种所见即所得(WYSIWYG) 的书写体验确实是感觉习惯了就回不去了。 diff --git a/content/posts/clash-for-windows-on-linux.md b/content/posts/clash-for-windows-on-linux.md index e56acb4e..92f06595 100644 --- a/content/posts/clash-for-windows-on-linux.md +++ b/content/posts/clash-for-windows-on-linux.md @@ -85,7 +85,7 @@ StartupNotify=true ## 配置开机自启动 -{{< notice info >}} 在 2022/6/4 的更新中,已经修复了 Start with Linux 失效的问题。 {{< /notice >}} +> 在 2022/6/4 的更新中,已经修复了 Start with Linux 失效的问题。 因为 Electron 的一些限制,点击 `Start with Linux` 后貌似仍没法开机自启动,去官方仓库看了一下 Issue,找到了两个: diff --git a/content/posts/how-to-use-clash.md b/content/posts/how-to-use-clash.md index 5478be7c..474b5be8 100644 --- a/content/posts/how-to-use-clash.md +++ b/content/posts/how-to-use-clash.md @@ -7,7 +7,7 @@ slug: "how-to-use-clash-on-linux" date: "2023-08-07T02:26:22+08:00" --- -{{< notice tip >}} 此方式推荐在纯终端(无图形化界面)环境下使用,有图形化界面的情况下推荐使用 [Clash for Windows](https://github.com/Fndroid/clash_for_windows_pkg/releases) 或 [Clash Verge](https://github.com/zzzgydi/clash-verge),相关博文可见—[Linux 上 Clash For Windows 如何设置开机自启与桌面图标](https://blog.zzsqwq.cn/posts/clash-for-windows-on-linux/)。{{< /notice >}} +> 此方式推荐在纯终端(无图形化界面)环境下使用,有图形化界面的情况下推荐使用 [Clash for Windows](https://github.com/Fndroid/clash_for_windows_pkg/releases) 或 [Clash Verge](https://github.com/zzzgydi/clash-verge),相关博文可见—[Linux 上 Clash For Windows 如何设置开机自启与桌面图标](https://blog.zzsqwq.cn/posts/clash-for-windows-on-linux/)。 ## 为什么选择 Clash? diff --git a/content/search.md b/content/search.md new file mode 100644 index 00000000..9da8567b --- /dev/null +++ b/content/search.md @@ -0,0 +1,4 @@ +--- +title: "Search" +layout: "search" +---