Skip to content

Commit

Permalink
feat: change theme to papermod
Browse files Browse the repository at this point in the history
  • Loading branch information
zzsqwq committed Sep 16, 2023
1 parent 08cc11d commit ed32474
Show file tree
Hide file tree
Showing 9 changed files with 211 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "themes/hugo-coder"]
path = themes/hugo-coder
url = [email protected]:zzsqwq/hugo-coder.git
[submodule "themes/PaperMod"]
path = themes/hugo-PaperMod
url = [email protected]:zzsqwq/hugo-PaperMod.git
File renamed without changes.
169 changes: 169 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
@@ -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: "<link / abs url>"
favicon32x32: "images/favicon-32x32.png"
# apple_touch_icon: "<link / abs url>"
# safari_pinned_tab: "<link / abs url>"

# 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
26 changes: 26 additions & 0 deletions configTaxo.yaml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions content/archives.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: "Archive"
layout: "archives"
# url: "/archives"
summary: "archives"
---
2 changes: 1 addition & 1 deletion content/posts/Markdown-编辑器推荐.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) 的书写体验确实是感觉习惯了就回不去了。

Expand Down
2 changes: 1 addition & 1 deletion content/posts/clash-for-windows-on-linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,找到了两个:

Expand Down
2 changes: 1 addition & 1 deletion content/posts/how-to-use-clash.md
Original file line number Diff line number Diff line change
Expand Up @@ -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?

Expand Down
4 changes: 4 additions & 0 deletions content/search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: "Search"
layout: "search"
---

0 comments on commit ed32474

Please sign in to comment.