From 6efcab244cff63d2990b2dd2df0de00bfef4a4e1 Mon Sep 17 00:00:00 2001 From: leafee98 Date: Wed, 18 May 2022 22:54:44 +0800 Subject: [PATCH] update theme, arrange posts, multi-section, RSS link --- archetypes/default.md | 2 ++ config.toml | 7 ++++++- content/about.md | 4 ++++ content/essays/_index.md | 12 ++++++++++++ content/posts/KVM安装.md | 7 +++++-- content/posts/Linux文件系统中的权限.md | 5 ++++- content/posts/Linux服务----systemd.unit.md | 7 ++++--- content/posts/Linux计划任务----crontab.md | 6 ++++-- content/posts/_index.md | 10 ++++++++++ content/posts/nginx配置webdav.md | 3 +++ content/posts/shell学习笔记.md | 6 ++++-- .../use-git-hook-to-build-hugo-site-automatically.md | 2 ++ content/posts/vsftp常用配置和踩坑.md | 6 ++++-- content/posts/webdav的挂载.md | 3 +++ .../posts/为单一命令设置代理环境变量的终端函数.md | 5 ++++- content/posts/树莓派Arch Base系统无头配置wifi连接.md | 6 ++++-- content/posts/正则表达式随笔.md | 6 ++++-- content/posts/科一知识点总结.md | 6 ++++-- content/posts/科四知识点总结.md | 8 +++++--- content/posts/迁移到wayland事记.md | 5 ++++- content/posts/部署davical到apache2.md | 3 +++ themes/hugo-theme-flat | 2 +- 22 files changed, 96 insertions(+), 25 deletions(-) create mode 100644 content/essays/_index.md create mode 100644 content/posts/_index.md diff --git a/archetypes/default.md b/archetypes/default.md index 8882e0b..64808c8 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -3,6 +3,8 @@ title: "{{ replace .Name "-" " " | title }}" date: {{ .Date }} tags: [] categories: [] +weight: 50 +show_comments: true draft: true --- diff --git a/config.toml b/config.toml index f316e6d..72c529a 100644 --- a/config.toml +++ b/config.toml @@ -48,9 +48,14 @@ pre = "Theme hugo-theme-f [[menus.main]] -name = "Archives" +name = "Posts" url = "/posts/" +weight = 20 +[[menus.main]] +name = "Essays" +url = "/essays/" weight = 30 + [[menus.main]] pageref = "about" name = "About" diff --git a/content/about.md b/content/about.md index 17bf28d..0ace132 100644 --- a/content/about.md +++ b/content/about.md @@ -1,6 +1,10 @@ --- title: "About" date: 2021-01-04T11:36:10+08:00 +tags: [] +categories: [] +weight: 50 +show_comments: true draft: false --- diff --git a/content/essays/_index.md b/content/essays/_index.md new file mode 100644 index 0000000..6f2b151 --- /dev/null +++ b/content/essays/_index.md @@ -0,0 +1,12 @@ +--- +title: "Essays" +date: 2022-05-18T16:40:45+08:00 +tags: [] +categories: [] +weight: 60 +draft: false +--- + + + +*There are some short articles, eg: summary after I read other's blog.* diff --git a/content/posts/KVM安装.md b/content/posts/KVM安装.md index 5458f81..950439b 100644 --- a/content/posts/KVM安装.md +++ b/content/posts/KVM安装.md @@ -1,7 +1,10 @@ --- title: "KVM安装" date: 2020-02-29T15:12:41+08:00 -tags: [linux, KVM] +tags: [ linux, KVM ] +categories: [ tech ] +weight: 50 +show_comments: true draft: false --- @@ -53,4 +56,4 @@ sudo systemctl enable libvirtd.service ``` sudo systemctl start libvirtd.service -``` \ No newline at end of file +``` diff --git a/content/posts/Linux文件系统中的权限.md b/content/posts/Linux文件系统中的权限.md index fdbae0d..d0ea7bd 100644 --- a/content/posts/Linux文件系统中的权限.md +++ b/content/posts/Linux文件系统中的权限.md @@ -1,7 +1,10 @@ --- title: "Linux 文件系统中的权限" date: 2021-09-29T22:01:00+08:00 -tags: [linux, permission, file system] +tags: [ linux, permission, file system ] +categories: [ tech ] +weight: 50 +show_comments: true draft: false --- diff --git a/content/posts/Linux服务----systemd.unit.md b/content/posts/Linux服务----systemd.unit.md index be362f9..cd062a6 100644 --- a/content/posts/Linux服务----systemd.unit.md +++ b/content/posts/Linux服务----systemd.unit.md @@ -1,10 +1,11 @@ --- title: Linux服务 -- systemd.unit date: 2019-09-14 04:09:45 +0800 -layout: post -categories: [ tech ] tags: [ linux, systemctl ] - +categories: [ tech ] +weight: 50 +show_comments: true +draft: false --- diff --git a/content/posts/Linux计划任务----crontab.md b/content/posts/Linux计划任务----crontab.md index e478e7c..572ffa8 100644 --- a/content/posts/Linux计划任务----crontab.md +++ b/content/posts/Linux计划任务----crontab.md @@ -1,9 +1,11 @@ --- title: Linux计划任务 -- crontab -layout: post +date: 2019-09-17 11:04:15 +0800 tags: [ linux, crontab ] categories: [ tech ] -date: 2019-09-17 11:04:15 +0800 +weight: 50 +show_comments: true +draft: false --- diff --git a/content/posts/_index.md b/content/posts/_index.md new file mode 100644 index 0000000..c889e22 --- /dev/null +++ b/content/posts/_index.md @@ -0,0 +1,10 @@ +--- +title: "Posts" +date: 2022-05-18T16:40:51+08:00 +tags: [] +categories: [] +weight: 40 +draft: false +--- + + diff --git a/content/posts/nginx配置webdav.md b/content/posts/nginx配置webdav.md index 83dcace..5954a4b 100644 --- a/content/posts/nginx配置webdav.md +++ b/content/posts/nginx配置webdav.md @@ -2,6 +2,9 @@ title: "Nginx配置webdav" date: 2020-03-24T23:26:53+08:00 tags: [ linux, nginx ] +categories: [ tech ] +weight: 50 +show_comments: true draft: false --- diff --git a/content/posts/shell学习笔记.md b/content/posts/shell学习笔记.md index e87b486..6a597bd 100644 --- a/content/posts/shell学习笔记.md +++ b/content/posts/shell学习笔记.md @@ -1,9 +1,11 @@ --- title: shell学习笔记 date: 2019-07-20 15:46:09 +0800 -layout: post -categories: [ tech ] tags: [ linux ] +categories: [ tech ] +weight: 50 +show_comments: true +draft: false --- ### 关于符号 diff --git a/content/posts/use-git-hook-to-build-hugo-site-automatically.md b/content/posts/use-git-hook-to-build-hugo-site-automatically.md index c38f2af..86f1794 100644 --- a/content/posts/use-git-hook-to-build-hugo-site-automatically.md +++ b/content/posts/use-git-hook-to-build-hugo-site-automatically.md @@ -3,6 +3,8 @@ title: "使用 git hook 实现自动构建 Hugo 静态网站" date: 2022-04-28T20:39:01+08:00 tags: [ git, git-hook, hugo ] categories: [ tech ] +weight: 50 +show_comments: true draft: false --- diff --git a/content/posts/vsftp常用配置和踩坑.md b/content/posts/vsftp常用配置和踩坑.md index f3d8dca..3226b53 100644 --- a/content/posts/vsftp常用配置和踩坑.md +++ b/content/posts/vsftp常用配置和踩坑.md @@ -1,9 +1,11 @@ --- title: vsftp 配置,踩坑和一些理解 date: 2019-10-01 20:53:00 +0800 -layout: post -categories: [ tech ] tags: [ linux, vsftp ] +categories: [ tech ] +weight: 50 +show_comments: true +draft: false --- ## 1. vsftpd虚拟用户的配置 diff --git a/content/posts/webdav的挂载.md b/content/posts/webdav的挂载.md index ce75080..8dcdf41 100644 --- a/content/posts/webdav的挂载.md +++ b/content/posts/webdav的挂载.md @@ -2,6 +2,9 @@ title: "Webdav的挂载" date: 2020-08-23T11:28:36+08:00 tags: [ linux, mount, systemd ] +categories: [ tech ] +weight: 50 +show_comments: true draft: false --- diff --git a/content/posts/为单一命令设置代理环境变量的终端函数.md b/content/posts/为单一命令设置代理环境变量的终端函数.md index 3bb49e5..c90546d 100644 --- a/content/posts/为单一命令设置代理环境变量的终端函数.md +++ b/content/posts/为单一命令设置代理环境变量的终端函数.md @@ -1,7 +1,10 @@ --- title: "为单一命令设置环境变量的终端函数" date: 2021-04-19T14:10:41+08:00 -tags: [linux, shell, bash] +tags: [ linux, shell, bash ] +categories: [ tech ] +weight: 50 +show_comments: true draft: false --- diff --git a/content/posts/树莓派Arch Base系统无头配置wifi连接.md b/content/posts/树莓派Arch Base系统无头配置wifi连接.md index 583d949..9561ed0 100644 --- a/content/posts/树莓派Arch Base系统无头配置wifi连接.md +++ b/content/posts/树莓派Arch Base系统无头配置wifi连接.md @@ -1,9 +1,11 @@ --- title: 树莓派Arch Base系统无头配置wifi date: 2020-02-06 19:31:00 +0800 -layout: post -categories: [ tech ] tags: [ raspi, linux ] +categories: [ tech ] +weight: 50 +show_comments: true +draft: false --- ## 开门见山 diff --git a/content/posts/正则表达式随笔.md b/content/posts/正则表达式随笔.md index f218632..9cf9199 100644 --- a/content/posts/正则表达式随笔.md +++ b/content/posts/正则表达式随笔.md @@ -1,9 +1,11 @@ --- title: 正则表达式随笔 date: 2019-08-03 16:03:45 +0800 -layout: post -categories: [ tech ] tags: [ regular-expression ] +categories: [ tech ] +weight: 50 +show_comments: true +draft: false --- ## POSIX基础正则表达式 diff --git a/content/posts/科一知识点总结.md b/content/posts/科一知识点总结.md index 387c84c..cb35076 100644 --- a/content/posts/科一知识点总结.md +++ b/content/posts/科一知识点总结.md @@ -1,9 +1,11 @@ --- -layout: post title: "科一知识点总结" date: 2019-08-02 21:40:00 +0800 -categories: [ daily ] tags: [ drive ] +categories: [ daily ] +weight: 50 +show_comments: true +draft: false --- > 总结截止于2019年8月2日,之后的知识点或可能不再进行更新。 diff --git a/content/posts/科四知识点总结.md b/content/posts/科四知识点总结.md index 71353ed..b0d21fe 100644 --- a/content/posts/科四知识点总结.md +++ b/content/posts/科四知识点总结.md @@ -1,9 +1,11 @@ --- title: 科四知识点总结 date: 2020-05-11 10:30:10 +0800 -layout: post -categories: [ daily ] tags: [ drive ] +categories: [ daily ] +weight: 50 +show_comments: true +draft: false --- > 总结截止于2019年8月2日,之后的知识点或可能不再进行更新,请自行甄别。 @@ -309,4 +311,4 @@ tags: [ drive ] - 一条车道: 后方停车 - 两条车道: 后方和相邻车道停车 -- 三条车道: 后方和和相邻车道停车, 左侧车道减速慢行 \ No newline at end of file +- 三条车道: 后方和和相邻车道停车, 左侧车道减速慢行 diff --git a/content/posts/迁移到wayland事记.md b/content/posts/迁移到wayland事记.md index 3a3e2fd..807496c 100644 --- a/content/posts/迁移到wayland事记.md +++ b/content/posts/迁移到wayland事记.md @@ -1,7 +1,10 @@ --- title: "迁移到 wayland 事记" date: 2021-10-24T17:28:00+08:00 -tags: [linux, KVM] +tags: [ linux, KVM ] +categories: [ tech ] +weight: 50 +show_comments: true draft: false --- diff --git a/content/posts/部署davical到apache2.md b/content/posts/部署davical到apache2.md index afd1ea9..3616a88 100644 --- a/content/posts/部署davical到apache2.md +++ b/content/posts/部署davical到apache2.md @@ -2,6 +2,9 @@ title: "部署davical到apache2" date: 2021-01-02T12:21:45+08:00 tags: [ linux, apache, caldav ] +categories: [ tech ] +weight: 50 +show_comments: true draft: false --- diff --git a/themes/hugo-theme-flat b/themes/hugo-theme-flat index 715a82f..a71e469 160000 --- a/themes/hugo-theme-flat +++ b/themes/hugo-theme-flat @@ -1 +1 @@ -Subproject commit 715a82f5acf80b125c5e5ead2ff5765c075efa6b +Subproject commit a71e469a23f99a8a203e46e00b275c03209a8fd5