From fc16f0206216ec58ca30b09c662bcd5f16211c7a Mon Sep 17 00:00:00 2001 From: verdant Date: Sat, 28 Feb 2026 21:30:17 +0800 Subject: docs: fix weekly template --- archetypes/weekly.md | 2 +- content/posts/weekly/9.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/archetypes/weekly.md b/archetypes/weekly.md index 087def5..6797356 100644 --- a/archetypes/weekly.md +++ b/archetypes/weekly.md @@ -9,7 +9,7 @@ tags: draft: true --- -这里是回声周刊,分享我这周读过的文章书籍、近期发生的大事小事。每周日更新。如果你对这个周刊感兴趣,可以 [订阅周刊](/categories/%E5%9B%9E%E5%A3%B0%E5%91%A8%E5%88%8A/atom.xml)。 +这里是回声周刊,分享我这周读过的文章书籍、近期发生的大事小事。每周日更新。如果你对这个周刊感兴趣,可以 [订阅周刊](/categories/%E5%9B%9E%E5%A3%B0%E5%91%A8%E5%88%8A/atom.xml) 。 ## 〰︎ 声波 diff --git a/content/posts/weekly/9.md b/content/posts/weekly/9.md index 8570ef4..5dd91b8 100644 --- a/content/posts/weekly/9.md +++ b/content/posts/weekly/9.md @@ -16,7 +16,7 @@ draft: false 这里是回声周刊,分享我这周读过的文章书籍、近期发生的大事小事。每周日更新。如果你对这个周刊感兴趣,可以 [订阅周刊](/categories/%E5%9B%9E%E5%A3%B0%E5%91%A8%E5%88%8A/atom.xml)。 -# 〰︎ 声波 +## 〰︎ 声波 {{< music cover="https://images.glowisle.me/ab67616d00001e02dd4b5b436b7318b3915acc5d.jpeg" -- cgit v1.2.3 From 31beb6b333f57f97a234889c20162b030f07cd73 Mon Sep 17 00:00:00 2001 From: verdant Date: Sat, 28 Feb 2026 21:31:54 +0800 Subject: docs: remove comments in index.html --- content/_index.md | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/content/_index.md b/content/_index.md index 488c825..ebb4542 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,15 +1,4 @@ --- title: "映屿" --- - - - {{< recent-posts >}} -- cgit v1.2.3 From 9e4981b1e5201ff4ae52128b1d7f73871a8dd0c9 Mon Sep 17 00:00:00 2001 From: verdant Date: Sat, 28 Feb 2026 21:32:09 +0800 Subject: docs: rewrite about page --- content/about.md | 41 +++++++++++++++++++++++++++++++---------- 1 file changed, 31 insertions(+), 10 deletions(-) diff --git a/content/about.md b/content/about.md index 77e6d23..b00b13f 100644 --- a/content/about.md +++ b/content/about.md @@ -6,7 +6,7 @@ showMeta: false --- ## 关于我 -我出生于2011年,在天津长大。你可以用**Verdant**或**五葉地錦**(五叶地锦)来称呼我。你可以在[Uses](/uses)页面查看我使用的硬件和软件。 +我出生于 2011 年,在天津长大。你可以用 **Verdant** 或 **五葉地錦**(五叶地锦)来称呼我。 我知道标签是一个很无聊且有点片面的东西,但可以帮助你快速认识我,以下是我的一些标签。 @@ -14,21 +14,42 @@ showMeta: false - 金牛座 - 业余编程爱好者:C, Golang, 前端 -我平时喜欢看一些以文学为主的闲书、听音乐、弹贝斯,以及写作。这些都是我生活中不可或缺的事情,有时候也会写一些代码。我的数学很差,所以算法对我来说很痛苦,但还是会偶尔硬着头皮啃一点,很佩服数学厉害的人。 +我平时喜欢看一些以文学为主的闲书、听音乐、弹贝斯,以及写作。这些都是我生活中不可或缺的事情,有时候也会写一些代码。我的数学很差,所以算法对我来说很痛苦,但还是会偶尔硬着头皮啃一点,很佩服数学厉害的人。如果不写代码,我坐在电脑前多半是在折腾 GNU/Linux 和 Emacs。 ## 关于这里 -一方面,在言论审查日益病态,持有不同观点就要被封杀,讨论只有浅显的结果没有过程的网络环境下,有一片自己的表达空间十分重要,我希望能说自己想说的话,说真话,说实话。 +### 为什么要搭建这个网站 -另一方面,我的写作完全出于无处安放的表达欲,我尝试过各种地方来存放那些凌乱的想法和文字,例如微博、推特、微信公众号,甚至是微信朋友圈和QQ空间。但那不仅仅是在用自己的文字和思想给别人做嫁妆,还会被算法和流量以及审查裹挟。起初,我只是觉得有个人网站很酷,但随着我微不足道的阅历和年龄的增长,我意识到自己需要表达的空间,所以这个# 鸣谢 +我在几年前就有搭建自己网站的想法,觉得有自己的网站很酷(确实是这样!),就手动编写了一些静态 HTML 页面,放在 Github Page 上,后来开始搭建博客,但并不知道该写点什么。上网冲浪多了以后,我发现我不喜欢被算法、流量、审查裹挟。在那里写东西,总感觉是在给平台做嫁妆,而且讨论往往只有结论没有过程,甚至只有情绪。我会在这里写点想写的东西,算是作为社交属性不那么强烈的社交媒体,来释放自己的表达欲吧。如果你问我这个网站到底有什么,我也说不太清楚,写过书评,也写过散文随笔,还写过一些技术类文章。有矫情的,也有幼稚的,总之是大量的黑历史。 -- 本站样式基于 [Hugo Bear Neo](https://github.com/rokcso/hugo-bearneo/) 主题修改 -- 音乐卡片来自 [極客死亡計劃](https://github.com/BigCoke233/geek-death-project) +### 这个网站是如何搭建的 ---- +我使用 Emacs 在本地以 Markdown 格式写作,静态页面由 Hugo 构建,完成后推送到 Github Pages 仓库和[代码仓库](https://github.com/yingyu5658/glowisle),图片资源存储在 Cloudflare R2 OSS。 + +### 为什么关闭了评论区? + +本站从 2026 年 2 月 25 日 起关闭了评论区,不是因为垃圾评论,也不是因为恶意评论,只是因为我不擅长回应评论,虽然留下评论的人不多,但每次遇到评论,即使是一行简单的夸奖,我都会坐在屏幕前抓耳挠腮半小时来编辑回复。 + +相比评论,邮件就对我个人显得友善一些,并且由于编写一封邮件的体感上像写一篇文章,就会让双方更加认真对待交流,频率也会比评论低,社交层面的压力也减少了许多,因此如果有想对我说的话,就请[写信给我](mailto:i@glowisle.me)吧,我会回复每一封来信。 + +如果想要社交、查看我最近的动态或期待更轻松的交流,请关注我的 [Fediverse](https://akk.glowisle.me/verdant) 账号。 -博客内容承诺均**非AI创作**,所有文章内容使用[CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/)协议授权。 +上一次有关评论区的的调整,请阅读[这篇文章](/posts/tear-hypocrisy-apart/)。 -- 目前文章字数:{{< word-count "posts" >}} +另外,*少引入一个脚本,也能加快一点网站的加载速度嘛。* + +## 一些其他的东西 + +- [访问我在 Tilde 社区托管的个人主页](http://rw.rs/~verdant) +- [在 Fediverse 上关注我](https://akk.glowisle.me/verdant) +- [Github](https://github.com/yingyu5658) +- [RSS](/rss) +- [Uses](/uses) + +## 鸣谢与声明 + +- 本站样式基于 [Hugo Bear Neo](https://github.com/rokcso/hugo-bearneo/) 主题修改 +- 音乐卡片来自 [極客死亡計劃](https://src.eltr.ac/eltrac/geedeapro) +- 博客内容承诺均**非AI创作**,所有文章内容使用[CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/)协议授权,源代码以 MIT 协议授权。 -如果你喜欢我的文字,可以使用[RSS](/rss)来订阅。 +目前文章字数:{{< word-count "posts" >}} -- cgit v1.2.3 From 171dda197c1c71ebff9c62568aafcf2fa9b463e3 Mon Sep 17 00:00:00 2001 From: verdant Date: Sat, 28 Feb 2026 21:32:52 +0800 Subject: feat: add multi-language support (English page) --- content/en/_index.md | 5 ++ content/en/archives.md | 6 +++ content/en/posts/HelloWorld.md | 10 ++++ hugo.toml | 105 +++++++++++++++++++++++++++++++---------- i18n/en.toml | 10 ++++ i18n/zh.toml | 10 ++++ 6 files changed, 121 insertions(+), 25 deletions(-) create mode 100644 content/en/_index.md create mode 100644 content/en/archives.md create mode 100644 content/en/posts/HelloWorld.md create mode 100644 i18n/en.toml create mode 100644 i18n/zh.toml diff --git a/content/en/_index.md b/content/en/_index.md new file mode 100644 index 0000000..8623c34 --- /dev/null +++ b/content/en/_index.md @@ -0,0 +1,5 @@ +--- +title: "GlowIsle" +--- + +{{< recent-posts >}} diff --git a/content/en/archives.md b/content/en/archives.md new file mode 100644 index 0000000..de873df --- /dev/null +++ b/content/en/archives.md @@ -0,0 +1,6 @@ +--- +title: "归档" +type: "archives" +comments: false +showMeta: false +--- diff --git a/content/en/posts/HelloWorld.md b/content/en/posts/HelloWorld.md new file mode 100644 index 0000000..5f876cd --- /dev/null +++ b/content/en/posts/HelloWorld.md @@ -0,0 +1,10 @@ +--- +title: 'HelloWorld' +date: '2026-02-26T14:16:05+08:00' +slug: "hw" +categories: +tags: +draft: true +comments: true +--- +Hello World! This is my first English post. diff --git a/hugo.toml b/hugo.toml index 29d4f68..d62a255 100644 --- a/hugo.toml +++ b/hugo.toml @@ -3,8 +3,8 @@ title = "映屿" hasCJKLanguage = true enableRobotsTXT = true pagination.pagerSize = 5 -languageCode = "zh-CN" -copyright = "Copyright © 2024, GlowIsle." +defaultContentLanguage = "zh-CN" +copyright = "Copyright © 2024 - 2026, GlowIsle." [outputFormats] [outputFormats.RSS] @@ -39,32 +39,87 @@ tabWidth = 4 category = "categories" tag = "tags" -[menu] -[[menu.main]] - name = "分类" - url = "/categories/" + +[languages] + [languages.zh-cn] + languageName = "中文" + weight = 1 + title = "映屿" + # 中文菜单 + [[languages.zh-cn.menu.main]] + name = "分类" + url = "/categories/" + weight = 2 + [[languages.zh-cn.menu.main]] + name = "友人" + url = "/links/" + weight = 3 + [[languages.zh-cn.menu.main]] + name = "归档" + url = "/archives/" + weight = 4 + [[languages.zh-cn.menu.main]] + name = "书单" + url = "/readings/" + weight = 5 + [[languages.zh-cn.menu.main]] + name = "关于" + url = "/about/" + weight = 6 + [languages.en] + languageName = "English" + contentDir = "content/en" + title = "GlowIsle" weight = 2 + # 英文菜单 + [[languages.en.menu.main]] + name = "Categories" + url = "/categories/" + weight = 2 + [[languages.en.menu.main]] + name = "Links" + url = "/links/" + weight = 3 + [[languages.en.menu.main]] + name = "Archives" + url = "/archives/" + weight = 4 + [[languages.en.menu.main]] + name = "Readings" + url = "/readings/" + weight = 5 + [[languages.en.menu.main]] + name = "About" + url = "/about/" + weight = 6 + +# [menu] + +# [[menu.main]] +# name = "分类" +# url = "/categories/" +# weight = 2 + +# [[menu.main]] +# name = "友人" +# url = "/links/" +# weight = 3 + +# [[menu.main]] +# name = "归档" +# url = "/archives" +# weight = 3 + +# [[menu.main]] +# name = "书单" +# url = "/readings" +# weight = 3 -[[menu.main]] - name = "友人" - url = "/links/" - weight = 3 - -[[menu.main]] - name = "归档" - url = "/archives" - weight = 3 - -[[menu.main]] - name = "书单" - url = "/readings" - weight = 3 - -[[menu.main]] - name = "关于" - url = "/about" - weight = 6 +# [[menu.main]] +# name = "关于" +# url = "/about" +# weight = 6 [params] upvote = true diff --git a/i18n/en.toml b/i18n/en.toml new file mode 100644 index 0000000..ffe60fd --- /dev/null +++ b/i18n/en.toml @@ -0,0 +1,10 @@ +lang = "en" + +title = "GlowIsle" + +[nav] +categories = "categories" +readings = "readings" +links = "links" +archives = "archives" +about = "about" \ No newline at end of file diff --git a/i18n/zh.toml b/i18n/zh.toml new file mode 100644 index 0000000..dc90ec6 --- /dev/null +++ b/i18n/zh.toml @@ -0,0 +1,10 @@ +lang = "zh-CN" + +title = "映屿" + +[nav] +categories = "分类" +readings = "书单" +links = "友人" +archives = "归档" +about = "关于" \ No newline at end of file -- cgit v1.2.3 From d1a15d268ed50ad16e7417a6042b4355873fa46a Mon Sep 17 00:00:00 2001 From: verdant Date: Sat, 28 Feb 2026 21:35:31 +0800 Subject: chore: remove comments system (discus) --- layouts/_default/single.html | 421 +++++++++++++++++++++---------------------- 1 file changed, 204 insertions(+), 217 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 6b3f0a4..3e617ea 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -14,81 +14,69 @@ {{ partial "post_meta.html" . }} -{{ $upvoteEnabled := default .Site.Params.upvote .Params.upvote }} {{ if $upvoteEnabled }} +{{ $upvoteEnabled := default .Site.Params.upvote .Params.upvote }} +{{ if $upvoteEnabled }}
- - - + + +
- {{ end }} + + {{ $tocEnabled := default .Site.Params.toc .Params.toc }} {{ if $tocEnabled }}
{{ partial "toc.html" . }}
{{ end }} -{{ if .Params.comments | default true }} -
-
- -

评论 与 Webmentions

-
-
- -
-
- - -

- 若想回复本文,请在你的博客或社媒发布含有本文链接的帖子,然后在下方表单提交链接。 -

-
-
-
- - -
- - - -
-
-
-

- 也可以发送邮件评论。 -

- 关于 Webmention 的更多信息 - 以及 - 为什么要这么做? -
- - - - {{ end }} -
-
-
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ if not .Params.comments }} {{ with .Params.reason }} -- cgit v1.2.3 From 185280709f8f767d40f9601d389d28e83eb3a32e Mon Sep 17 00:00:00 2001 From: verdant Date: Sat, 28 Feb 2026 21:35:46 +0800 Subject: refactor: archives page - group by year and use
to hide posts by default --- layouts/archives/single.html | 118 ++++++++++++------------------------------- 1 file changed, 32 insertions(+), 86 deletions(-) diff --git a/layouts/archives/single.html b/layouts/archives/single.html index 698fc46..efafdca 100644 --- a/layouts/archives/single.html +++ b/layouts/archives/single.html @@ -1,96 +1,42 @@ {{ define "main" }}
{{- partial "header.html" . -}}
- {{ if .Site.Params.postSearch }} - - - {{ end }} {{ $allPosts := where .Site.RegularPages "Type" "eq" "posts" }} + {{ $allPosts := where .Site.RegularPages "Type" "eq" "posts" }} {{ $excludePosts := where $allPosts "Params.categories" "intersect" (slice "1") }} + {{ $postPages := $allPosts | complement $excludePosts }} - {{ $postPages := $allPosts | complement $excludePosts }} {{ if - .Site.Params.showPostCount }} -

共有 {{ len $postPages }} 篇文章

+ {{ if .Site.Params.showPostCount }} +

共 {{ len $postPages }} 篇文章

{{ end }} -
    - {{ if gt (len $postPages) 0 }} {{ $pagesToShow := $postPages.ByDate.Reverse - }} {{ $currentYear := 0 }} {{ range $pagesToShow }} {{ if .Date }} {{ $year - := .Date.Year }} {{ if and (.Site.Params.groupByYear) (ne $year - $currentYear) }} -

    {{ $year }}

    - {{ $currentYear = $year }} {{ end }} {{ end }} - -
  • - - - - - - {{ .Title }} -
  • - {{ end }} {{ else }} -
  • 暂无文章
  • +
    + {{ if gt (len $postPages) 0 }} + {{ range $postPages.GroupByDate "2006" }} +
    + +

    {{ .Key }} 年 ({{ len .Pages }})

    +
    + +
      + {{ range .Pages }} +
    • + + + + + + {{ .Title }} +
    • + {{ end }} +
    +
    + {{ end }} + {{ else }} +

    暂无文章

    {{ end }} -
+

-{{ end }} +{{ end }} \ No newline at end of file -- cgit v1.2.3 From 83d9504843b665dc40865cc2d226254bcb43443f Mon Sep 17 00:00:00 2001 From: verdant Date: Sat, 28 Feb 2026 21:37:49 +0800 Subject: chore: modify the path of project - ~/blog -> ~/glowisle --- publish.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/publish.sh b/publish.sh index aac78cf..3c12d5f 100644 --- a/publish.sh +++ b/publish.sh @@ -4,9 +4,9 @@ rm .hugo_build.lock # 执行 Hugo 构建和部署 commit_date=$(date +"%Y-%m-%d %H:%M:%S") -cd ~/blog/ +cd ~/glowisle/ hugo --cleanDestinationDir --gc --minify -cd ~/blog/public || exit 1 +cd ~/glowisle/public || exit 1 git add . git commit -m "auto update: $commit_date" git push origin main -- cgit v1.2.3 From 0a8d043d562768aac376bf5e938df3fc09b771f6 Mon Sep 17 00:00:00 2001 From: verdant Date: Sat, 28 Feb 2026 21:38:24 +0800 Subject: chore: remove 2 binary files --- static/fonts/SourceSerifPro-Regular.otf | Bin 217280 -> 0 bytes static/glowisle | Bin 79368 -> 0 bytes 2 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 static/fonts/SourceSerifPro-Regular.otf delete mode 100644 static/glowisle diff --git a/static/fonts/SourceSerifPro-Regular.otf b/static/fonts/SourceSerifPro-Regular.otf deleted file mode 100644 index dde2fd4..0000000 Binary files a/static/fonts/SourceSerifPro-Regular.otf and /dev/null differ diff --git a/static/glowisle b/static/glowisle deleted file mode 100644 index 93e9027..0000000 Binary files a/static/glowisle and /dev/null differ -- cgit v1.2.3 From 67ecec8cda74f1c63adccabb1b02cce66cd875c7 Mon Sep 17 00:00:00 2001 From: verdant Date: Sat, 28 Feb 2026 21:38:53 +0800 Subject: feat: add markdown callout --- layouts/_markup/render-blockquote.html | 107 +++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 layouts/_markup/render-blockquote.html diff --git a/layouts/_markup/render-blockquote.html b/layouts/_markup/render-blockquote.html new file mode 100644 index 0000000..c11de7e --- /dev/null +++ b/layouts/_markup/render-blockquote.html @@ -0,0 +1,107 @@ + + + + + +{{ $emojis := dict + "caution" "🚨" + "important" "☝️" + "note" "ℹ️" + "tip" "💡" + "warning" "⚠️" + "announcement" "📣" +}} + +{{ if eq .Type "alert" }} +
+
+ {{ with .AlertTitle }} + {{.}} + {{ else }} + {{ index $emojis .AlertType }} + {{ end }} +
+
+ {{ .Text }} +
+
+{{ else }} +
+ {{ .Text }} +
+{{ end }} -- cgit v1.2.3 From 96b88e99201b4aabd3eabf0453ab75a5f34d17df Mon Sep 17 00:00:00 2001 From: verdant Date: Sat, 28 Feb 2026 21:39:50 +0800 Subject: style: tweak some CSS style --- layouts/partials/style.html | 1581 ++++++++++++++++++++----------------------- 1 file changed, 734 insertions(+), 847 deletions(-) diff --git a/layouts/partials/style.html b/layouts/partials/style.html index 24ed22c..a1b8176 100644 --- a/layouts/partials/style.html +++ b/layouts/partials/style.html @@ -1,850 +1,737 @@ -- cgit v1.2.3