284 Commits

Author SHA1 Message Date
welpo
2f83ef8062
️ feat: add cachebust for main.css 2023-08-09 18:53:45 +02:00
welpo
638d75c819
🐛 fix: set proper color-scheme meta 2023-08-09 18:45:16 +02:00
welpo
7ccd71736e
feat: add 2 interactive image shortcodes
- `image_hover` changes image on mouse hover.

- `image_toggler` swaps image on click.
2023-08-09 18:36:45 +02:00
welpo
c78c7f5bd1
feat: allow setting the default theme
Used as fallback when JS is disabled and `theme_switcher` is enabled.

If `default_theme` is unset, it defaults to "light".

Used as single theme when `theme_switcher` is disabled.
2023-08-08 00:47:24 +02:00
welpo
ab879e3727
🐛 fix: remove extra newlines in final html 2023-08-07 00:12:00 +02:00
welpo
113a7f4e5d
feat(theme-switcher): hide button if JS is disabled 2023-08-03 00:12:00 +02:00
welpo
edcfa359ef
feat: global/individual toggle for KaTeX and copy button
Allow KaTeX and copy button to be enabled globally or for individual posts.
2023-08-02 19:38:04 +02:00
Óscar
5cdc18e688
feat: add backlinks to footnotes (#101) 2023-08-02 18:35:27 +02:00
welpo
f9c18b0398
feat: optional trailing slash in menu links
Enabled by default.

Drops the `$BASE_URL` transformation to avoid confusion (#99).
2023-08-01 14:11:05 +02:00
Óscar
32b1177140
♻️ refactor: improve stylised feed translations & consolidate XSL/CSS loading (#98) 2023-07-31 21:07:13 +02:00
welpo
f3a0dd7f96
🥅 fix: load English stylesheet as fallback 2023-07-31 17:04:34 +02:00
smtbook
e7dc5eb44e
fix: multilingual issues in feeds and 'nav.html' 2023-07-31 17:04:34 +02:00
welpo
09e5bc1aa3
🚸 feat: add JavaScript notice for comments 2023-07-27 00:42:51 +02:00
welpo
9a98789922
feat: add support for Isso comments 2023-07-26 01:47:26 +02:00
welpo
4b43229d0a
🚚 chore(js): rename minified files 2023-07-17 20:40:48 +02:00
welpo
7924e8206c
feat: add support for Hyvor Talk comments 2023-07-17 20:10:18 +02:00
welpo
05a6d15455
feat: add quick navigation buttons
💄 style(dark): change inline code background

♻️ refactor: simplify comment system logic
2023-07-16 00:50:07 +02:00
welpo
5993e950c7
feat: add support for giscus and utterances 2023-07-14 21:22:23 +02:00
welpo
3e215e18e2
🐛 fix: use proper meta descriptions 2023-07-14 21:20:22 +02:00
welpo
19d120019b
feat: add support for giscus & utterances comments 2023-07-12 18:44:28 +02:00
welpo
93c8b577b8
🚧 feat: add utterances support 2023-07-10 21:42:21 +02:00
welpo
46100730fa
🐛 fix(atom): escape HTML in feed summary
HTML now shows clear,
Escaping tamed, data pure,
Feed sings, have no fear.
2023-07-09 14:16:37 +02:00
welpo
2dec139e41
feat: add copy button to code blocks 2023-07-07 22:03:47 +02:00
welpo
f710b62631
🐛 fix: properly check for theme_switcher setting 2023-07-07 21:58:47 +02:00
welpo
fd50204e32
feat: add full-width image option to shortcodes
Closes #85
2023-07-05 02:43:07 +02:00
welpo
67173f27cd
🎨 style: remove newlines around summary 2023-07-02 01:02:18 +02:00
welpo
19bebde148
🐛 fix: remove leading slash from xsl href 2023-06-27 00:04:04 +02:00
welpo
16f1aa57fa
🔥 refactor: remove Yahoo Media RSS reference 2023-06-24 03:10:41 +02:00
welpo
1b60be8c9d
🚧 feat: style xml feed 2023-06-24 03:06:54 +02:00
welpo
e3bd75e9e3
🎨 refactor: restructure template 2023-06-24 00:30:05 +02:00
welpo
54e88beca2
feat: use page description as summary
If neither page description or summary are available,
only the post title will be shown.
2023-06-23 17:26:09 +02:00
welpo
0b02e727e0
💄 style: rename "atom/rss feed" to "feed" 2023-06-23 01:51:17 +02:00
welpo
5bdb8045a6
💄 style: set custom header anchor 2023-06-18 23:13:37 +02:00
welpo
c47198facf
🎨 style: add dash to toggle identifier 2023-06-16 13:49:46 +02:00
welpo
0e1a5143c0
🐛 fix: generate random id for multilingual quotes
Fix #82
2023-06-16 02:09:55 +02:00
welpo
dd73e52729
feat: add custom quotation marks for multilingual quotes
Allows users to specify custom opening and closing quotation marks for
the multilingual quote shortcode.
The quotation marks can be configured per language in config.toml.
If not specified, default quotation marks will be used.
2023-06-07 01:50:43 +02:00
welpo
56a3061573
🐛 fix: proper URL for multilingual rss/atom feeds 2023-06-05 23:48:34 +02:00
welpo
ab29511d5e
feat: add multilingual quote shortcode 2023-06-05 23:22:17 +02:00
welpo
58d0dd6f2f
🐛 fix: mention translations in 404 if there's more than 1 language 2023-05-30 14:01:25 +02:00
welpo
5ac69fe21d
🐛 fix: show language switcher if there's more than 1 language 2023-05-30 14:00:00 +02:00
Óscar
90d7188787
Merge branch 'main' into feat/multilingual-support 2023-05-25 18:03:24 +02:00
welpo
8ecd23b940
💫 refactor(404): remove mention of translations for single language sites 2023-05-25 18:00:39 +02:00
welpo
fb061a1469
feat: allow using emojis as favicon 🌱 2023-05-25 14:31:03 +02:00
welpo
eded835d3f
🐛 fix: avoid empty dates when long_date_format is empty 2023-05-23 22:59:47 +02:00
welpo
fa9229377d
feat: add multi-language support 2023-05-22 19:12:03 +02:00
welpo
a5981e6fdd
🐛 fix: remove flashing from header text (Firefox)
Loads a subset of the sans-serif font for the header.

Fixes #75
2023-04-29 15:11:13 +02:00
welpo
1efb0330e3
🐛 fix: remove flash when navigating in dark-mode
The `initialize-theme.js` script takes care of the following:

  1. If there is a stored theme value in the localStorage, set the theme
 based on that value.
  2. If there is no stored theme value, check the  user's system
  preference (dark or light) and set the theme accordingly.

The new `main.js` takes care of the actual theme switching and listening
to system preference changes (if the user has not manually set a theme).

Now the icons are stored in CSS, and are set according to the current
theme. This allows for having different icons that dynamically switch.

Additionally, wraps social and navigation elements in ul/li.

Fixes #76
2023-04-28 16:20:42 +02:00
welpo
eb63718bbf
🚚 refactor: rename minified KaTeX css 2023-04-28 16:12:14 +02:00
welpo
556570d799
🐛 fix: only load script when themeswitcher is enabled 2023-04-27 23:45:58 +02:00
welpo
25a8374edc
💄 style: respect the tags capitalisation
Otherwise "TIL" becomes "Til", for example.
2023-04-17 02:22:07 +02:00