Commit graph

246 commits

Author SHA1 Message Date
Francesco
325c1a92f8 Updated readme 2025-04-17 22:20:27 +02:00
Francesco Tomaselli
9412ac5a43
Merge pull request #118 from kompoth/main 2025-04-13 15:18:22 +02:00
Vasily Negrebetskiy
bbd96ec3b9 Fixes code blocks with highlights 2025-04-13 15:06:29 +04:00
Francesco
e139df4cd9 Update 2025-04-05 21:18:02 +02:00
Francesco Tomaselli
f8ffb8b3ac
Merge pull request #114 from crnh/crnh/module_path
Add major version suffix to go module path
2025-04-05 20:42:59 +02:00
crnh
61ec29acdb Add major version suffix to go module path 2025-04-05 17:27:52 +00:00
Francesco
3072988858 Update wiki 2025-04-03 01:47:43 +02:00
Francesco
dc5a6b1ceb Update wiki 2025-04-03 01:44:11 +02:00
Francesco Tomaselli
5ff1dc7c3b
Merge pull request #112 from crnh/crnh/feature/hooks 2025-04-02 12:19:08 +02:00
Corné Haasjes
031b0c31b2 Document hooks in wiki 2025-04-01 21:25:53 +02:00
Corné Haasjes
157c87d95e Put body_end above footer 2025-04-01 21:23:08 +02:00
Corné Haasjes
3865ee6a19 Fix get_hook function 2025-04-01 20:31:57 +02:00
Corné Haasjes
fe5d64c3c8 Add support for hooks in layouts/partials/hooks
Supported hooks:

- head_start
- head_end
- body_end
- footer_start
2025-04-01 19:38:31 +02:00
Francesco Tomaselli
745f0e089d
Merge pull request #111 from tomfran/revert-110-main
Revert "fix: copy button position"
2025-04-01 12:06:46 +02:00
Francesco Tomaselli
9128fe46e3
Revert "fix: copy button position" 2025-04-01 12:06:34 +02:00
Francesco Tomaselli
f56961a5c4
Merge pull request #110 from Borber/main
fix: copy button position
2025-04-01 11:22:55 +02:00
Francesco Tomaselli
01624638b9
Merge pull request #102 from runofthemillgeek/fix/aspect-ratio-layout-shift
Fix layout shifts by preserving aspect-ratio at responsive sizes
2025-04-01 11:22:01 +02:00
Francesco Tomaselli
aed9e11824
Merge pull request #100 from runofthemillgeek/feat/og-image-partial
Add partial to customize og:image meta property
2025-04-01 11:20:48 +02:00
Sangeeth Sudheer
28ba526714
Fix layout shifts by preserving aspect-ratio at responsive sizes
Uses `aspect-ratio` property to constrain height and width of render image's container to allow responsive resizing
while maintaining the original aspect ratio and avoiding layout shifts.

Previously, even though `width` and `height` attributes were passed to the `img` element, Chrome (and probably others)
weren't reserving space for the image as expected because CSS `width`/`height` were both `auto`. At least one of them
needed to be a fixed value in order to maintain aspect ratio. Even with this change, it doesn't seem possible to
constrain both width and height on the same element at the same time — only one or the other works.

The change introduced makes the `img` element constrain width using `max-width` while the parent element constrain
height using `max-height` and `aspect-ratio`. This way, we can get responsive sizing on both axes while obeying the
constraints.
2025-03-26 07:39:37 +05:30
Borber
95a67f743d
fix: copy button position 2025-03-25 22:59:05 +08:00
Francesco Tomaselli
b4813b0068
Merge pull request #109 from Borber/patch-1 2025-03-24 21:08:51 +01:00
𝘽𝙤𝙧𝙗𝙚𝙧
86372da254
Update USERS.md 2025-03-24 11:20:50 +08:00
Francesco
f7bca2a764 Nowrap on pagination control 2025-03-19 19:30:01 +01:00
Francesco Tomaselli
41cf1abc8d
Merge pull request #105 from Nykenik24/patch-1
Add myself to USERS.md
2025-03-19 19:09:13 +01:00
Francesco Tomaselli
4e6c9c1231
Merge branch 'main' into patch-1 2025-03-19 19:09:03 +01:00
Francesco Tomaselli
10ac8f10f1
Merge pull request #106 from rahulpat1l/patch-1
Update USERS.md
2025-03-19 19:08:15 +01:00
Francesco Tomaselli
88232d959f
Merge pull request #101 from runofthemillgeek/fix/use-unitless-img-width-height
Remove `px` from width/height img attributes in render-image hook
2025-03-19 19:07:57 +01:00
Rahul Patil
0caa18d267
Update USERS.md
added my website
2025-03-19 04:11:02 +05:30
Nykenik
09053fd43d
Update USERS.md 2025-03-18 18:56:20 +01:00
Sangeeth Sudheer
63df9dc335
Remove px from width/height img attributes in render-image hook
As per the spec, width/height attrs should be non-negative integers but
currently, they are being rendered with a `px` suffix. This change removes
the suffix which hopefully fixes any outstanding layout shifts.

References:
- https://html.spec.whatwg.org/multipage/embedded-content-other.html#dimension-attributes
2025-03-15 21:46:55 +05:30
Sangeeth Sudheer
1cbe2066ec
Add partial to customize og:image meta property
Adds a new partial — `head/og-image.html` — that will render the value to be used
for `og:image` meta tags. The changes preserve the existing Hugo OpenGraph template's
behavior of checking and using the frontmatter or specific format of image names
as the `og:image` but if that doesn't work, it will delegate to the default partial which
uses `assets/images/og-image.{ext}` as the image.

This partial can be overriden to allow dynamic `og:image` URLs via a third-party service.

`_internal/opengraph.html` source is copied from Hugo to customize and support
this feature. Docs are updated to mention its usage.
2025-03-15 15:28:05 +05:30
Francesco
a7fc2d4a18 Update wiki 2025-03-14 21:16:14 +01:00
Francesco Tomaselli
338510e751
Merge pull request #95 from runofthemillgeek/feat/breadcrumbs-customization
Add breadcrumbs config to hide current page and change home text
2025-03-14 21:06:32 +01:00
Francesco Tomaselli
8c6b25d4be
Merge pull request #99 from markop404/main 2025-03-14 20:57:24 +01:00
Marko Pejić
cae97de207
Fix error sentence in 404 page 2025-03-14 19:03:39 +01:00
Marko Pejić
d00e6e74b7
Fix home anchor tag spacing in 404 page 2025-03-14 19:01:16 +01:00
Sangeeth Sudheer
5bbe13fd43
Add breadcrumbs config to hide current page and change home text
Changes `breadcrumbs` config into an object to add customizations such as hiding current page and changing the text of
the home crumb.

By default, Typo will now show breadcrumbs. If breadcrumbs are enabled, the current default of showing the
current page crumb is preserved.

BREAKING CHANGE: `breadcrumbs` is now an object so existing `breadcrumbs = <true/false>` line in config needs to be changed.
2025-03-09 01:50:55 +05:30
Francesco Tomaselli
ae0e1ec668
Merge pull request #94 from kompoth/main 2025-03-07 19:03:44 +01:00
Vasily Negrebetskiy
e9936b2d04 Added the old Twitter logo; added myself to the list of users 2025-03-07 13:44:56 +04:00
Francesco Tomaselli
534459efa4
Merge pull request #92 from runofthemillgeek/fix/list-alignment-input-dark-mode
List alignment fixes and input dark mode support
2025-03-06 22:48:15 +01:00
Sangeeth Sudheer
9c8979eb16
List alignment fixes and input dark mode support
Fixes margin and alignment issues in ul, ol and checkbox lists including when they are nested within each other.

input elements in dark mode are forced to be in browser's dark color scheme.
2025-03-06 10:27:19 +05:30
Francesco
5d1f1a6c7e Update 2025-03-05 20:40:30 +01:00
Francesco Tomaselli
e1a1324b65
Merge pull request #91 from runofthemillgeek/docs/add-self-to-users
Add Sangeeth to USERS.md
2025-03-05 20:18:43 +01:00
Sangeeth Sudheer
dd4fb0e9ed
Add Sangeeth to USERS.md 2025-03-05 23:09:21 +05:30
Francesco Tomaselli
ef91909fe3
Merge pull request #90 from aadityathapa/patch-1
Added myself to USERS.md
2025-03-02 21:30:17 +01:00
Aaditya Thapa
0a1729c78d
Added myself to USERS.md 2025-03-02 23:00:34 +05:45
Francesco
780b6a9270 Update wiki 2025-02-24 22:43:50 +01:00
Francesco Tomaselli
5803b99d6d
Merge pull request #88 from kpechenenko/main 2025-02-22 10:32:56 +01:00
Konstantin Pechenenko
9acecf18ee update path to custom css file 2025-02-22 13:54:56 +07:00
Francesco Tomaselli
24dc86184b
Merge pull request #86 from OleMussmann/configure-mermaid-theme
Configure mermaid theme
2025-02-21 09:48:40 +01:00