From 85fceee13808bb5b5c52c74372cb26a5aed58e3a Mon Sep 17 00:00:00 2001 From: grassblock Date: Fri, 23 May 2025 22:11:21 +0800 Subject: [PATCH 1/3] chore(docs): update roadmap --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 46b271b..99a6bc8 100644 --- a/README.md +++ b/README.md @@ -59,8 +59,8 @@ All commands are run from the root of the project, from a terminal: - [x] Initial project setup - [x] Basic theme implementation - [x] Better full-text search without `Fuse.js` -- [ ] A mode to make the site 0 javascript -- [ ] Multiple authors via YAML +- [x] A mode to make the site 0 javascript +- [x] Multiple authors via YAML - [ ] i18n support - [ ] Integrate with Fediverse w/ activityPub - [ ] Plain text version when visiting the site via `curl` From ea3d8accc33a79cf4a82fc8f78354524a7c7356d Mon Sep 17 00:00:00 2001 From: grassblock Date: Fri, 23 May 2025 22:35:14 +0800 Subject: [PATCH 2/3] feat: better style when printing the article --- src/pages/post/[...slug].astro | 2 +- src/styles/global.css | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/pages/post/[...slug].astro b/src/pages/post/[...slug].astro index e7f5f56..5637409 100644 --- a/src/pages/post/[...slug].astro +++ b/src/pages/post/[...slug].astro @@ -52,7 +52,7 @@ const cover = customFeaturedImage || matchedImage_src?.src || `/post/${slug}/fea -
+

← Back to posts diff --git a/src/styles/global.css b/src/styles/global.css index d7aca76..295c9ba 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -290,4 +290,12 @@ div.content { .content-box { padding: 1rem; } +} + +/* Printing */ +@media print { + /* Hide elements not needed for print */ + nav.nav,.search-container,footer,div.extra-post { + display: none; + } } \ No newline at end of file From 5ef4dda34ec102e6f911888072bd8e1191af59ee Mon Sep 17 00:00:00 2001 From: grassblock Date: Fri, 23 May 2025 22:36:17 +0800 Subject: [PATCH 3/3] chore(docs): update roadmap --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 99a6bc8..9805641 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ All commands are run from the root of the project, from a terminal: - [ ] i18n support - [ ] Integrate with Fediverse w/ activityPub - [ ] Plain text version when visiting the site via `curl` -- [ ] Better support for printing version +- [x] Better support for printing version - [ ] Add support for more comment engines - [ ] Add support for umami statics - [ ] Improve documentation