diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..be8d641 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,16 @@ +# EditorConfig is awesome: https://EditorConfig.org + +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 4 +indent_style = tab +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +indent_size = 2 +indent_style = space +trim_trailing_whitespace = false diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..6313b56 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7af4e43 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +public/ +.vercel diff --git a/.woodpecker.yaml b/.woodpecker.yaml new file mode 100644 index 0000000..05656fc --- /dev/null +++ b/.woodpecker.yaml @@ -0,0 +1,32 @@ +# Taken from https://www.markpitblado.me/blog/deploying-to-vercel-from-codeberg + +steps: + preview: + image: node + environment: + VERCEL_TOKEN: + from_secret: vercel_token + VERCEL_ORG_ID: + from_secret: vercel_org_id + VERCEL_PROJECT_ID: + from_secret: vercel_project_id + commands: + - npm install --global vercel@latest + - vercel deploy --token=$VERCEL_TOKEN + when: + event: [pull_request] + + deploy: + image: node + environment: + VERCEL_TOKEN: + from_secret: vercel_token + VERCEL_ORG_ID: + from_secret: vercel_org_id + VERCEL_PROJECT_ID: + from_secret: vercel_project_id + commands: + - npm install --global vercel@latest + - vercel deploy --prod --token=$VERCEL_TOKEN + when: + event: [push, manual] diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..cb09f38 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,768 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased](https://codeberg.org/daudix/duckquill/compare/v6.3.0...main) + +## [v6.3.0](https://codeberg.org/daudix/duckquill/compare/v6.2.0...v6.3.0) - 2025-04-19 + +### Added + +- Add German translation (#130). + +### Fixed + +- Output an error message if title is not set in `config.toml` (#129). + +## [v6.2.0](https://codeberg.org/daudix/duckquill/compare/v6.1.1...v6.2.0) - 2025-03-30 + +### Added + +- Add ability to disable share preview card altogether by setting `config.extra.card` to `false` (#122). +- Add ability to turn on "go to top" button on regular pages by setting `page.extra.go_to_top` or `section.extra.go_to_top` to `true` (#115). +- Add French translation (#113). +- Provide a way to subscribe to the tag feed (#104). + +### Changed + +- Convert all icons to CSS variables for de-duplication and easier replacement. +- Don't use all available width for table of contents sidebar. + +### Fixed + +- Fix build failing if social sharing button is enabled and page is missing a description (#114). +- Fix build failing if taxonomies in config are set to anything other than "tags" (#126). + +### Removed + +- Remove `extra.fix_contrast` and `extra.fix_contrast_dark` config/page/section variables in favor of automatic contrast color picking (#43). + +## [v6.1.1](https://codeberg.org/daudix/duckquill/compare/v6.1.0...v6.1.1) - 2024-12-01 + +### Fixed + +- Fix translation of table of contents heading. + +## [v6.1.0](https://codeberg.org/daudix/duckquill/compare/v6.0.0...v6.1.0) - 2024-12-01 + +### Added + +- Add `toc_sidebar` page/section variable for turning table of contents to a sidebar. + +### Changed + +- Don't scale down article cards when clicking on tags in them. +- Improve performance of the page when navbar is hidden by using the `config.extra.nav.auto_hide` config variable. +- Improve tab title generation. +- Replace `config.extra.debug_*` config variables with variables under the `config.extra.debug` section. + +### Fixed + +- Fix navbar not scrolling with content on mobile (#109). + +## [6.0.0](https://codeberg.org/daudix/duckquill/compare/v5.4.0...v6.0.0) - 2024-11-03 + +### Added + +- Add `bg-overlay` CSS variable to make setting page background image easier. +- Add `classic-article-list` mod for returning the classic article list style. +- Add `config.extra.debug_no_styles` config variable for debugging. +- Add `config.extra.nav.auto_hide` config variable for making the navbar auto-hide unless hovered or keyboard-focused (#106). +- Add `config.extra.show_backlinks` config variable for showing the backlinks button for linked articles in the article's quick actions. +- Add `external` class to `https://` links in navbar/footer. +- Add `fediverse:creator` meta tag. +- Add `shadow-glow` and `text-shadow-glow` CSS variables so that it's easier to use these. +- Add `title` class for use on ``. +- Add back support for lazy async images in comments. +- Add missing translation strings for author separator and conjunctions. +- Add shortcode for Mastodon post embedding. +- Add support for blurred media in comments. +- Add support for content warnings (CWs) in comments. +- Add support for Fuse.js search (#101). +- Add support for preview cards in comments. +- Add the ability to set video attributes via shortcode. + +### Changed + +- **[BREAKING]** Rename `dialog-buttons` class to simply `buttons`. +- **[BREAKING]** Rename `nav-bg` CSS variable to `glass-bg`. +- **[BREAKING]** Rename `show_read_time` to `show_reading_time`. +- **[BREAKING]** Rename main content ID from `main` to `main-content`. +- **[BREAKING]** Rename the visually hidden `hidden` class to `visually-hidden`. `hidden` is now used to completely hide the elements, including from screen readers. +- **[BREAKING]** Use `main` for main content instead of `div` with a `container` class. +- Add default width/height to the `icon` class. +- Adjust navbar, main content, and footer margins. +- Improve the look of threads in comments. +- Keep images slightly rounded on hover. +- Make `emoji` class available outside of comments. +- Make the code and styling for article cards much cleaner. +- Make the shortcodes code much cleaner. +- Remove top/bottom margin from the first/last element in `