Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/Jh123x/congo into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Jh123x committed Sep 24, 2024
2 parents 0b55c4c + e3d2ec7 commit c8ed7b2
Show file tree
Hide file tree
Showing 57 changed files with 2,154 additions and 2,524 deletions.
18 changes: 16 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,36 @@ 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

- Upgrade to Typography v0.5.13 ([#864](https://github.com/jpanther/congo/pull/864))
- ⚠️ 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

Expand Down Expand Up @@ -892,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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
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
17 changes: 12 additions & 5 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 @@ -2162,6 +2165,10 @@ code {
align-items: flex-start;
}

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

.items-center {
align-items: center;
}
Expand Down Expand Up @@ -2628,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
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
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 c8ed7b2

Please sign in to comment.