diff --git a/README.md b/README.md index 9d5155c..e69de29 100644 --- a/README.md +++ b/README.md @@ -1,3 +0,0 @@ -https://gohugo.io/hosting-and-deployment/hosting-on-github/ -https://gohugo.io/getting-started/quick-start/ -https://github.com/adityatelange/hugo-PaperMod/wiki/Installation diff --git a/archetypes/default.md b/archetypes/default.md index 0d5eebd..887be08 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -2,4 +2,10 @@ date: '{{ .Date }}' draft: true title: '{{ replace .File.ContentBaseName "-" " " | title }}' +summary: "Please add summary" +description: "Please add description" +tags: ["default"] +author: "Qian" +isCJKLanguage: true +showToc: true --- diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..2ecafec --- /dev/null +++ b/config.yaml @@ -0,0 +1,98 @@ +baseURL: https://example.org/ +defaultContentLanguage: zh +copyright: "© [Qian](https://github.com/QianKuang8) 2024" +title: Qian's blog +theme: ["PaperMod"] +pagination: + pagerSize: 10 + +enableInlineShortcodes: true +enableRobotsTXT: true +buildDrafts: false +buildFuture: false +buildExpired: false +enableEmoji: true +pygmentsUseClasses: true +mainsections: ["posts", "papermod"] + +minify: + disableXML: true + +outputs: + home: + - HTML + - RSS + - JSON # necessary for search + +menu: + main: + - name: 首页 + url: / + weight: 10 + - name: 归档 + url: archives/ + weight: 20 + - name: 分类 + url: tags + weight: 30 + - name: 搜索 + url: search/ + weight: 40 + - name: Github + url: https://github.com/QianKuang8 + +params: + env: production # to enable google analytics, opengraph, twitter-cards and schema. + title: ExampleSite + description: "Qian's Blog" + # keywords: [Blog, Portfolio, PaperMod] + author: Qian + images: [""] + DateFormat: "2006-01-02" + + ShowReadingTime: true + ShowShareButtons: false + ShowPostNavLinks: true + ShowBreadCrumbs: false + ShowCodeCopyButtons: true + ShowWordCount: true + ShowRssButtonInSectionTermList: false + UseHugoToc: true + disableSpecial1stPost: false + disableScrollToTop: false + comments: false + hidemeta: false + hideSummary: false + showtoc: false + tocopen: false + + homeInfoParams: + Title: "Qian's Blog" + # imageUrl: "images/something" + # imageTitle: "title" + # imageWidth: 240 + # imageHeight: 240 + Content: > + What can I say? + + # + + # + + # + + # + + + + # socialIcons: + # - name: github + # title: View Source on Github + # url: "https://github.com/adityatelange/hugo-PaperMod" + + markup: + goldmark: + renderer: + unsafe: true + highlight: + noClasses: false diff --git a/content/archive.md b/content/archive.md new file mode 100644 index 0000000..e0f93b2 --- /dev/null +++ b/content/archive.md @@ -0,0 +1,4 @@ +--- +title: "归档" +layout: "archives" +--- \ No newline at end of file diff --git a/content/posts/build-blog-tips.md b/content/posts/build-blog-tips.md new file mode 100644 index 0000000..a4f79b8 --- /dev/null +++ b/content/posts/build-blog-tips.md @@ -0,0 +1,31 @@ +--- +date: '2024-12-08' +title: '搭建博客tips' +summary: "一些如何搭建博客和创建博文的记录" +description: "一些如何搭建博客和创建博文的记录" +tags: ["blog", "default"] +author: "Qian" +isCJKLanguage: true +showToc: true +--- +## 简介 +本博客使用Hugo框架,主题使用PaperMod + +## 常用操作 +创建页面 + +`hugo new content content/posts/my-first-post.md` + +本地浏览 + +`hugo server -D` + +## 初始化的一些操作 +需要配置一下首页的yaml,这个直接对着PaperMod的Wiki和其Example的yaml照搬一下就行 + +## 参考资料 +- https://gohugo.io/hosting-and-deployment/hosting-on-github/ +- https://gohugo.io/getting-started/quick-start/ +- https://github.com/adityatelange/hugo-PaperMod/wiki/Installation + + diff --git a/content/posts/init-mac.md b/content/posts/init-mac.md new file mode 100644 index 0000000..3696795 --- /dev/null +++ b/content/posts/init-mac.md @@ -0,0 +1,117 @@ +--- +date: '2024-12-10T17:22:55+08:00' +title: '初始化Mac系统' +summary: "记录一下初始化一个Mac系统需要干些什么" +description: "记录一下初始化一个Mac系统需要干些什么" +tags: ["init","default"] +author: "Qian" +isCJKLanguage: true +showToc: true +--- +# 初始化Mac + +## 开发软件 + +### Sublime Text + +install package control + +设置鼠标滚轮缩放大小: https://blog.csdn.net/dmcpxy/article/details/98854954 + +Mac终端中使用Sublime打开文件: https://www.jianshu.com/p/b77f058dd4a7 + +### Homebrew + +国内安装: https://brew.idayer.com/ + +终端使用代理加速的正确方式: https://weilining.github.io/294.html + +### iTerm2 + +https://zhuanlan.zhihu.com/p/550022490 + +插件安装建议自己上github看,里面很多东西说的都有些不对 + + +### Sequel Ace + +Sql Client + +https://github.com/Sequel-Ace/Sequel-Ace + +### Typora + +https://typora.io/ + +### Visual Studio Code + +https://code.visualstudio.com/ + + +### SourceGit + +Git GUI + +https://sourcegit-scm.github.io/ + +## 效率工具 + +### 输入法 + +任意中文输入法,方便shift切换中英文输入 + +### Snipaste + +截图+贴图 + +https://www.snipaste.com/ + +### Go2Shell + +finder下当前目录打开shell + +https://zipzapmac.com/Go2Shell + +### hidden + +隐藏顶端状态栏图标 + +https://github.com/dwarvesf/hidden + +### Scroll Reverser + +鼠标滚轮反向 + +https://pilotmoon.com/scrollreverser/ + +### Rectangle + +分屏软件,有windows中的快速分屏体验 + +https://github.com/rxhanson/Rectangle + +### uTools + +建议插件:json, diff, 翻译 + +https://www.u.tools/ + +### Skim + +pdf阅读软件 + +https://skim-app.sourceforge.io/ + +## Chrome插件 + +### screenity + +录屏软件 + +### OneTap + +收纳标签 + +### 沉浸式翻译 + +翻译软件 \ No newline at end of file diff --git a/content/posts/my-first-post.md b/content/posts/my-first-post.md deleted file mode 100644 index 01d6023..0000000 --- a/content/posts/my-first-post.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -date: '2024-11-25T10:37:39+08:00' -draft: true -title: 'My First Post' ---- diff --git a/content/search.md b/content/search.md new file mode 100644 index 0000000..626c586 --- /dev/null +++ b/content/search.md @@ -0,0 +1,8 @@ +--- +title: "Search" # in any language you want +layout: "search" # necessary for search +# url: "/archive" +# description: "Description for Search" +summary: "search" +placeholder: "请输入要搜索的内容" +--- \ No newline at end of file diff --git a/hugo.yaml b/hugo.yaml deleted file mode 100644 index 3cc15cd..0000000 --- a/hugo.yaml +++ /dev/null @@ -1,4 +0,0 @@ -baseURL: https://example.org/ -languageCode: zh-cn -title: Qian's blog -theme: [PaperMod] \ No newline at end of file diff --git a/public/404.html b/public/404.html index 2b121db..6e07104 100644 --- a/public/404.html +++ b/public/404.html @@ -1,24 +1,24 @@ - + -
+ - +