diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-01-29 08:07:15 +0100 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-01-29 08:07:15 +0100 |
| commit | ce507230522db7c7560a783821a68ce2184927e1 (patch) | |
| tree | c7fa0d813f44c95995846744ada66d0a0cee7ab3 | |
| parent | 0b9c1b298361b0f01efd981b5ba38d19e125c4d9 (diff) | |
Improved layout quircks
| -rw-r--r-- | README.md | 1 | ||||
| -rw-r--r-- | assets/css/main.css | 10 | ||||
| -rw-r--r-- | layouts/partials/single/default.html | 4 |
3 files changed, 11 insertions, 4 deletions
@@ -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" . }} </div> </header> + {{ partial "single/table-of-contents" . }} <section class="content text-lg text-gray-800"> - {{/* {{.TableOfContents}} */}} {{ .Content | emojify }} </section> {{ partial "single/components/comments/comments" . }} <footer> {{ partial "single/components/metatag/tags" . }} </footer> -</article>
\ No newline at end of file +</article> |
