Skip to content

Commit

Permalink
🔖 Release v2.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jpanther committed Aug 29, 2024
2 parents 5c8ab32 + e3d2ec7 commit 066983f
Show file tree
Hide file tree
Showing 109 changed files with 3,071 additions and 2,486 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
days-before-stale: 120
days-before-close: 30
stale-issue-label: "stale"
exempt-issue-labels: "wip"
exempt-issue-labels: "wip,help wanted,dependencies"
stale-pr-label: "stale"
exempt-pr-labels: "wip"
exempt-pr-labels: "wip,help wanted,dependencies"
stale-issue-message: >
This issue has been automatically marked as stale because it has not had any recent activity.
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/assets/lib/

/layouts/_default/_markup/*.html
/layouts/partials/picture.html
/layouts/shortcodes/figure.html
/layouts/shortcodes/screenshot.html

Expand Down
34 changes: 33 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,37 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

## [2.9.0] - 2024-08-29

### Added

- New `profile` shortcode
- Umami Analytics support ([#832](https://github.com/jpanther/congo/pull/832))
- Theme parameter to set a default HTML theme colour ([#849](https://github.com/jpanther/congo/pull/849))
- New icon for `bluesky` ([#851](https://github.com/jpanther/congo/pull/851))
- Support for article sharing to Threads ([#869](https://github.com/jpanther/congo/issues/869))
- Norwegian Bokmål translation ([#872](https://github.com/jpanther/congo/pull/872))
- Breadcrumb metadata to page schema ([#885](https://github.com/jpanther/congo/pull/885))

### Changed

- ⚠️ Simplified Chinese language code has changed from `zh-cn` to `zh-Hans`
- ⚠️ Traditional Chinese language code has changed from `zh-tw` to `zh-Hant`
- Scroll to top links now use JavaScript to determine when to display ([#806](https://github.com/jpanther/congo/pull/806))
- Upgrade to Tailwind v3.4.10 ([#930](https://github.com/jpanther/congo/pull/930))
- Upgrade to Typography v0.5.15 ([#864](https://github.com/jpanther/congo/pull/864), [#927](https://github.com/jpanther/congo/pull/927))
- Upgrade to ChartJS v4.4.4 ([#881](https://github.com/jpanther/congo/pull/881),[#928](https://github.com/jpanther/congo/pull/928))
- Upgrade to KaTeX v0.16.11 ([#925](https://github.com/jpanther/congo/pull/925))
- Upgrade to Mermaid v11.0.2 ([#880](https://github.com/jpanther/congo/pull/880), [#926](https://github.com/jpanther/congo/pull/926))

### Fixed

- Featured images overlap page title when article metadata hidden ([#827](https://github.com/jpanther/congo/issues/827))
- Inconsistent picture rendering between `figure` shortcode and Markdown render hook ([#828](https://github.com/jpanther/congo/issues/828))
- Animated GIF files are static when `enableImageWebp` is enabled ([#866](https://github.com/jpanther/congo/issues/866))
- Next article pagination link animation is inverted ([#870](https://github.com/jpanther/congo/issues/870))
- Unsafe URL warning in README link ([#901](https://github.com/jpanther/congo/pull/901))

## [2.8.2] - 2024-04-17

### Added
Expand Down Expand Up @@ -874,7 +905,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Advanced customisation using simple Tailwind colour definitions and styles
- Fully documented

[Unreleased]: https://github.com/jpanther/congo/compare/v2.8.2...HEAD
[Unreleased]: https://github.com/jpanther/congo/compare/v2.9.0...HEAD
[2.9.0]: https://github.com/jpanther/congo/compare/v2.8.2...v2.9.0
[2.8.2]: https://github.com/jpanther/congo/compare/v2.8.1...v2.8.2
[2.8.1]: https://github.com/jpanther/congo/compare/v2.8.0...v2.8.1
[2.8.0]: https://github.com/jpanther/congo/compare/v2.7.6...v2.8.0
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Congo is designed to be a powerful, lightweight theme for [Hugo](https://gohugo.
- Heading anchors, Tables of Contents, Code copy, Buttons, Badges and more
- HTML and Emoji support in articles 🎉
- SEO friendly with links for sharing to social media
- Fathom Analytics and Google Analytics support
- Fathom Analytics, Plausible Analytics, Umami Analytics and Google Analytics support
- RSS feeds, Favicons and comments support
- Advanced customisation using simple Tailwind colour definitions and styles
- Optimised for performance and accessibility with perfect Lighthouse scores
Expand Down Expand Up @@ -71,7 +71,7 @@ Detailed instructions for each method can be found in the [Installation](https:/

> **Note:** Do not overwrite the `module.toml` file you created above!

You will find these theme config files in the Hugo cache directory, or [download a copy](https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/jpanther/congo/tree/stable/config/_default) from GitHub.
You will find these theme config files in the Hugo cache directory, or [download a copy](https://github.com/jpanther/congo/tree/stable/config/_default) from GitHub.

5. Follow the [Getting Started](https://jpanther.github.io/congo/docs/getting-started/) instructions to configure your website.

Expand Down
42 changes: 29 additions & 13 deletions assets/css/compiled/main.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*! Congo v2.8.2 | MIT License | https://github.com/jpanther/congo */
/*! Congo v2.9.0 | MIT License | https://github.com/jpanther/congo */

/*! tailwindcss v3.4.3 | MIT License | https://tailwindcss.com */
/*! tailwindcss v3.4.10 | MIT License | https://tailwindcss.com */

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
Expand Down Expand Up @@ -864,7 +864,6 @@ video {
.prose :where(table):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
width: 100%;
table-layout: auto;
text-align: start;
margin-top: 2em;
margin-bottom: 2em;
font-size: 0.875em;
Expand Down Expand Up @@ -907,6 +906,10 @@ video {
vertical-align: top;
}

.prose :where(th, td):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
text-align: start;
}

.prose :where(figure > *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 0;
margin-bottom: 0;
Expand Down Expand Up @@ -983,19 +986,19 @@ video {
margin-bottom: 0.75em;
}

.prose :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
.prose :where(.prose > ul > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 1.25em;
}

.prose :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
.prose :where(.prose > ul > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-bottom: 1.25em;
}

.prose :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
.prose :where(.prose > ol > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 1.25em;
}

.prose :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
.prose :where(.prose > ol > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-bottom: 1.25em;
}

Expand Down Expand Up @@ -1903,14 +1906,14 @@ code {
margin-top: -0.75rem;
}

.-mt-4 {
margin-top: -1rem;
}

.mb-1 {
margin-bottom: 0.25rem;
}

.mb-10 {
margin-bottom: 2.5rem;
}

.mb-12 {
margin-bottom: 3rem;
}
Expand All @@ -1927,6 +1930,10 @@ code {
margin-bottom: 1.5rem;
}

.mb-8 {
margin-bottom: 2rem;
}

.mb-\[2px\] {
margin-bottom: 2px;
}
Expand Down Expand Up @@ -2158,6 +2165,10 @@ code {
align-items: flex-start;
}

.items-end {
align-items: flex-end;
}

.items-center {
align-items: center;
}
Expand Down Expand Up @@ -2624,13 +2635,13 @@ code {
.backdrop-blur {
--tw-backdrop-blur: blur(8px);
-webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}

.backdrop-blur-sm {
--tw-backdrop-blur: blur(4px);
-webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}

.transition-colors {
Expand Down Expand Up @@ -2782,6 +2793,11 @@ code {
visibility: visible;
}

.group:hover .group-hover\:-translate-x-\[-2px\] {
--tw-translate-x: 2px;
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.group:hover .group-hover\:-translate-x-\[2px\] {
--tw-translate-x: -2px;
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
Expand Down
2 changes: 1 addition & 1 deletion assets/css/main.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Congo v2.8.2 | MIT License | https://github.com/jpanther/congo */
/*! Congo v2.9.0 | MIT License | https://github.com/jpanther/congo */

@tailwind base;
@tailwind components;
Expand Down
1 change: 1 addition & 0 deletions assets/icons/bluesky.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions assets/js/appearance.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,29 @@ if (document.documentElement.getAttribute("data-auto-appearance") === "true") {
});
}

function add_to_top_elem() {
var body = document.body;
var html = document.documentElement;

const height =
Math.max(
body.scrollHeight,
body.offsetHeight,
html.clientHeight,
html.scrollHeight,
html.offsetHeight
) - 150;

const elem = document.getElementById("to-top");
if (elem === null || elem === undefined) {
return;
}

elem.hidden = height < window.innerHeight;
}

window.addEventListener("DOMContentLoaded", (event) => {
add_to_top_elem();
setThemeColor();
var switchers = document.querySelectorAll("[id^='appearance-switcher']");
switchers.forEach((switcher) => {
Expand Down
Loading

0 comments on commit 066983f

Please sign in to comment.