diff --git a/config/_default/hugo.toml b/config/_default/hugo.toml index 051b114611f..edb8389724f 100644 --- a/config/_default/hugo.toml +++ b/config/_default/hugo.toml @@ -38,7 +38,7 @@ enableEmoji = true [outputs] home = ["HTML", "RSS", "JSON", "JsonFeed"] - page = ["HTML", "MarkDown"] + page = ["HTML", "RSS"] section = ["HTML", "RSS"] taxonomy = ["HTML", "RSS"] term = ["HTML", "RSS"] diff --git a/example/about/index.en.md b/content/about/_index.en.md similarity index 100% rename from example/about/index.en.md rename to content/about/_index.en.md diff --git a/example/about/index.md b/content/about/_index.md similarity index 100% rename from example/about/index.md rename to content/about/_index.md diff --git a/content/album/index.en.md b/content/album/_index.en.md similarity index 100% rename from content/album/index.en.md rename to content/album/_index.en.md diff --git a/content/album/index.md b/content/album/_index.md similarity index 100% rename from content/album/index.md rename to content/album/_index.md diff --git a/content/copyright/index.en.md b/content/copyright/_index.en.md similarity index 100% rename from content/copyright/index.en.md rename to content/copyright/_index.en.md diff --git a/content/copyright/index.md b/content/copyright/_index.md similarity index 100% rename from content/copyright/index.md rename to content/copyright/_index.md diff --git a/content/go/_index.en.md b/content/go/_index.en.md new file mode 100644 index 00000000000..912123f8feb --- /dev/null +++ b/content/go/_index.en.md @@ -0,0 +1,10 @@ +--- +title: "RedirectEN" +layout: "go" +type: "sample" +toc: false +aliases: + - /target + - /redirect + - /goto +--- diff --git a/content/go.md b/content/go/_index.md similarity index 100% rename from content/go.md rename to content/go/_index.md diff --git a/content/goods/index.en.md b/content/goods/_index.en.md similarity index 100% rename from content/goods/index.en.md rename to content/goods/_index.en.md diff --git a/content/goods/index.md b/content/goods/_index.md similarity index 100% rename from content/goods/index.md rename to content/goods/_index.md diff --git a/content/links/index.en.md b/content/links/_index.en.md similarity index 100% rename from content/links/index.en.md rename to content/links/_index.en.md diff --git a/content/links/index.md b/content/links/_index.md similarity index 100% rename from content/links/index.md rename to content/links/_index.md diff --git a/content/mastodon/index.en.md b/content/mastodon/_index.en.md similarity index 100% rename from content/mastodon/index.en.md rename to content/mastodon/_index.en.md diff --git a/content/mastodon/index.md b/content/mastodon/_index.md similarity index 100% rename from content/mastodon/index.md rename to content/mastodon/_index.md diff --git a/content/media/index.en.md b/content/media/_index.en.md similarity index 100% rename from content/media/index.en.md rename to content/media/_index.en.md diff --git a/content/media/index.md b/content/media/_index.md similarity index 100% rename from content/media/index.md rename to content/media/_index.md diff --git a/content/milestone/index.en.md b/content/milestone/_index.en.md similarity index 100% rename from content/milestone/index.en.md rename to content/milestone/_index.en.md diff --git a/content/milestone/index.md b/content/milestone/_index.md similarity index 100% rename from content/milestone/index.md rename to content/milestone/_index.md diff --git a/content/penta/index.en.md b/content/penta/_index.en.md similarity index 100% rename from content/penta/index.en.md rename to content/penta/_index.en.md diff --git a/content/penta/index.md b/content/penta/_index.md similarity index 100% rename from content/penta/index.md rename to content/penta/_index.md diff --git a/content/privacy-policy/index.en.md b/content/privacy-policy/_index.en.md similarity index 100% rename from content/privacy-policy/index.en.md rename to content/privacy-policy/_index.en.md diff --git a/content/privacy-policy/index.md b/content/privacy-policy/_index.md similarity index 100% rename from content/privacy-policy/index.md rename to content/privacy-policy/_index.md diff --git a/content/stats/index.en.md b/content/stats/_index.en.md similarity index 100% rename from content/stats/index.en.md rename to content/stats/_index.en.md diff --git a/content/stats/index.md b/content/stats/_index.md similarity index 100% rename from content/stats/index.md rename to content/stats/_index.md diff --git a/example/about/_index.en.md b/example/about/_index.en.md new file mode 100644 index 00000000000..e35a62a729d --- /dev/null +++ b/example/about/_index.en.md @@ -0,0 +1,195 @@ +--- +title: "About" +date: "2006-04-14 00:00:00" +type: "sample" +showDate: false +showAuthor: false +showHero: true +heroStyle: background +layoutBackgroundBlur: true +layoutBackgroundHeaderSpace: true +showEdit: false +showPagination: false +showReadingTime: false +showRelatedContent: false +showWordCount: false +showComments: false +sharingLinks: false +showZenMode: false +--- + +
+
+ Chance favors the prepared mind. - Louis Pasteur +
+
+ +eallion + +I'm Charles Chin. `eallion` has been my nickname for over 20 years. +AKA: 大大的小蜗牛. +I live in the UTC+08:00 timezone and work from home. +I work in E-commerce, not IT. + +My favorite motto is: + +> [Chance favors the prepared mind.](https://en.wikipedia.org/wiki/Louis_Pasteur#Career) - _Louis Pasteur_ + +### TL;DR + +* He / Him +* COO +* WFH +* FOSS +* Geeker +* Blogger +* E-Commerce +* Non-IT Indiv. + +### Description + +* This project powered by [Hugo](https://gohugo.io/) +* Hosted by Alibabacloud [OSS](https://www.aliyun.com/product/oss) through GitHub Actions and [Cloudflare Pages](https://pages.cloudflare.com/) +* Themed by [Blowfish](https://github.com/nunocoracao/blowfish) +* The Toot page relies on the Mastodon instance at [https://e5n.cc](https://e5n.cc) +* The Watched page relies on [https://neodb.social](https://neodb.social/users/eallion@e5n.cc/) +* The comment system relies on Giscus at [https://giscus.app](https://giscus.app/) + +### Copyright + +* [https://www.eallion.com/en/copyright/](https://www.eallion.com/en/copyright/) + +### Privacy Policy + +* [https://www.eallion.com/en/privacy-policy/](https://www.eallion.com/en/privacy-policy/) + +### GitHub Open Source + +* [https://github.com/eallion/eallion.com](https://github.com/eallion/eallion.com) + +### Sitemap + +* About me: [https://about.eallion.com](https://about.eallion.com/) +* My Favorites: [https://s.eallion.com](https://s.eallion.com/) +* Mastodon: [https://www.eallion.com/toot/](https://www.eallion.com/toot/) +* Album: [https://www.eallion.com/album/](https://www.eallion.com/album/) +* Watched: [https://www.eallion.com/movie/](https://www.eallion.com/movie/) +* Goods: [https://www.eallion.com/goods/](https://www.eallion.com/goods/) +* LOL Penta: [https://www.eallion.com/penta/](https://www.eallion.com/penta/) + +### Contact + +
+ + + + +
+ +### Social network + +
+ + + + + + + + + + + + + + + +
+ +### Status + +
+ + + + + Uptime Robot ratio (30 days) + + + + + + + + + + + + + + + Total time coded since Mar 2 2024 + +
+ +### Thanks + +
+ + + + + + + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/example/about/_index.md b/example/about/_index.md new file mode 100644 index 00000000000..aa64c6f1dbf --- /dev/null +++ b/example/about/_index.md @@ -0,0 +1,203 @@ +--- +title: "关于" +date: "2006-04-14 00:00:00" +type: "sample" +showDate: false +showAuthor: false +showHero: true +heroStyle: background +layoutBackgroundBlur: true +layoutBackgroundHeaderSpace: true +showEdit: false +showPagination: false +showReadingTime: false +showRelatedContent: false +showWordCount: false +showComments: false +sharingLinks: false +showZenMode: false +--- + +
+
+ 机会总是垂青于有准备的人! - Louis Pasteur +
+
+ +eallion + +我是「蜗牛」,不过一般都使用「大大的小蜗牛」作为网名。 +本名没有什么内涵,略去不表。 +早年常居鲁迅故里,钟情于江南水乡。 +工作于电商之都。后为生计南下深港。 + +最喜欢的一句话,得于叔叔手札——「机会总是垂青于有准备的人!」 + +> [Chance favors the prepared mind.](https://en.wikipedia.org/wiki/Louis_Pasteur#Career) - _Louis Pasteur_ + +浅显易懂,并无玄机。后得知出处,是为座右铭。 + +### TL;DR + +* 双子,B 型血,断掌,属虎。 +* 已婚,有子。 +* 不高不矮,~~不胖不瘦~~。 +* 先天性乐观。 +* 随意但不随便。 +* 小众而不小资。 +* 亦正亦邪。 +* 不是个好人但从来不做坏事。 + +### 声明 + +本人只活跃在 [`GitHub`](https://github.com/eallion)、[`Mastodon`](https://e5n.cc/@eallion)、[`Steam`](https://steamcommunity.com/id/eallion)上,其他平台同名账号绝非本人所有。 + +本站拥有唯一域名 `eallion.com` 、二级域名 `www.eallion.com`。除此之外的相关、相似域名,除非由本人实名认证,或者备案在本人名下,否则皆为他人所有,或者被他人盗用信息,与本人无关。 + +### 说明 + +* 本站使用 [Hugo](https://gohugo.io/) 构建 +* 通过 GitHub Actions 部署至阿里云 [OSS](https://www.aliyun.com/product/oss) 和 [Cloudflare Pages](https://pages.cloudflare.com/) +* 主题使用的是 [Blowfish](https://github.com/nunocoracao/blowfish) +* 嘀咕页面依赖 Mastodon 实例:[https://e5n.cc](https://e5n.cc) +* 观影页面依赖 NeoDB:[https://neodb.social](https://neodb.social/users/eallion@e5n.cc/) +* 评论系统处于半关闭状态,依赖 Giscus:[https://giscus.app](https://giscus.app/) + +### 版权信息 + +* [https://www.eallion.com/copyright/](https://www.eallion.com/copyright/) + +### 隐私政策 + +* [https://www.eallion.com/privacy-policy/](https://www.eallion.com/privacy-policy/) + +### 本站源码 + +* [https://github.com/eallion/eallion.com](https://github.com/eallion/eallion.com) + +### Sitemap + +* About me:[https://about.eallion.com](https://about.eallion.com/) +* 个人网址导航:[https://s.eallion.com](https://s.eallion.com/) +* 嘀咕:[https://www.eallion.com/toot/](https://www.eallion.com/toot/) +* 相册:[https://www.eallion.com/album/](https://www.eallion.com/album/) +* LOL Penta:[https://www.eallion.com/penta/](https://www.eallion.com/penta/) +* 观影记录:[https://www.eallion.com/movie/](https://www.eallion.com/movie/) +* 好物分享:[https://www.eallion.com/goods/](https://www.eallion.com/goods/) + +### 联系方式 + +
+ + + + +
+ +### 社交 + +
+ + + + + + + + + + + + + + + +
+ +### 状态 + +
+ + + + + Uptime Robot ratio (30 days) + + + + + + + + + + + + + + + Total time coded since Mar 2 2024 + +
+ +### 鸣谢 + +
+ + + + + + + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/example/album/index.en.md b/example/album/_index.en.md similarity index 100% rename from example/album/index.en.md rename to example/album/_index.en.md diff --git a/example/album/index.md b/example/album/_index.md similarity index 100% rename from example/album/index.md rename to example/album/_index.md diff --git a/example/copyright/index.en.md b/example/copyright/_index.en.md similarity index 100% rename from example/copyright/index.en.md rename to example/copyright/_index.en.md diff --git a/example/copyright/index.md b/example/copyright/_index.md similarity index 100% rename from example/copyright/index.md rename to example/copyright/_index.md diff --git a/example/go/_index.en.md b/example/go/_index.en.md new file mode 100644 index 00000000000..912123f8feb --- /dev/null +++ b/example/go/_index.en.md @@ -0,0 +1,10 @@ +--- +title: "RedirectEN" +layout: "go" +type: "sample" +toc: false +aliases: + - /target + - /redirect + - /goto +--- diff --git a/example/go.md b/example/go/_index.md similarity index 100% rename from example/go.md rename to example/go/_index.md diff --git a/example/goods/index.en.md b/example/goods/_index.en.md similarity index 100% rename from example/goods/index.en.md rename to example/goods/_index.en.md diff --git a/example/goods/index.md b/example/goods/_index.md similarity index 100% rename from example/goods/index.md rename to example/goods/_index.md diff --git a/example/links/index.en.md b/example/links/_index.en.md similarity index 100% rename from example/links/index.en.md rename to example/links/_index.en.md diff --git a/example/links/index.md b/example/links/_index.md similarity index 100% rename from example/links/index.md rename to example/links/_index.md diff --git a/example/mastodon/index.en.md b/example/mastodon/_index.en.md similarity index 100% rename from example/mastodon/index.en.md rename to example/mastodon/_index.en.md diff --git a/example/mastodon/index.md b/example/mastodon/_index.md similarity index 100% rename from example/mastodon/index.md rename to example/mastodon/_index.md diff --git a/example/media/index.en.md b/example/media/_index.en.md similarity index 100% rename from example/media/index.en.md rename to example/media/_index.en.md diff --git a/example/media/index.md b/example/media/_index.md similarity index 100% rename from example/media/index.md rename to example/media/_index.md diff --git a/example/milestone/index.en.md b/example/milestone/_index.en.md similarity index 100% rename from example/milestone/index.en.md rename to example/milestone/_index.en.md diff --git a/example/milestone/index.md b/example/milestone/_index.md similarity index 100% rename from example/milestone/index.md rename to example/milestone/_index.md diff --git a/example/penta/index.en.md b/example/penta/_index.en.md similarity index 100% rename from example/penta/index.en.md rename to example/penta/_index.en.md diff --git a/example/penta/index.md b/example/penta/_index.md similarity index 100% rename from example/penta/index.md rename to example/penta/_index.md diff --git a/example/privacy-policy/index.en.md b/example/privacy-policy/_index.en.md similarity index 100% rename from example/privacy-policy/index.en.md rename to example/privacy-policy/_index.en.md diff --git a/example/privacy-policy/index.md b/example/privacy-policy/_index.md similarity index 100% rename from example/privacy-policy/index.md rename to example/privacy-policy/_index.md diff --git a/example/stats/index.en.md b/example/stats/_index.en.md similarity index 100% rename from example/stats/index.en.md rename to example/stats/_index.en.md diff --git a/example/stats/index.md b/example/stats/_index.md similarity index 100% rename from example/stats/index.md rename to example/stats/_index.md diff --git a/example/steam/index.en.md b/example/steam/_index.en.md similarity index 100% rename from example/steam/index.en.md rename to example/steam/_index.en.md diff --git a/example/steam/index.md b/example/steam/_index.md similarity index 100% rename from example/steam/index.md rename to example/steam/_index.md diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html index 54d205e6102..dddadec83f5 100644 --- a/layouts/_default/_markup/render-link.html +++ b/layouts/_default/_markup/render-link.html @@ -5,5 +5,5 @@ {{- else if or (hasSuffix $host "www.eallion.com") (hasPrefix .Destination "#") -}} {{ .Text | safeHTML }} {{- else -}} - {{ .Text | safeHTML }} + {{ .Text | safeHTML }} {{- end -}} diff --git a/package.json b/package.json index d6b1c53c765..8f9d5d23ea2 100644 --- a/package.json +++ b/package.json @@ -6,12 +6,12 @@ "scripts": { "dev": "set NODE_ENV=development&&node ./themes/blowfish/node_modules/tailwindcss/lib/cli.js -c ./themes/blowfish/tailwind.config.js -i ./themes/blowfish/assets/css/main.css -o ./assets/css/compiled/main.css --jit -w", "build": "set NODE_ENV=production&&node ./themes/blowfish/node_modules/tailwindcss/lib/cli.js -c ./themes/blowfish/tailwind.config.js -i ./themes/blowfish/assets/css/main.css -o ./assets/css/compiled/main.css --jit", - "hugo": "hugo --cleanDestinationDir --forceSyncStatic --gc --ignoreCache --minify --enableGitInfo --templateMetrics --templateMetricsHints", + "hugo": "hugo --cleanDestinationDir --forceSyncStatic --gc --ignoreCache --minify --enableGitInfo --disableFastRender --printUnusedTemplates --templateMetrics --templateMetricsHints", "new": "node scripts/new_post.js", "prepare": "husky", - "preview": "git submodule update --remote --merge && start http://192.168.0.5:1313 && hugo server -w -D -p 1313 --bind 0.0.0.0 --contentDir content --minify -e production --enableGitInfo --disableKinds RSS --printUnusedTemplates --templateMetrics --templateMetricsHints", + "preview": "git submodule update --remote --merge && start http://192.168.0.5:1313 && hugo server -w -D -p 1313 --bind 0.0.0.0 --contentDir content --minify -e production --enableGitInfo --disableKinds RSS", "recursive": "git submodule update --init --recursive", - "server": "git submodule update --remote --merge && start http://192.168.0.5:1313 && hugo server -w -D -p 1313 --bind 0.0.0.0 --contentDir example --minify -e production --enableGitInfo --disableKinds RSS --printUnusedTemplates --templateMetrics --templateMetricsHints", + "server": "git submodule update --remote --merge && start http://192.168.0.5:1313 && hugo server -w -D -p 1313 --bind 0.0.0.0 --contentDir example --minify -e production --enableGitInfo --disableKinds RSS --disableFastRender", "shiki": "npx rehype-cli public -o", "theme": "git submodule update --remote --merge", "vercel": "node scripts/vercel_env_hugo_version.js && hugo --cleanDestinationDir --forceSyncStatic --gc --ignoreCache --minify --enableGitInfo && next build",