summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assets/css/content.scss3
-rw-r--r--assets/css/main.scss (renamed from assets/css/global.scss)4
-rw-r--r--content/fictions/明天太阳不会升起.md19
-rw-r--r--content/posts/weekly/38.md1
-rw-r--r--content/posts/永远不要提醒自杀者关心家人.md1
-rw-r--r--content/posts/群体中不存在自律.md3
-rw-r--r--content/posts/语言表意效率差异导致的思维差异.md1
-rw-r--r--layouts/_partials/footer.html2
-rw-r--r--layouts/_partials/head/css.html8
-rw-r--r--layouts/_partials/header.html2
-rw-r--r--layouts/_partials/home/latest-cards.html7
-rw-r--r--layouts/_partials/home/latest-posts.html2
-rw-r--r--layouts/_partials/items/card.html3
-rw-r--r--layouts/_partials/items/post.html12
-rw-r--r--layouts/_partials/scripts/fancybox-js.html6
-rw-r--r--layouts/featured.html2
-rw-r--r--layouts/fictions/section.html4
-rw-r--r--layouts/home.html2
-rw-r--r--layouts/library/section.html4
-rw-r--r--layouts/library/yearlist.html4
-rw-r--r--layouts/page.html2
-rw-r--r--layouts/posts/page.html2
-rw-r--r--layouts/section.html4
-rw-r--r--layouts/taxonomy.html2
-rw-r--r--layouts/uncategorized.html2
-rw-r--r--pagefind.yml8
-rw-r--r--uno.config.js1
27 files changed, 65 insertions, 46 deletions
diff --git a/assets/css/content.scss b/assets/css/content.scss
deleted file mode 100644
index c172cc36..00000000
--- a/assets/css/content.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-@import "components/littlefoot";
-@import "components/fancybox";
-@import "components/toc";
diff --git a/assets/css/global.scss b/assets/css/main.scss
index 608e7c5c..045a4655 100644
--- a/assets/css/global.scss
+++ b/assets/css/main.scss
@@ -3,3 +3,7 @@
@import "utils/utility";
@import "utils/animation";
@import "markdown";
+
+@import "components/littlefoot";
+@import "components/fancybox";
+@import "components/toc";
diff --git a/content/fictions/明天太阳不会升起.md b/content/fictions/明天太阳不会升起.md
new file mode 100644
index 00000000..9cec8eb4
--- /dev/null
+++ b/content/fictions/明天太阳不会升起.md
@@ -0,0 +1,19 @@
+---
+title: 明天太阳不会升起
+date: 2025-07-19
+draft: true
+---
+
+每个人的社交媒体都充满了这样一条新闻:明天太阳不会升起。到了接近凌晨的时候,人们才在官方的通告中确认这是事实。<!--more-->
+
+明天太阳不会升起,对全人类都一样,无论在地球的哪一面,所有人都要活在黑暗当中。没人知道发生了什么,毕竟太阳不能开口说话。当太阳在某一天突然决定不再为地球提供光照,也没有人能指责谁。今天就是那一天。
+
+从现在开始只有满月,没人知道月亮的光是从哪来的,因为月亮也不会说话。狼群没日没夜地嚎叫,因为世界的确没了日夜之分。人们开始燃烧埋在大地下的所有矿物,来换取太阳的替代品。有人想象地球逐渐变得空洞,就像饥荒中的人逐渐流失了脂肪和肌肉,但好像也没有办法。
+
+苦难驱使人们产生信仰,又因信仰聚在一起。人们哀悼索尔和赫利俄斯,还有人祭拜羲和,希望她能再生十个太阳出来。他们下跪、吟唱、起舞,把同样绝望的人扔进锅里。他们抓来总统、哲学家和企业家,把他们扔进炉子里烧死,希望他们的高尚灵魂能从烟囱里飞到天上去,成为新的太阳。但他们烧得还不够多,一次也没成。
+
+有人向水星发送电波,期待那里有人,可水星已经不在那了。因为明天太阳不会升起,行星就脱离了轨道,天体到处乱飞。占星师和天文学家都同时被太阳打倒,责备他像一个不负责任的父亲一样离开。所有人都发出最接近动物的绝望的嘶吼。
+
+……
+
+没人知道他们还需要这样撑多久,因为明天还没来。
diff --git a/content/posts/weekly/38.md b/content/posts/weekly/38.md
index bd7d8bfb..4aa32374 100644
--- a/content/posts/weekly/38.md
+++ b/content/posts/weekly/38.md
@@ -113,6 +113,7 @@ CapCut(剪映)的开源替代品,目前还在 waitlist 阶段,除了 Git
## ∬ · 切片
+- 周六骑车上班的时候,有点想死在路上。
- 我在中文互联网上能在任何话题下看到「在 AI 时代……」这种表述,在英文互联网上更是如此,任何话题、任何文章下,几乎都有人写「In the age of AI, ...」。我一直不认为大语言模型发展的这几年足够被称作一个「时代」,这个用词并不准确,**人人都在用着炒作者的语言**。此外,这些凡事都要扯到 AI 上的人,只是在展示他们的情绪和对这一技术的理解之匮乏。
- 头发留长了,不太想烫头也没时间打理,于是扎了个小辫,意外地还不错。
- 想养一只美西螈,但想到一个月之后可能又要搬家(一方面想找人合租降低花销,另一方面确实对现在的环境不太满意),不想让另一个生命和我一起折腾,就先放了放。最近买书也克制了很多,断断续续地在多抓鱼上卖了一些,因为搬家时最重的就是我的书了。一想到搬家的压力,就不免想要一个稳定的住所,可能这也是「家」的意义之一吧。
diff --git a/content/posts/永远不要提醒自杀者关心家人.md b/content/posts/永远不要提醒自杀者关心家人.md
index 9219ba51..3e5ad8f7 100644
--- a/content/posts/永远不要提醒自杀者关心家人.md
+++ b/content/posts/永远不要提醒自杀者关心家人.md
@@ -5,6 +5,7 @@ tags:
- 存在主义
- 心理学
- 死亡
+description: 站在道德高地批评一个活在绝望中的人,算什么东西?
date: 2025-07-10T00:14:00
draft: false
toc: false
diff --git a/content/posts/群体中不存在自律.md b/content/posts/群体中不存在自律.md
index 8493bf18..0e2fe553 100644
--- a/content/posts/群体中不存在自律.md
+++ b/content/posts/群体中不存在自律.md
@@ -4,9 +4,10 @@ tags:
- 群体
- 习惯
- 内阻力
+description: 意志力是蠢人对世界的表演。
date: 2025-07-11T23:23:00
draft: false
-toc:
+toc:
related_cards:
- 课题分离
---
diff --git a/content/posts/语言表意效率差异导致的思维差异.md b/content/posts/语言表意效率差异导致的思维差异.md
index 548d8de0..57a52ad6 100644
--- a/content/posts/语言表意效率差异导致的思维差异.md
+++ b/content/posts/语言表意效率差异导致的思维差异.md
@@ -3,6 +3,7 @@ title: 语言表意效率差异导致的思维差异
tags:
- 语言
- English
+description: 汉语使用者非常喜欢挪用专有名词,而英语中言外之意的泛滥也导致了语言变得越来越抽象。
date: 2025-07-13T13:41:00
draft: false
toc: true
diff --git a/layouts/_partials/footer.html b/layouts/_partials/footer.html
index 776e12a9..baf79c06 100644
--- a/layouts/_partials/footer.html
+++ b/layouts/_partials/footer.html
@@ -1,4 +1,4 @@
-<footer class="my-8 mx-auto font-mono
+<footer class="pagefind-exclude my-8 mx-auto font-mono
md:w-[var(--page-width)] md:flex md:justify-between">
<!-- copyright -->
<section>
diff --git a/layouts/_partials/head/css.html b/layouts/_partials/head/css.html
index 423716ea..853b05fe 100644
--- a/layouts/_partials/head/css.html
+++ b/layouts/_partials/head/css.html
@@ -27,12 +27,6 @@
<style>{{ .Content | safeCSS }}</style>
{{ end }}
-{{ with resources.Get "css/global.scss" | css.Sass | minify }}
+{{ with resources.Get "css/main.scss" | css.Sass | minify }}
<style>{{ .Content | safeCSS }}</style>
{{ end }}
-
-{{- if or (in .Section "posts") (in .Section "cards") (in .Section "fictions") (in .Section "library") (eq .Type "single") }}
-{{ with resources.Get "css/content.scss" | css.Sass | minify }}
-<style>{{ .Content | safeCSS }}</style>
-{{ end }}
-{{- end }}
diff --git a/layouts/_partials/header.html b/layouts/_partials/header.html
index f379711c..a62b56bd 100644
--- a/layouts/_partials/header.html
+++ b/layouts/_partials/header.html
@@ -1,4 +1,4 @@
-<header id="site-header">
+<header class="pagefind-exclude">
<!-- Header Title -->
<div class="flex flex-col items-center gap-2">
{{ partial "components/logo" (dict "imageClass" "w-[10rem]") }}
diff --git a/layouts/_partials/home/latest-cards.html b/layouts/_partials/home/latest-cards.html
index 220a0d94..c4c7a69c 100644
--- a/layouts/_partials/home/latest-cards.html
+++ b/layouts/_partials/home/latest-cards.html
@@ -6,11 +6,14 @@
{{- $paginator := .Paginate $cards.Pages 4 }} <!-- 对该部分内容进行分页 -->
{{- range $paginator.Pages }}
<div class="flex-shrink-0 w-[50%]">
- {{ partial "items/card" (dict "context" . "summary" true) }}
+ {{ partial "items/card" (dict
+ "context" .
+ "summary" true
+ "summaryClass" "text-base!") }}
</div>
{{- end }}
</div>
- <div style="margin: 1rem 0">
+ <div class="py-4">
<a href="/cards" class="small-button"
data-umami-event="➕ Click more cards link">
{{ T "moreLinks.cards" }} →
diff --git a/layouts/_partials/home/latest-posts.html b/layouts/_partials/home/latest-posts.html
index 85b0e7ec..d98f9e1c 100644
--- a/layouts/_partials/home/latest-posts.html
+++ b/layouts/_partials/home/latest-posts.html
@@ -1,5 +1,5 @@
<!-- Latest Posts -->
-<section id="latest-posts">
+<section class="pagefind-exclude">
<div class="flex flex-col my-4">
{{ $firstPost := true }} <!-- 初始化标记 -->
{{ range first 8 (where site.RegularPages "Type" "in" site.Params.mainSections) }}
diff --git a/layouts/_partials/items/card.html b/layouts/_partials/items/card.html
index fb619fb5..01a3cfb8 100644
--- a/layouts/_partials/items/card.html
+++ b/layouts/_partials/items/card.html
@@ -1,5 +1,6 @@
{{ $ctx := .context }}
{{ $showSummary := .summary }}
+{{ $summaryClass := .summaryClass }}
<div class="relative p-6 bg-white dark:bg-neutral-800 rounded-lg shadow-md border border-gray-200 dark:border-gray-700"
style="view-transition-name: card-{{ $ctx.File.UniqueID }}">
<div class="card-header">
@@ -12,7 +13,7 @@
</h3>
<div class="text-base m-0">{{ partial "components/tags" $ctx }}</div>
</div>
- <div class="mt-2 leading-loose markdown-body">
+ <div class="{{ $summaryClass }} mt-2 leading-loose markdown-body">
{{ if $showSummary }}{{ $ctx.Summary }}{{ else }}{{ $ctx.Content }}{{ end }}
</div>
</div>
diff --git a/layouts/_partials/items/post.html b/layouts/_partials/items/post.html
index 1adf86af..2bf6a157 100644
--- a/layouts/_partials/items/post.html
+++ b/layouts/_partials/items/post.html
@@ -33,10 +33,14 @@
</div>
{{ end }}
</header>
- {{ if $showSummary }}
- <div class="markdown-body text-size-lg!"
- style="view-transition-name: post-content-{{ .File.UniqueID }}">
+ {{ if or $showSummary .ctx.Params.description }}
+ <div class="markdown-body text-size-lg!"
+ style="view-transition-name: post-content-{{ .File.UniqueID }}">
+ {{ if $showSummary }}
{{ .ctx.Summary }}
- </div>
+ {{ else if .ctx.Params.description }}
+ {{ .ctx.Params.description }}
+ {{ end }}
+ </div>
{{ end }}
</div>
diff --git a/layouts/_partials/scripts/fancybox-js.html b/layouts/_partials/scripts/fancybox-js.html
index c9543a01..4823f30c 100644
--- a/layouts/_partials/scripts/fancybox-js.html
+++ b/layouts/_partials/scripts/fancybox-js.html
@@ -1,4 +1,2 @@
-{{- if or (in .Section "posts") (in .Section "cards") (in .Section "library") (eq .Type "single") }}
- <script src="/js/fancybox.umd.js"></script>
- <script>Fancybox.bind("[data-fancybox]");</script>
-{{- end }}
+<script src="/js/fancybox.umd.js"></script>
+<script>Fancybox.bind("[data-fancybox]");</script>
diff --git a/layouts/featured.html b/layouts/featured.html
index d01e217c..e93ecf76 100644
--- a/layouts/featured.html
+++ b/layouts/featured.html
@@ -1,5 +1,5 @@
{{ define "main" }}
- <article class="index">
+ <article>
{{ partial "header" . }}
{{ partial "home/home-nav" . }}
diff --git a/layouts/fictions/section.html b/layouts/fictions/section.html
index d4b68581..e459ce1d 100644
--- a/layouts/fictions/section.html
+++ b/layouts/fictions/section.html
@@ -1,7 +1,7 @@
{{ define "main" }}
- <article class="fiction-list-page">
+ <article>
{{ partial "header.html" . }}
- <div id="fiction-section">
+ <div class="pagefind-exclude">
<div class="my-8 markdown-body">
{{ with .Content }}{{ . }}{{ end }}
</div>
diff --git a/layouts/home.html b/layouts/home.html
index 2753ab2f..19b9d21c 100644
--- a/layouts/home.html
+++ b/layouts/home.html
@@ -1,5 +1,5 @@
{{ define "main" }}
- <article class="index">
+ <article>
{{ partial "header" . }}
{{ partial "home/home-nav" . }}
{{ partial "home/latest-posts" . }}
diff --git a/layouts/library/section.html b/layouts/library/section.html
index 21107382..3910bcad 100644
--- a/layouts/library/section.html
+++ b/layouts/library/section.html
@@ -1,7 +1,7 @@
{{ define "main" }}
{{ partial "header.html" . }}
- <article id="library">
- <div id="library-content">
+ <article class="pagefind-exclude">
+ <div>
<h2>{{ now.Year }} 年读的书</h2>
<div class="grid grid-cols-4 md:grid-cols-6 items-center gap-4 my-4">
{{ range where .Site.RegularPages "Section" "library" }}
diff --git a/layouts/library/yearlist.html b/layouts/library/yearlist.html
index d80fe56e..ed62f014 100644
--- a/layouts/library/yearlist.html
+++ b/layouts/library/yearlist.html
@@ -1,7 +1,7 @@
{{ define "main" }}
{{ partial "header.html" . }}
- <article id="library">
- <div id="library-content">
+ <article class="pagefind-exclude">
+ <div>
<h2>{{ .Title }}</h2> <!-- 显示年份 -->
<div class="grid grid-cols-4 md:grid-cols-6 items-center gap-4 my-4">
{{ $year := .Title }}
diff --git a/layouts/page.html b/layouts/page.html
index b0da162b..e8e4221b 100644
--- a/layouts/page.html
+++ b/layouts/page.html
@@ -1,6 +1,6 @@
{{ define "main" }}
{{ partial "header.html" . }}
- <article class="page" id="article">
+ <article>
<div id="post-content" class="post-content markdown-body leading-loose"
style="view-transition-name: post-content-{{ .File.UniqueID }}">
{{ .Content }}
diff --git a/layouts/posts/page.html b/layouts/posts/page.html
index d5506f01..f965f0bb 100644
--- a/layouts/posts/page.html
+++ b/layouts/posts/page.html
@@ -1,5 +1,5 @@
{{ define "main" }}
- <article class="post" id="article">
+ <article>
<!-- Post Header -->
<header
style="view-transition-name: post-{{ .File.UniqueID }}"
diff --git a/layouts/section.html b/layouts/section.html
index 8d5f6c9b..47ece146 100644
--- a/layouts/section.html
+++ b/layouts/section.html
@@ -1,7 +1,7 @@
{{ define "main" }}
- <article class="posts">
+ <article>
{{ partial "header.html" . }}
- <div id="posts-archive" class="posts-list">
+ <div class="posts-list pagefind-exclude">
<!-- Post Archive List -->
{{ $remainingMonthsToOpen := 3 }}
{{ range (where site.RegularPages "Type" "eq" "posts").GroupByDate "2006" -}}
diff --git a/layouts/taxonomy.html b/layouts/taxonomy.html
index 514440e6..9682d36a 100644
--- a/layouts/taxonomy.html
+++ b/layouts/taxonomy.html
@@ -1,5 +1,5 @@
{{ define "main" }}
-<article class="taxonomy">
+<article>
{{ partial "header" . }}
{{ partial "home/home-nav" . }}
diff --git a/layouts/uncategorized.html b/layouts/uncategorized.html
index 0eed855c..2b67c387 100644
--- a/layouts/uncategorized.html
+++ b/layouts/uncategorized.html
@@ -1,5 +1,5 @@
{{ define "main" }}
- <article class="posts termlist-page">
+ <article>
{{ partial "header" . }}
{{ partial "home/home-nav" . }}
<h1 class="term-title">{{ .Title }}</h1>
diff --git a/pagefind.yml b/pagefind.yml
index e3c2c723..3419a66f 100644
--- a/pagefind.yml
+++ b/pagefind.yml
@@ -1,9 +1,3 @@
site: public
exclude_selectors:
- - "#footer"
- - "#site-header"
- - "#latest-posts"
- - "#posts-archive"
- - ".cards-section"
- - "#fiction-section"
- - "#library"
+ - '.pagefind-exclude'
diff --git a/uno.config.js b/uno.config.js
index 26bd5ac3..53f2ec13 100644
--- a/uno.config.js
+++ b/uno.config.js
@@ -31,6 +31,7 @@ export default defineConfig({
},
safelist: [
'text-sm', 'text-md', 'text-lg', 'text-xl', 'text-2xl', 'text-3xl', 'text-4xl', 'text-5xl',
+ 'text-base!',
...range(10, i => `opacity-${i * 10}`),
...rangeWithPrefixes(5, 'rotate', ['', '-']),