diff --git a/README.md b/README.md index 46b271b..9805641 100644 --- a/README.md +++ b/README.md @@ -59,12 +59,12 @@ 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` -- [ ] Better support for printing version +- [x] Better support for printing version - [ ] Add support for more comment engines - [ ] Add support for umami statics - [ ] Improve documentation 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