From ce507230522db7c7560a783821a68ce2184927e1 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Thu, 29 Jan 2026 08:07:15 +0100 Subject: Improved layout quircks --- README.md | 1 - assets/css/main.css | 10 +++++++++- layouts/partials/single/default.html | 4 ++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3d3ff63..5bd4c2a 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,6 @@ - [ ] Move to drafts - [ ] SEO - [ ] Page speed insights -- [ ] Remove: postcss, tailwind, theme - [ ] Table of content: `tableOfContents: true` - [ ] Multi parts series - [ ] Alternative to heavy mathjax diff --git a/assets/css/main.css b/assets/css/main.css index ef81ba5..6e4e55b 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -110,6 +110,7 @@ code { font-size: 0.875rem; border: 1px solid var(--color-border); padding: 0.25rem 0.5rem; + font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace; } pre { @@ -286,10 +287,17 @@ button { /* Title variants */ .title-large { - font-size: 2.25rem; + font-size: 1.75rem; line-height: 1.4; font-weight: 700; color: var(--color-heading); + text-wrap: balance; +} + +@media (min-width: 640px) { + .title-large { + font-size: 2.25rem; + } } .title-small { diff --git a/layouts/partials/single/default.html b/layouts/partials/single/default.html index 2d2ad63..25cda09 100644 --- a/layouts/partials/single/default.html +++ b/layouts/partials/single/default.html @@ -6,12 +6,12 @@ {{ partial "single/components/metatag/categories" . }} + {{ partial "single/table-of-contents" . }}
- {{/* {{.TableOfContents}} */}} {{ .Content | emojify }}
{{ partial "single/components/comments/comments" . }} - \ No newline at end of file + -- cgit v1.3