Commit graph

41 commits

Author SHA1 Message Date
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
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
2082a9856f Update breadcrumbs style 2025-02-19 23:27:32 +01:00
Francesco Tomaselli
f3aaebdee3
Merge pull request #75 from OleMussmann/main 2025-02-02 23:43:47 +01:00
Ole Mussmann
11606533c9 fix disappearing header links 2025-02-02 18:17:24 +01:00
Ole Mussmann
86e224dde6 fix whitespace around #small images 2025-02-02 13:55:27 +01:00
Arun Mathai
6e5bc2f944 feat(copy-code): To allow user to copy contents within code block to clipboard
fix(ui): corrections told by tomfran

fix(ui): add more contrast to button.

fix(ui): loading js as deferred
2025-01-16 10:36:25 +05:30
Francesco
3618437a1c Increased max image height, heading anchor tag to monospace 2024-11-18 22:26:37 +01:00
Francesco Tomaselli
5ee19e964c
Merge pull request #49 from runofthemillgeek/feat/heading-anchors
Add article heading anchors
2024-11-18 22:17:01 +01:00
Sangeeth Sudheer
47ba12bd1c
Add width and height attrs for local images
Image render hook now computes width/height of local images and adds
them as attributes. This patch also adds relevant CSS changes to prevent
stretchy images.

The main reason for this change is to avoid content shifts when images
load. Without providing width/height, browser doesn't have info to know
the aspect ratio to reserve some space until the image loads. With this
change, browser knows the intrinsic size and aspect-ratio to reserve
space and avoid content shifts in the page.

I believe this also fixes an issue I face in Safari where sometimes, an
image below the fold wouldn't load and thus have zero height because it
has loading="lazy".

To avoid images getting stretched and images overflow/filling the entire
screen when their intrinsic size is larger than the container size, I've
added some CSS. A configurable `max-height` is present which is used for
`figure img` elements. This especially helps when you have tall images
like mobile screenshots.
2024-11-17 17:21:02 +05:30
Sangeeth Sudheer
62972cfe7a
Add article heading anchors
Adds heading anchors (#) that appear when user hovers over headings in
articles. Clicking the anchor will scroll viewport until heading is
aligned to top and update the address bar with the hash. This makes it
easy to copy URLs that link to a specific heading in the article.
2024-11-17 16:27:18 +05:30
Francesco
5ee75c5f4f Add small to header p 2024-10-30 18:53:46 +01:00
Sangeeth Sudheer
6a5dd619d5 Add font-family fallback and optimize font loading
Optimized font loading by adding `font-display: swap`. Additionally,
moved font-family values into CSS variables.
2024-10-29 23:33:04 +05:30
Sangeeth Sudheer
a405e509ec Make header title a link to base URL (home page)
This is a common pattern found in many sites. I've also added styling
to remove the underline.
2024-10-28 14:10:57 +05:30
Francesco
ffdc99260d Updated quote CSS 2024-07-07 11:12:39 +02:00
Francesco
d4f49c1c1a Pagination on single posts 2024-06-24 18:44:39 +02:00
Francesco
3de9a15f6a Blockquote css 2024-05-23 19:11:37 +02:00
Francesco
9bba6e90e3 Tables styling 2024-05-23 19:04:05 +02:00
Francesco
604e4d7014 Image tags for sizing 2024-05-23 13:09:47 +02:00
Francesco
89422cdbce Minor 2024-05-21 19:50:16 +02:00
Francesco
8fe6a2c12a Minor 2024-05-21 19:16:01 +02:00
Francesco
9b2adc2e57 Increased font to match Medium-like size, fixed code missing padding on scroll 2024-05-20 21:05:35 +02:00
Francesco
be85b2a784 Secondary color, tweaked width 2024-05-19 23:53:41 +02:00
Francesco
3f734ef24d Back to top button 2024-05-16 16:53:32 +02:00
Francesco
60282e5ada Minor 2024-05-11 23:29:14 +02:00
Francesco
5fd1088462 Breadcrumbs and tags 2024-05-11 22:48:26 +02:00
Francesco
1a5d0d46a1 Breadcrumbs tmp 2024-05-06 21:53:29 +02:00
Francesco
0a3f759770 Added list summaries configuration, tweaked social icons margin on mobile 2024-04-30 22:17:59 +02:00
Francesco
dcdf269fa1 Fixed overflow on Katex for mobile, woff2 for Literata 2024-04-29 00:05:22 +02:00
Francesco
e8307cdcac Minor 2024-04-24 00:01:25 +02:00
Francesco
939d7bc740 Theme Update 2024-04-23 16:46:03 +02:00
Francesco
d956b1d02f Theme Update 2024-04-23 16:38:35 +02:00
Francesco
7f5067f611 Theme Update 2024-04-23 11:42:18 +02:00
Francesco
303266ac28 Theme Update 2024-04-22 19:49:53 +02:00
Francesco
68f1baa172 Theme Update 2024-04-22 19:27:01 +02:00
Francesco
14bf6c4498 Theme Update 2024-04-22 18:15:45 +02:00
Francesco
70a938a3a5 Theme Update 2024-04-22 17:12:48 +02:00
Francesco
5e15cf0e2f Theme Update 2024-04-22 15:18:20 +02:00
Francesco
ac65427931 Theme Update 2024-04-22 15:13:47 +02:00
Francesco
941939c15c Theme Update 2024-04-22 14:00:52 +02:00
Francesco
96c71b9bcb Initial 2024-04-22 13:19:56 +02:00