mirror of https://github.com/jpanther/congo.git
Compare commits
5 Commits
4bb5553964
...
778de4705d
Author | SHA1 | Date |
---|---|---|
Wen Junhua | 778de4705d | |
James Panther | 05c3fef94a | |
James Panther | 6e4ace75f8 | |
Wen Junhua | 8ae115e95c | |
Wen Junhua | a785bb0dbf |
|
@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [2.7.6] - 2023-11-26
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Some Mermaid diagram elements not styled correctly in dark mode ([#706](https://github.com/jpanther/congo/issues/706))
|
||||||
|
|
||||||
## [2.7.5] - 2023-11-25
|
## [2.7.5] - 2023-11-25
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
@ -797,7 +803,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
|
- Advanced customisation using simple Tailwind colour definitions and styles
|
||||||
- Fully documented
|
- Fully documented
|
||||||
|
|
||||||
[Unreleased]: https://github.com/jpanther/congo/compare/v2.7.5...HEAD
|
[Unreleased]: https://github.com/jpanther/congo/compare/v2.7.6...HEAD
|
||||||
|
[2.7.6]: https://github.com/jpanther/congo/compare/v2.7.5...v2.7.6
|
||||||
[2.7.5]: https://github.com/jpanther/congo/compare/v2.7.4...v2.7.5
|
[2.7.5]: https://github.com/jpanther/congo/compare/v2.7.4...v2.7.5
|
||||||
[2.7.4]: https://github.com/jpanther/congo/compare/v2.7.3...v2.7.4
|
[2.7.4]: https://github.com/jpanther/congo/compare/v2.7.3...v2.7.4
|
||||||
[2.7.3]: https://github.com/jpanther/congo/compare/v2.7.2...v2.7.3
|
[2.7.3]: https://github.com/jpanther/congo/compare/v2.7.2...v2.7.3
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/*! Congo v2.7.5 | MIT License | https://github.com/jpanther/congo */
|
/*! Congo v2.7.6 | MIT License | https://github.com/jpanther/congo */
|
||||||
|
|
||||||
/*! tailwindcss v3.3.5 | MIT License | https://tailwindcss.com */
|
/*! tailwindcss v3.3.5 | MIT License | https://tailwindcss.com */
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/*! Congo v2.7.5 | MIT License | https://github.com/jpanther/congo */
|
/*! Congo v2.7.6 | MIT License | https://github.com/jpanther/congo */
|
||||||
|
|
||||||
@tailwind base;
|
@tailwind base;
|
||||||
@tailwind components;
|
@tailwind components;
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
/*
|
||||||
|
Closes the hamburger menu when a link is clicked.
|
||||||
|
*/
|
||||||
|
function close_menu() {
|
||||||
|
document.getElementById('menu-controller').checked=false
|
||||||
|
}
|
|
@ -2,19 +2,29 @@ function css(name) {
|
||||||
return "rgb(" + getComputedStyle(document.documentElement).getPropertyValue(name) + ")";
|
return "rgb(" + getComputedStyle(document.documentElement).getPropertyValue(name) + ")";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let isDark = document.documentElement.classList.contains("dark");
|
||||||
|
|
||||||
mermaid.initialize({
|
mermaid.initialize({
|
||||||
theme: "base",
|
theme: "base",
|
||||||
themeVariables: {
|
themeVariables: {
|
||||||
background: css("--color-neutral"),
|
background: css("--color-neutral"),
|
||||||
primaryColor: css("--color-primary-200"),
|
primaryTextColor: isDark ? css("--color-neutral-200") : css("--color-neutral-700"),
|
||||||
secondaryColor: css("--color-secondary-200"),
|
primaryColor: isDark ? css("--color-primary-700") : css("--color-primary-200"),
|
||||||
tertiaryColor: css("--color-neutral-100"),
|
secondaryColor: isDark ? css("--color-secondary-700") : css("--color-secondary-200"),
|
||||||
primaryBorderColor: css("--color-primary-400"),
|
tertiaryColor: isDark ? css("--color-neutral-700") : css("--color-neutral-100"),
|
||||||
|
primaryBorderColor: isDark ? css("--color-primary-500") : css("--color-primary-400"),
|
||||||
secondaryBorderColor: css("--color-secondary-400"),
|
secondaryBorderColor: css("--color-secondary-400"),
|
||||||
tertiaryBorderColor: css("--color-neutral-400"),
|
tertiaryBorderColor: isDark ? css("--color-neutral-300") : css("--color-neutral-400"),
|
||||||
lineColor: css("--color-neutral-600"),
|
lineColor: isDark ? css("--color-neutral-300") : css("--color-neutral-600"),
|
||||||
fontFamily:
|
fontFamily:
|
||||||
"ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,segoe ui,Roboto,helvetica neue,Arial,noto sans,sans-serif",
|
"ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,segoe ui,Roboto,helvetica neue,Arial,noto sans,sans-serif",
|
||||||
fontSize: "16px",
|
fontSize: "16px",
|
||||||
|
pieTitleTextSize: "19px",
|
||||||
|
pieSectionTextSize: "16px",
|
||||||
|
pieLegendTextSize: "16px",
|
||||||
|
pieStrokeWidth: "1px",
|
||||||
|
pieOuterStrokeWidth: "0.5px",
|
||||||
|
pieStrokeColor: isDark ? css("--color-neutral-300") : css("--color-neutral-400"),
|
||||||
|
pieOpacity: "1",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
@ -17,7 +17,7 @@ enableImageLazyLoading = true
|
||||||
fingerprintAlgorithm = "sha256"
|
fingerprintAlgorithm = "sha256"
|
||||||
|
|
||||||
[header]
|
[header]
|
||||||
layout = "basic" # valid options: basic, hamburger, hybrid, custom
|
layout = "hamburger" # valid options: basic, hamburger, hybrid, custom
|
||||||
# logo = "img/logo.jpg"
|
# logo = "img/logo.jpg"
|
||||||
# logoDark = "img/dark-logo.jpg"
|
# logoDark = "img/dark-logo.jpg"
|
||||||
showTitle = true
|
showTitle = true
|
||||||
|
|
|
@ -47,6 +47,10 @@
|
||||||
{{ $jsCode := resources.Get "js/code.js" }}
|
{{ $jsCode := resources.Get "js/code.js" }}
|
||||||
{{ $assets.Add "js" (slice $jsCode) }}
|
{{ $assets.Add "js" (slice $jsCode) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ if eq .Site.Params.header.layout "hamburger" }}
|
||||||
|
{{ $jsMenu := resources.Get "js/menu.js" }}
|
||||||
|
{{ $assets.Add "js" (slice $jsMenu) }}
|
||||||
|
{{ end }}
|
||||||
{{ if eq (site.Language.LanguageDirection | default "ltr") "rtl" }}
|
{{ if eq (site.Language.LanguageDirection | default "ltr") "rtl" }}
|
||||||
{{ $jsRTL := resources.Get "js/rtl.js" }}
|
{{ $jsRTL := resources.Get "js/rtl.js" }}
|
||||||
{{ $assets.Add "js" (slice $jsRTL) }}
|
{{ $assets.Add "js" (slice $jsRTL) }}
|
||||||
|
|
|
@ -93,6 +93,7 @@
|
||||||
<a
|
<a
|
||||||
href="{{ .URL }}"
|
href="{{ .URL }}"
|
||||||
title="{{ .Title }}"
|
title="{{ .Title }}"
|
||||||
|
onclick="close_menu()"
|
||||||
{{ with .Params.target }}target="{{ . }}"{{ end }}
|
{{ with .Params.target }}target="{{ . }}"{{ end }}
|
||||||
>{{ with .Params.icon }}
|
>{{ with .Params.icon }}
|
||||||
<span
|
<span
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "hugo-congo-theme",
|
"name": "hugo-congo-theme",
|
||||||
"version": "2.7.5",
|
"version": "2.7.6",
|
||||||
"description": "Congo theme for Hugo",
|
"description": "Congo theme for Hugo",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"preinstall": "rimraf assets/lib",
|
"preinstall": "rimraf assets/lib",
|
||||||
|
|
Loading…
Reference in New Issue