297 Commits (36e53dc646a22d2c090d28c11ab7a58177ebcfc6)

Author SHA1 Message Date
Óscar Fernández 2c6ac293ad
️ fix: improve accessibility and i18n (#183) 1 year ago
Donovan Glover fd1c50af11
feat(SEO): Add description support for sections (#179) 1 year ago
Donovan Glover 342a62c76e
♻️ refactor(HTML): remove X-UA-Compatible (#177) 1 year ago
Donovan Glover 93eaaea76c
🐛 fix(html): remove unused self-closing tags (#176) 1 year ago
Óscar Fernández Vázquez 88cc68f4a0
feat(header): add support for canonical URLs (#168) 1 year ago
Donovan Glover d36404e0cb
🐛 fix(i18n): use English by default in atom.xml (#167) 1 year ago
welpo 2e34e7e897
🐛 fix (format_date): set `%-d %b %Y` default
Documentation was inaccurate.
1 year ago
welpo b9874393b4
feat(archive): allow customising section for archive 1 year ago
Dave Patrick Caberto a617d6fe72
🐛 fix(atom): remove safe filter; allow content & summary (#165) 1 year ago
Óscar a113ba2271
feat(atom): add `full_content_in_feed` option (#164) 1 year ago
Óscar 049babbd97
feat(social-media-cards): support relative paths (#163) 1 year ago
Óscar 271f54ca79
🐛 fix(header): check if translations exist while building tags (#159) 1 year ago
Óscar 5a2161f529
feat: allow internal project links (#157) 1 year ago
Óscar a37756c6fa
feat(alias): style redirect page (#156) 1 year ago
welpo 465bc55b9a
feat(header): support multilingual meta tags in sections
Builds upon #154.
1 year ago
Óscar 78c0f712c1
🔍️ feat: enhance SEO and accessibility with meta tags (#154) 1 year ago
Óscar 1c87b96ac1
feat(header): add img_alt attribute for customisable alt text (#153) 1 year ago
Óscar 6f269eee4a
feat(templates): introduce info-page template (#147) 1 year ago
Óscar 14ccb208cf
🎨 refactor: turn macros into partials & sort CSS (#146) 1 year ago
welpo cb8069fc6e
⚰️ chore(translate): remove outdated comment (#145) 1 year ago
Óscar 32a2d5094b
🌐 feat(i18n): overhaul translation system & add languages (#145)
Revamp the existing translation system, simplifying
management and adding several new languages. The new system reads from
TOML files in the `/i18n` directory and improves template structures.
It also enhances customisation options and robustness by providing
fallbacks and modularity.

- Implement a new, streamlined translation macro.
- Load translations from `/i18n` TOML files.
- Remove redundant configuration requirements.
- Refactor templates to align with new i18n system.
- Add support for Hindi, Japanese, Russian, Portuguese, Chinese,
  Italian, German, Ukranian, Korean, and French languages.
- Credit Thomas Weitzel (@thomasweitzel) for inspiration.
1 year ago
Óscar 355df550fc
🐛 fix: allow live reload when zola is in `serve` mode (#144) 1 year ago
Óscar 772ca29dcd
feat: add `browser_theme_color` config option (#143) 1 year ago
Óscar 9acaba6e35
feat(title): add `invert_title_order` config option (#142) 1 year ago
Óscar 0055a3613e
️ fix(a11y): update heading tags (#140) 1 year ago
Xavier Vello c79407e6d7
🐛 fix(header): don't fail if custom_subset absent (#132) 1 year ago
welpo 695e40be70
feat(ToC): implement setting hierarchy for ToC
Related: #128 and #120
1 year ago
welpo 22579a5974
feat(social-media-cards): add support for twitter:image
Related PR: #130
1 year ago
welpo 3cf9e3ad8d
feat(multilingual-quote): allow missing author 1 year ago
Óscar d53b8470a6
feat: add support for social media cards (#130) 1 year ago
welpo ab4b523f9c
🐛 fix(favicon): use `get_url` for favicon 2 years ago
Óscar 78f97e17b4
♻️ refactor(translation): introduce translation macro (#129) 2 years ago
welpo 3344f80539
🚑️ fix(footer): render footer again
#128 broke it.
2 years ago
Óscar f61c9ec309
feat(settings): add hierarchy-based setting overrides (#128) 2 years ago
Steven Roose b58225a012
feat(meta): allow hiding the read time indication on pages (#124)
Co-authored-by: welpo <welpo@users.noreply.github.com>
2 years ago
welpo 0c87f6513b
💄 style(meta): add "…" when using summary with `<!-- more -->`
Removes trailing periods, if they exist, before adding "…".

Partially reverts f03a9b3.
2 years ago
welpo e72a8da596
💄 style: add "…" when using summary with `<!-- more -->`
Removes trailing periods, if they exist, befor adding "…".

Partially reverts f03a9b3.
2 years ago
Óscar b73f7f5d93
feat(HTML): respect `external_links_…` config (#126) 2 years ago
Óscar 9c3e5d3990
🐛 fix(home-banner): allow missing image & correct spacing (#123)
Also removes the necessity for $BASE_URL in specifying home banner images.
2 years ago
welpo 7d8ed20c24
♻️ refactor(HTML): use whitespace control
Improves the cleanliness of the HTML related to the comment systems.
2 years ago
Steven Roose c99cf940a7
🐛fix(format_date): actually use `short_date_format` (#119) 2 years ago
Óscar fac730efad
feat(config): add dynamic stylesheet loading (#118) 2 years ago
Óscar 1c3db86b75
feat(image shortcodes): add lazy loading (#116)
Additionally sets the `alt` parameters as optional and cleans HTML output.
2 years ago
Óscar ac41bb18f8
feat(quick-navigation): add ToC button (#115) 2 years ago
welpo 36a9bac765
️chore(theme-switcher): show tooltip when hovering over icon 2 years ago
Óscar 151063d74b
feat(shortcode): add spoiler shortcode (#113) 2 years ago
welpo f1edbba8bd
feat(footer/copyright): replace "$SEPARATOR" to `separator`
Expands on #112
2 years ago
welpo 12b9184f15
🐛fix(footer): remove extra space between "tabi" and separator 2 years ago
Óscar 5ae21b5335
feat(footer): add configurable copyright notice (#112) 2 years ago
welpo 99f6f2dcdc
feat(footer): add link to remote repository
Adds two options, both defaulting to true if the remote repo URL is set:
* `show_remote_changes`: links the commit history of a post next to the updated date. (#109)
* `show_remote_source`: links to the site's repository on the footer.
2 years ago
welpo 427ffc7241
feat(footer/socials): add base64 encoded email protection 2 years ago
welpo d0babd5db1
♻️ refactor: use `get_url` for social icons 2 years ago
welpo fe872a7b54
🐛 fix: check proper `toc_ignore_pattern` 2 years ago
welpo f03a9b3c4f
💄 style: standardise posts' summary & description
* Cleans up newlines and html tags.

* Removes ellipsis from summary.
2 years ago
welpo b5fae83f28
feat: add support for remote codeberg repositories
Builds on #109
2 years ago
welpo 6178e8e642
✏️ fix: update bug report link format 2 years ago
Óscar 0e3a4af49b
feat: add link to commit history on updated articles (#109) 2 years ago
welpo 07ceddcc00
feat: enhance Table of Contents
- Introduce `toc_ignore_pattern` to ignore specific headers based on regex.
- Allow custom ToC placement with shortcode or "<!-- toc -->" marker.
- Increase max depth for ToC to 4.
- Update Documentation for the above features.
 - Move ToC generation to a macro file.
2 years ago
welpo 965af4b3dd
feat: add `toc_levels` to control ToC depth 2 years ago
welpo fb0dea0106
feat: add wide container shortcode 2 years ago
welpo 4952ce88f1
feat: add `rel=me` attribute to social links
http://microformats.org/wiki/rel-me
2 years ago
welpo 5250576744
💡 chore: add comments explaining use of `get_random` 2 years ago
Óscar f8cce3001c
feat: introduce skins to customise the theme (#105) 2 years ago
welpo 2f83ef8062
️ feat: add `cachebust` for `main.css` 2 years ago
welpo 638d75c819
🐛 fix: set proper color-scheme meta 2 years ago
welpo 7ccd71736e
feat: add 2 interactive image shortcodes
- `image_hover` changes image on mouse hover.

- `image_toggler` swaps image on click.
2 years ago
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.
2 years ago
welpo ab879e3727
🐛 fix: remove extra newlines in final html 2 years ago
welpo 113a7f4e5d
feat(theme-switcher): hide button if JS is disabled 2 years ago
welpo edcfa359ef
feat: global/individual toggle for KaTeX and copy button
Allow KaTeX and copy button to be enabled globally or for individual posts.
2 years ago
Óscar 5cdc18e688
feat: add backlinks to footnotes (#101) 2 years ago
welpo f9c18b0398
feat: optional trailing slash in menu links
Enabled by default.

Drops the `$BASE_URL` transformation to avoid confusion (#99).
2 years ago
Óscar 32b1177140
♻️ refactor: improve stylised feed translations & consolidate XSL/CSS loading (#98) 2 years ago
welpo f3a0dd7f96
🥅 fix: load English stylesheet as fallback 2 years ago
smtbook e7dc5eb44e
fix: multilingual issues in feeds and 'nav.html' 2 years ago
welpo 09e5bc1aa3
🚸 feat: add JavaScript notice for comments 2 years ago
welpo 9a98789922
feat: add support for Isso comments 2 years ago
welpo 4b43229d0a
🚚 chore(js): rename minified files 2 years ago
welpo 7924e8206c
feat: add support for Hyvor Talk comments 2 years ago
welpo 05a6d15455
feat: add quick navigation buttons
💄 style(dark): change inline code background

♻️ refactor: simplify comment system logic
2 years ago
welpo 5993e950c7
feat: add support for giscus and utterances 2 years ago
welpo 3e215e18e2
🐛 fix: use proper meta descriptions 2 years ago
welpo 19d120019b
feat: add support for giscus & utterances comments 2 years ago
welpo 93c8b577b8
🚧 feat: add utterances support 2 years ago
welpo 46100730fa
🐛 fix(atom): escape HTML in feed summary
HTML now shows clear,
Escaping tamed, data pure,
Feed sings, have no fear.
2 years ago
welpo 2dec139e41
feat: add copy button to code blocks 2 years ago
welpo f710b62631
🐛 fix: properly check for `theme_switcher` setting 2 years ago
welpo fd50204e32
feat: add full-width image option to shortcodes
Closes #85
2 years ago
welpo 67173f27cd
🎨 style: remove newlines around summary 2 years ago
welpo 19bebde148
🐛 fix: remove leading slash from xsl href 2 years ago
welpo 16f1aa57fa
🔥 refactor: remove Yahoo Media RSS reference 2 years ago
welpo 1b60be8c9d
🚧 feat: style xml feed 2 years ago
welpo e3bd75e9e3
🎨 refactor: restructure template 2 years ago
welpo 54e88beca2
feat: use page description as summary
If neither page description or summary are available,
only the post title will be shown.
2 years ago
welpo 0b02e727e0
💄 style: rename "atom/rss feed" to "feed" 2 years ago
welpo 5bdb8045a6
💄 style: set custom header anchor 2 years ago
welpo c47198facf
🎨 style: add dash to toggle identifier 2 years ago
welpo 0e1a5143c0
🐛 fix: generate random id for multilingual quotes
Fix #82
2 years ago
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.
2 years ago
welpo 56a3061573
🐛 fix: proper URL for multilingual rss/atom feeds 2 years ago
welpo ab29511d5e
feat: add multilingual quote shortcode 2 years ago
welpo 58d0dd6f2f
🐛 fix: mention translations in 404 if there's more than 1 language 2 years ago
welpo 5ac69fe21d
🐛 fix: show language switcher if there's more than 1 language 2 years ago
Óscar 90d7188787
Merge branch 'main' into feat/multilingual-support 2 years ago
welpo 8ecd23b940
💫 refactor(404): remove mention of translations for single language sites 2 years ago
welpo fb061a1469
feat: allow using emojis as favicon 🌱 2 years ago
welpo eded835d3f
🐛 fix: avoid empty dates when long_date_format is empty 2 years ago
welpo fa9229377d
feat: add multi-language support 2 years ago
welpo a5981e6fdd
🐛 fix: remove flashing from header text (Firefox)
Loads a subset of the sans-serif font for the header.

Fixes #75
2 years ago
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
2 years ago
welpo eb63718bbf
🚚 refactor: rename minified KaTeX css 2 years ago
welpo 556570d799
🐛 fix: only load script when themeswitcher is enabled 2 years ago
welpo 25a8374edc
💄 style: respect the tags capitalisation
Otherwise "TIL" becomes "Til", for example.
2 years ago
welpo b5b50cdefb
🐛 fix: handle missing image metadata gracefully 2 years ago
welpo 7aa61422a8
✏️ fix: properly end macro 2 years ago
welpo 8b5726c34e
️ feat: set width and height of project images 2 years ago
welpo b841969a8f
feat(shortcodes): update image path retrieval and dimensions in shortcodes
- Use `get_url` function to generate correct image paths
- Retrieve image dimensions with `get_image_metadata` function
- Update shortcodes: dimmable_image, dual_theme_image, and invertible_image

These changes reduce layout shifts.
2 years ago
welpo 369fa9700a
💄 style: add link to project images 2 years ago
welpo 10b85257cd
🔥 refactor: remove metadata in project files 2 years ago
welpo f9335b3fa4
feat: add KaTeX support 2 years ago
welpo 1803987555
feat: make JS light/dark toggle optional 2 years ago
welpo 8ff86b17fc
🐛 fix: check `short` value before using config date format
Added a check for whether short is true or false, rather than just
checking if it exists. This ensures that if short is set to false,
it will still use the long date format if it's available.
♻️ refactor: move the conditional around the date output, so it only
needs to check `short` once
2 years ago
welpo 9887fb0a6f
feat: allow dual date-format (short/long) 2 years ago
welpo ac0495ea69
🐛 fix: remove newlines around `<title>` from source code 2 years ago
Óscar 450c896ba7
💄 style: smaller socials; add Zola & tabi mention
💄 style: smaller socials; add Zola & tabi mention
2 years ago
welpo 50b8d5fc7b
️ fix: improve accessibility in lists & taps 2 years ago
welpo b7c89753ec
💄 style: smaller socials; add Zola & tabi mention 2 years ago
welpo 28d5704afd
💄 style: use day-month format 2 years ago
welpo dc64e2589d
💄 style: wrap post description in `<p>` 2 years ago
welpo dceceff5fd
♻️ refactor: improve spacing and indentation 2 years ago
welpo 4b18391c18
♻️ refactor: format date as "6 July 2049"
Follows Oxford's and other formal style manuals.
2 years ago
welpo cd2ab356be
💄 style: redesign post listing and other minor changes 2 years ago
welpo 14156b590a
🚚 refactor: move blog posts to `blog` section 2 years ago
welpo 8ac1894a66
💄 style: redesign tag pages 2 years ago
welpo 7605ccaf54
♻️ refactor: use consistent pagination 2 years ago
welpo a8e49cfedf
♻️ refactor: use consistent pagination 2 years ago
welpo 6938ae42f9
🔥 refactor: remove 403 page 2 years ago
welpo de46a24d37
♻️ refactor: rename extra.desc to extra.header 2 years ago
welpo b33a942766
💄 style: use cards/boxes for tag list 2 years ago
welpo a761fd00ee
🚧 style: list all posts per tag 2 years ago
welpo 887929fac7
♻️ refactor: wrap tags in ul>li
Long tags will get wrapped onto new lines now.
2 years ago
welpo 0648bc80e2
♻️ refactor: rename 'Categories' to 'Tags' 2 years ago
welpo 31ea93bbbe
♻️ refactor: use native `updated` field 2 years ago
welpo ed47f2580b
feat: add 'Last updated' extra tag 2 years ago
welpo b3dc5396b4
feat: add dual image support for switching themes 2 years ago
welpo 4e4021da5d
feat: format references with custom shortcode
Uses hanging indent for a References section.
2 years ago
welpo 54ae781352
🔒️ fix: prevent malformed CSP header 2 years ago
welpo aa00640e96
feat: use custom separator from config in meta & title 2 years ago
welpo 9ac150423b
♻️ refactor: remove unused set_title argument 2 years ago
welpo 53d2624133
🐛 fix: use set_title macro to set proper titles
Fixes #33
2 years ago