314 Commits (main)

Author SHA1 Message Date
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
welpo d7caa7af5f
feat: allow customizable secure headers (CSP) 2 years ago
welpo 3aa22cb3ad
♻️ refactor: split macros.html in different files
Clearer macros format.
2 years ago
welpo 9ed4034260
🥚 refactor: show word count as reading time tooltip 2 years ago
welpo d9cd64e5a4
feat: display word count when hovering over read time 2 years ago
welpo 1c93df0a6f
️ refactor: improve table of contents accessibility 2 years ago
welpo e4c6705843
💄 style: resize headers 2 years ago
welpo 83b7bb9d3a
💄 style: increase margins before content & after ToC 2 years ago
welpo 0ecc6eff78
feat: use ordinal day number in dates
If the date_format variable in config.toml is empty, the new format date
will be used. Example: 2nd August 2043.
2 years ago
welpo 4390b7bdfb
💄 style: coloured links in paragraph; meta changes
- Links in paragraphs are no longer underlined, but rather coloured with
the accent-colour of the theme.
- The meta section on posts (date, time to read, tags) is rehauled. It's
more compact, less distracting and more minimal.
- Line height is increased.
2 years ago
Óscar 9ff7462ccd
Merge branch 'main' into style/redesign-posts 2 years ago
welpo 8fe96d3f46
Commit Message: Refactor font weight and size, add article max-width, update color variables 2 years ago
welpo 799b31d403
✏️ fix: minor typo 2 years ago
Óscar 586b5617b2
Merge pull request #39 from welpo/feature/default-theme-switcher
Change default theme to OS default; listen to OS default theme changes and switch accordingly (as long as there's no user preference set)
2 years ago
welpo bd8dd87cd5
feat: add dimmable-image shortcode for dark theme
Reduces contrast and brightness of images when the dark theme is active.
Useful when invertable-image is not appropriate (photographs, paintings,
colour drawings…)
2 years ago
welpo 2f4d0658d8
🐛 fix: rename sun icon reference 2 years ago
welpo 84b4469b07
️ improvement: switch from webp to svg icons
Saves a bit of space :)
2 years ago
welpo c6e5de7dee
️ improvement: use webp instead of png 2 years ago
welpo 9de7a7a02d
feat: allow realtive paths in images
Useful when hosting on a subdirectory. Replaces $BASE_URL by the
base_url set in config.toml.
2 years ago
welpo 389c724fe0
feat: add invertable image shortcode
Useful to invert diagrams, graphs, etc. in dark theme.
To use it in a markdown file, add a line like:
{{ invertable_image(src="/img.png", alt="alt text") }}
2 years ago
welpo 5c48acba58
🐛 fix: close div class"tags-item" 2 years ago
welpo 4fe8643a1a
💄 style: larger section titles 2 years ago
welpo 6e471450c6
💄 fix: remove double bottom-boder/div on Archive 2 years ago
Óscar 0068912163
Merge branch 'main' into fix/style 2 years ago
welpo fa781db0e4
💄 style: set consistent underline in headers 2 years ago
serginogal 3434cbc926 feat: add archive screen 2 years ago
Sergi Nogal 40017f069f
Merge pull request #14 from welpo/feature/add-md-support-to-index
Feature/add md support to index
2 years ago
serginogal c29697c421 💄 feat: change markdown description style 2 years ago
welpo 32d4a9358c feat: set Table of Contents per page, not globally 2 years ago
welpo 988034ba4e ♻️ refactor: set datetime format as a variable 2 years ago
welpo 095b9d0d07 🐛 fix: add end-of-file newline 2 years ago
welpo 1242b909a2 🐛 fix: consistent date format & remove invalid <time> tags 2 years ago
welpo 4cef13a7dd 🐛 fix: remove duplicated meta description 2 years ago
welpo 3f4259d3f4 🐛 fix: remove space in atom url 2 years ago
welpo 29afc44149 ️ fix: switch pagination from <ul> to <div>
Aids screen reader output.
2 years ago
welpo 06dae7a711 💄 style: change various font sizes and date format 2 years ago
welpo 339f818cfb 🐛 fix: remove duplicate social images; allow relative paths in socials
- Remove duplicate files in social_icons folder
- Allow relative paths in socials section (footer)
- Add more socials in default config
2 years ago
welpo 049df81d6c 🐛 fix: allow for relative paths everywhere
Allows hosting the page on subdirectories.
2 years ago
Óscar 1c69169ef0
Merge pull request #9 from welpo/fix/theme-switcher-alt
🐛 fix: alt text for moon/sun icons (theme switcher)
2 years ago
welpo 4edbcf08b3 🐛 fix: alt text for moon/sun icons (theme switcher) 2 years ago
serginogal dcaa705b56 🐛 fix: trailing space in front of nav-links 2 years ago
serginogal c6ec7c7505 feat: add markdown support to index page 2 years ago
welpo 767d92a5eb Add Error 403 custom page 2 years ago
welpo ec51960eeb Remove .DS_Store 2 years ago
welpo 71f76aa928 Remove .DS_Store 2 years ago
welpo 7a63454391 Join tag icon and tag title 2 years ago
welpo e6c880ceda Add space between tags 2 years ago
welpo 0b117d1641 first commit 2 years ago