Commit graph

3 commits

Author SHA1 Message Date
Kévin Commaille 36599d4bb9
Fix JS script paths because they are minified
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
2025-01-06 21:42:34 +01:00
Kévin Commaille 646087cfb9
Fix click-to-copy buttons for code blocks
It turns out that we were purging too much CSS which broke their style.

We use a simple but lazy solution that parses the JS scripts and keeps the matching selectors.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
2025-01-06 21:30:06 +01:00
Kévin Commaille 1accb9e93f
Optimize generated CSS by removing unused selectors (#2008)
Hugo generates stats about the HTML elements, IDs and classes that can be found in the website,
and we post-process the rendered CSS with postcss-purgecss that uses those stats to remove unused selectors.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
2024-12-10 22:55:14 +00:00