mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-07 10:04:22 +00:00
Compare commits
21 Commits
v0.24.0-be
...
v0.24.0
Author | SHA1 | Date | |
---|---|---|---|
![]() |
31cf9eb577 | ||
![]() |
9a8ebd3558 | ||
![]() |
148c587283 | ||
![]() |
7c9c4cbabb | ||
![]() |
20f14934c2 | ||
![]() |
840e67d12d | ||
![]() |
8ef57a265e | ||
![]() |
8677357450 | ||
![]() |
79ac2dae4f | ||
![]() |
20cad07a0b | ||
![]() |
2c97af2fef | ||
![]() |
95ded6296c | ||
![]() |
3b46095821 | ||
![]() |
1bf4e74e56 | ||
![]() |
9b75b46c49 | ||
![]() |
107077f5ec | ||
![]() |
528b70bfa2 | ||
![]() |
75ab4625b1 | ||
![]() |
bac3054ec2 | ||
![]() |
d63fd5f212 | ||
![]() |
5678d2cab5 |
@@ -9,44 +9,49 @@
|
|||||||
(() => {
|
(() => {
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
const supportedThemes = ['auto', 'dark', 'light'];
|
||||||
|
|
||||||
|
// retrieves the currently stored theme from local storage (cookie)
|
||||||
const storedTheme = localStorage.getItem('theme')
|
const storedTheme = localStorage.getItem('theme')
|
||||||
|
|
||||||
const getPreferredTheme = () => {
|
// retrieves the theme preferred by the client, defaults to light
|
||||||
if (storedTheme) {
|
function getPreferredTheme() {
|
||||||
return storedTheme
|
|
||||||
}
|
|
||||||
|
|
||||||
return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'
|
return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'
|
||||||
}
|
}
|
||||||
|
|
||||||
const setTheme = function (theme) {
|
// retrieves the current theme, either from local storage or client's preferences
|
||||||
if (theme === 'auto') {
|
function getTheme() {
|
||||||
document.documentElement.setAttribute('data-bs-theme', (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'))
|
if (storedTheme) {
|
||||||
|
return storedTheme
|
||||||
} else {
|
} else {
|
||||||
document.documentElement.setAttribute('data-bs-theme', theme)
|
const preference = getPreferredTheme()
|
||||||
|
localStorage.setItem('theme', preference)
|
||||||
|
return preference
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
setTheme(getPreferredTheme())
|
// applies and stores requested theme
|
||||||
|
function setTheme(theme) {
|
||||||
const showActiveTheme = theme => {
|
if (!supportedThemes.includes(theme)) {
|
||||||
const activeSelectors = document.querySelectorAll('.theme-icon-active')
|
theme = 'auto'
|
||||||
const activeButtons = document.querySelectorAll(`[data-bs-theme-value="${theme}"]`)
|
|
||||||
if (activeButtons.length > 0) {
|
|
||||||
const activeIcon = activeButtons[0].querySelector('span')
|
|
||||||
|
|
||||||
document.querySelectorAll('[data-bs-theme-value]').forEach(element => {
|
|
||||||
element.classList.remove('active')
|
|
||||||
})
|
|
||||||
|
|
||||||
for (let i = 0; i < activeSelectors.length; ++i) {
|
|
||||||
activeSelectors[i].innerHTML = activeIcon.innerHTML
|
|
||||||
}
|
|
||||||
|
|
||||||
for (let i = 0; i < activeButtons.length; ++i) {
|
|
||||||
activeButtons[i].classList.add('active')
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
localStorage.setItem('theme', theme)
|
||||||
|
|
||||||
|
if (theme === 'auto') {
|
||||||
|
document.documentElement.setAttribute('data-bs-theme', (getPreferredTheme()))
|
||||||
|
} else {
|
||||||
|
document.documentElement.setAttribute('data-bs-theme', theme)
|
||||||
|
}
|
||||||
|
|
||||||
|
document.querySelectorAll('.navbar-mode-selector').forEach(chk => {
|
||||||
|
chk.checked = (document.documentElement.getAttribute('data-bs-theme') === 'light')
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// alternates the currently active theme
|
||||||
|
function toggleTheme() {
|
||||||
|
const target = document.documentElement.getAttribute('data-bs-theme') === 'dark' ? 'light' : 'dark'
|
||||||
|
setTheme(target)
|
||||||
}
|
}
|
||||||
|
|
||||||
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', () => {
|
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', () => {
|
||||||
@@ -56,18 +61,32 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
window.addEventListener('DOMContentLoaded', () => {
|
window.addEventListener('DOMContentLoaded', () => {
|
||||||
showActiveTheme(getPreferredTheme())
|
setTheme(getTheme())
|
||||||
|
const light = (document.documentElement.getAttribute('data-bs-theme') === 'light')
|
||||||
|
|
||||||
document.querySelectorAll('[data-bs-theme-value]')
|
document.querySelectorAll('.ball').forEach(ball => {
|
||||||
.forEach(toggle => {
|
ball.classList.add('notransition');
|
||||||
toggle.addEventListener('click', () => {
|
})
|
||||||
const theme = toggle.getAttribute('data-bs-theme-value')
|
|
||||||
localStorage.setItem('theme', theme)
|
document.querySelectorAll('.navbar-mode-selector').forEach(chk => {
|
||||||
setTheme(theme)
|
chk.checked = light
|
||||||
showActiveTheme(theme)
|
chk.addEventListener('change', function () {
|
||||||
})
|
toggleTheme()
|
||||||
})
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
document.querySelectorAll('.ball').forEach(ball => {
|
||||||
|
ball.offsetHeight; // flush css changes
|
||||||
|
ball.classList.remove('notransition');
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
window.addEventListener('load', () => {
|
||||||
|
const light = (document.documentElement.getAttribute('data-bs-theme') === 'light')
|
||||||
|
document.querySelectorAll('.navbar-mode-selector').forEach(chk => {
|
||||||
|
chk.checked = light
|
||||||
|
})
|
||||||
|
});
|
||||||
})()
|
})()
|
||||||
|
|
||||||
{{- end -}}
|
{{- end -}}
|
@@ -1,3 +1,9 @@
|
|||||||
|
@if $enable-dark-mode {
|
||||||
|
body {
|
||||||
|
transition: background-color 0.5s, color 0.5s;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Remove underline from all links
|
// Remove underline from all links
|
||||||
//
|
//
|
||||||
|
@@ -1,8 +1,6 @@
|
|||||||
// stylelint-disable annotation-no-unknown
|
// stylelint-disable annotation-no-unknown
|
||||||
|
|
||||||
// Source: https://jsfiddle.net/njhgr40m/
|
// Source: https://jsfiddle.net/njhgr40m/
|
||||||
|
|
||||||
|
|
||||||
.navbar {
|
.navbar {
|
||||||
--bs-navbar-expanded-color: var(--bs-body-bg);
|
--bs-navbar-expanded-color: var(--bs-body-bg);
|
||||||
--bs-navbar-toggler-color: var(--bs-navbar-hover-color);
|
--bs-navbar-toggler-color: var(--bs-navbar-hover-color);
|
||||||
@@ -236,3 +234,61 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// adapted from https://www.codeply.com/p/UsTEwDkzNp#
|
||||||
|
.checkbox {
|
||||||
|
opacity: 0;
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mode-switch {
|
||||||
|
--#{$prefix}mode-switch-width: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mode-switch .label {
|
||||||
|
border-color: var(--#{$prefix}border-color);
|
||||||
|
border-style: solid;
|
||||||
|
border-width: 1px;
|
||||||
|
border-radius: var(--#{$prefix}mode-switch-width);
|
||||||
|
cursor: pointer;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 5px;
|
||||||
|
position: relative;
|
||||||
|
height: calc(1px + var(--#{$prefix}mode-switch-width) / 2);
|
||||||
|
width: var(--#{$prefix}mode-switch-width);
|
||||||
|
transform: scale(0.9);
|
||||||
|
}
|
||||||
|
|
||||||
|
.notransition {
|
||||||
|
-webkit-transition: none !important;
|
||||||
|
-moz-transition: none !important;
|
||||||
|
-o-transition: none !important;
|
||||||
|
transition: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mode-switch .label .ball {
|
||||||
|
background-color: var(--#{$prefix}secondary-bg);
|
||||||
|
border-radius: 50%;
|
||||||
|
position: absolute;
|
||||||
|
top: 2px;
|
||||||
|
left: 2px;
|
||||||
|
height: calc((var(--#{$prefix}mode-switch-width) / 2) - 5px);
|
||||||
|
width: calc((var(--#{$prefix}mode-switch-width) / 2) - 5px);
|
||||||
|
transition: transform 0.2s linear;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mode-switch .checkbox:checked + .label .ball {
|
||||||
|
transform: translateX(calc((var(--#{$prefix}mode-switch-width) / 2) - 1px));
|
||||||
|
}
|
||||||
|
|
||||||
|
.mode-switch .fa-moon {
|
||||||
|
color: $yellow;
|
||||||
|
transform: scale(0.8);
|
||||||
|
}
|
||||||
|
|
||||||
|
.mode-switch .fa-sun {
|
||||||
|
color: var(--#{$prefix}bs-body-color);
|
||||||
|
transform: scale(0.8);
|
||||||
|
}
|
||||||
|
@@ -137,4 +137,4 @@ arguments:
|
|||||||
comment:
|
comment:
|
||||||
Flag to indicate if the image should render a plain image instead of an
|
Flag to indicate if the image should render a plain image instead of an
|
||||||
image set. When set, no transformations are applied to the image.
|
image set. When set, no transformations are applied to the image.
|
||||||
release: v0.24.0-beta5
|
release: v0.24.0
|
||||||
|
@@ -22,6 +22,7 @@
|
|||||||
"i",
|
"i",
|
||||||
"img",
|
"img",
|
||||||
"input",
|
"input",
|
||||||
|
"label",
|
||||||
"li",
|
"li",
|
||||||
"link",
|
"link",
|
||||||
"mark",
|
"mark",
|
||||||
@@ -69,6 +70,7 @@
|
|||||||
"align-self-end",
|
"align-self-end",
|
||||||
"anchor",
|
"anchor",
|
||||||
"badge",
|
"badge",
|
||||||
|
"ball",
|
||||||
"bg-body",
|
"bg-body",
|
||||||
"bg-body-tertiary",
|
"bg-body-tertiary",
|
||||||
"bg-danger",
|
"bg-danger",
|
||||||
@@ -123,6 +125,7 @@
|
|||||||
"carousel-indicators",
|
"carousel-indicators",
|
||||||
"carousel-inner",
|
"carousel-inner",
|
||||||
"carousel-item",
|
"carousel-item",
|
||||||
|
"checkbox",
|
||||||
"chroma",
|
"chroma",
|
||||||
"col",
|
"col",
|
||||||
"col-10",
|
"col-10",
|
||||||
@@ -188,7 +191,6 @@
|
|||||||
"fa-arrow-right",
|
"fa-arrow-right",
|
||||||
"fa-bootstrap",
|
"fa-bootstrap",
|
||||||
"fa-circle-check",
|
"fa-circle-check",
|
||||||
"fa-circle-half-stroke",
|
|
||||||
"fa-code",
|
"fa-code",
|
||||||
"fa-docker",
|
"fa-docker",
|
||||||
"fa-ellipsis",
|
"fa-ellipsis",
|
||||||
@@ -257,6 +259,7 @@
|
|||||||
"justify-content-center",
|
"justify-content-center",
|
||||||
"justify-content-end",
|
"justify-content-end",
|
||||||
"justify-content-start",
|
"justify-content-start",
|
||||||
|
"label",
|
||||||
"lead",
|
"lead",
|
||||||
"leaflet-map",
|
"leaflet-map",
|
||||||
"link-bg-body",
|
"link-bg-body",
|
||||||
@@ -278,6 +281,7 @@
|
|||||||
"me-auto",
|
"me-auto",
|
||||||
"middle-bar",
|
"middle-bar",
|
||||||
"min-vh-100",
|
"min-vh-100",
|
||||||
|
"mode-switch",
|
||||||
"ms-1",
|
"ms-1",
|
||||||
"ms-3",
|
"ms-3",
|
||||||
"ms-auto",
|
"ms-auto",
|
||||||
@@ -309,6 +313,7 @@
|
|||||||
"navbar-contrast",
|
"navbar-contrast",
|
||||||
"navbar-expand-md",
|
"navbar-expand-md",
|
||||||
"navbar-fixed-top",
|
"navbar-fixed-top",
|
||||||
|
"navbar-mode-selector",
|
||||||
"navbar-nav",
|
"navbar-nav",
|
||||||
"navbar-nav-scroll",
|
"navbar-nav-scroll",
|
||||||
"navbar-title",
|
"navbar-title",
|
||||||
@@ -391,7 +396,6 @@
|
|||||||
"sticky-top",
|
"sticky-top",
|
||||||
"stretched-link",
|
"stretched-link",
|
||||||
"svg-inline--fa",
|
"svg-inline--fa",
|
||||||
"switch-mode-collapsed",
|
|
||||||
"syntax-highlight",
|
"syntax-highlight",
|
||||||
"tab-content",
|
"tab-content",
|
||||||
"tab-pane",
|
"tab-pane",
|
||||||
@@ -419,8 +423,6 @@
|
|||||||
"text-sm-start",
|
"text-sm-start",
|
||||||
"text-start",
|
"text-start",
|
||||||
"text-uppercase",
|
"text-uppercase",
|
||||||
"theme-icon",
|
|
||||||
"theme-icon-active",
|
|
||||||
"tickmark",
|
"tickmark",
|
||||||
"timeline",
|
"timeline",
|
||||||
"timeline-bg-dark",
|
"timeline-bg-dark",
|
||||||
@@ -459,8 +461,6 @@
|
|||||||
"w-50"
|
"w-50"
|
||||||
],
|
],
|
||||||
"ids": [
|
"ids": [
|
||||||
"-theme",
|
|
||||||
"-theme-collapsed",
|
|
||||||
"TableOfContents",
|
"TableOfContents",
|
||||||
"abbr",
|
"abbr",
|
||||||
"accordion",
|
"accordion",
|
||||||
@@ -532,6 +532,8 @@
|
|||||||
"nav-0-btn-2",
|
"nav-0-btn-2",
|
||||||
"navbar",
|
"navbar",
|
||||||
"navbar-0-collapse",
|
"navbar-0-collapse",
|
||||||
|
"navbar-mode",
|
||||||
|
"navbar-mode-checkbox",
|
||||||
"navbar-sample-collapse",
|
"navbar-sample-collapse",
|
||||||
"navigation",
|
"navigation",
|
||||||
"notification",
|
"notification",
|
||||||
|
@@ -11,6 +11,7 @@
|
|||||||
"html",
|
"html",
|
||||||
"img",
|
"img",
|
||||||
"input",
|
"input",
|
||||||
|
"label",
|
||||||
"li",
|
"li",
|
||||||
"link",
|
"link",
|
||||||
"meta",
|
"meta",
|
||||||
@@ -31,6 +32,7 @@
|
|||||||
"align-items-center",
|
"align-items-center",
|
||||||
"align-self-center",
|
"align-self-center",
|
||||||
"align-self-end",
|
"align-self-end",
|
||||||
|
"ball",
|
||||||
"bg-body",
|
"bg-body",
|
||||||
"bg-opacity-10",
|
"bg-opacity-10",
|
||||||
"bg-primary",
|
"bg-primary",
|
||||||
@@ -41,6 +43,7 @@
|
|||||||
"btn",
|
"btn",
|
||||||
"btn-close",
|
"btn-close",
|
||||||
"btn-primary",
|
"btn-primary",
|
||||||
|
"checkbox",
|
||||||
"col",
|
"col",
|
||||||
"col-12",
|
"col-12",
|
||||||
"col-6",
|
"col-6",
|
||||||
@@ -57,22 +60,15 @@
|
|||||||
"d-flex",
|
"d-flex",
|
||||||
"d-inline",
|
"d-inline",
|
||||||
"d-md-block",
|
"d-md-block",
|
||||||
"d-md-none",
|
|
||||||
"d-none",
|
"d-none",
|
||||||
"display-1",
|
"display-1",
|
||||||
"display-4",
|
"display-4",
|
||||||
"dropdown",
|
|
||||||
"dropdown-item",
|
|
||||||
"dropdown-menu",
|
|
||||||
"dropdown-menu-end",
|
|
||||||
"dropdown-toggle",
|
|
||||||
"emphasis",
|
"emphasis",
|
||||||
"end-0",
|
"end-0",
|
||||||
"fa",
|
"fa",
|
||||||
"fa-10x",
|
"fa-10x",
|
||||||
"fa-2x",
|
"fa-2x",
|
||||||
"fa-book-open",
|
"fa-book-open",
|
||||||
"fa-circle-half-stroke",
|
|
||||||
"fa-ellipsis",
|
"fa-ellipsis",
|
||||||
"fa-face-frown",
|
"fa-face-frown",
|
||||||
"fa-fw",
|
"fa-fw",
|
||||||
@@ -100,6 +96,7 @@
|
|||||||
"justify-content-center",
|
"justify-content-center",
|
||||||
"justify-content-end",
|
"justify-content-end",
|
||||||
"justify-content-start",
|
"justify-content-start",
|
||||||
|
"label",
|
||||||
"link-bg-footer",
|
"link-bg-footer",
|
||||||
"link-secondary",
|
"link-secondary",
|
||||||
"main-content",
|
"main-content",
|
||||||
@@ -107,6 +104,7 @@
|
|||||||
"me-auto",
|
"me-auto",
|
||||||
"middle-bar",
|
"middle-bar",
|
||||||
"min-vh-100",
|
"min-vh-100",
|
||||||
|
"mode-switch",
|
||||||
"ms-auto",
|
"ms-auto",
|
||||||
"ms-md-3",
|
"ms-md-3",
|
||||||
"mt-3",
|
"mt-3",
|
||||||
@@ -123,6 +121,7 @@
|
|||||||
"navbar-container",
|
"navbar-container",
|
||||||
"navbar-expand-md",
|
"navbar-expand-md",
|
||||||
"navbar-fixed-top",
|
"navbar-fixed-top",
|
||||||
|
"navbar-mode-selector",
|
||||||
"navbar-nav",
|
"navbar-nav",
|
||||||
"navbar-toggler",
|
"navbar-toggler",
|
||||||
"no-js",
|
"no-js",
|
||||||
@@ -156,15 +155,12 @@
|
|||||||
"search-suggestions",
|
"search-suggestions",
|
||||||
"shadow",
|
"shadow",
|
||||||
"svg-inline--fa",
|
"svg-inline--fa",
|
||||||
"switch-mode-collapsed",
|
|
||||||
"text-center",
|
"text-center",
|
||||||
"text-decoration-none",
|
"text-decoration-none",
|
||||||
"text-muted",
|
"text-muted",
|
||||||
"text-secondary",
|
"text-secondary",
|
||||||
"text-sm-start",
|
"text-sm-start",
|
||||||
"text-start",
|
"text-start",
|
||||||
"theme-icon",
|
|
||||||
"theme-icon-active",
|
|
||||||
"toast",
|
"toast",
|
||||||
"toast-body",
|
"toast-body",
|
||||||
"toast-container",
|
"toast-container",
|
||||||
@@ -173,9 +169,9 @@
|
|||||||
"top-bar"
|
"top-bar"
|
||||||
],
|
],
|
||||||
"ids": [
|
"ids": [
|
||||||
"-theme",
|
|
||||||
"-theme-collapsed",
|
|
||||||
"navbar-0-collapse",
|
"navbar-0-collapse",
|
||||||
|
"navbar-mode",
|
||||||
|
"navbar-mode-checkbox",
|
||||||
"toast-container",
|
"toast-container",
|
||||||
"toast-copied-code-message"
|
"toast-copied-code-message"
|
||||||
]
|
]
|
||||||
|
@@ -16,36 +16,16 @@
|
|||||||
|
|
||||||
<!-- Inline partial to render the color mode switcher -->
|
<!-- Inline partial to render the color mode switcher -->
|
||||||
{{- define "partials/navbar-mode.html" -}}
|
{{- define "partials/navbar-mode.html" -}}
|
||||||
{{- $size := .size -}}
|
{{- $id := .id | default "navbar-mode" -}}
|
||||||
{{- $collapsed := .collapsed -}}
|
|
||||||
{{- $id := .id -}}
|
|
||||||
|
|
||||||
<li class="nav-item dropdown {{ if $collapsed }}d-{{ $size }}-none{{ else }}d-none d-{{ $size }}-block{{ end }}">
|
<div class="d-flex mode-switch align-items-center" id="{{ $id }}">
|
||||||
<a class="nav-link dropdown-toggle" href="#!" role="button" data-bs-toggle="dropdown" aria-label="{{ T "colorMode" }}" aria-expanded="false" id="{{ $id }}-theme{{ if $collapsed }}-collapsed{{ end }}">
|
<input type="checkbox" class="checkbox navbar-mode-selector" id="{{ $id }}-checkbox" />
|
||||||
<span class="theme-icon-active">{{- partial "assets/icon.html" (dict "icon" "fas sun fa-fw") }}</span>{{ if $collapsed }} {{ T "colorMode" }}{{ end }}
|
<label class="label" for="{{ $id }}-checkbox">
|
||||||
<span class="d-md-none"></span>
|
{{- partial "assets/icon.html" (dict "icon" "fas sun fa-fw" "spacing" false) }}
|
||||||
</a>
|
{{- partial "assets/icon.html" (dict "icon" "fas moon fa-fw" "spacing" false) }}
|
||||||
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="{{ $id }}-theme{{ if $collapsed }}-collapsed{{ end }}">
|
<div class="ball"></div>
|
||||||
<li>
|
</label>
|
||||||
<a class="dropdown-item{{ if $collapsed }} switch-mode-collapsed{{ end }}" data-bs-theme-value="light" href="#!">
|
</div>
|
||||||
<span class="theme-icon">{{- partial "assets/icon.html" (dict "icon" "fas sun fa-fw" "spacing" false) }}</span>
|
|
||||||
{{- T "colorLight" }}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a class="dropdown-item{{ if $collapsed }} switch-mode-collapsed{{ end }}" data-bs-theme-value="dark" href="#!">
|
|
||||||
<span class="theme-icon">{{- partial "assets/icon.html" (dict "icon" "fas moon fa-fw" "spacing" false) }}</span>
|
|
||||||
{{- T "colorDark" }}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a class="dropdown-item{{ if $collapsed }} switch-mode-collapsed{{ end }}" data-bs-theme-value="auto" href="#!">
|
|
||||||
<span class="theme-icon">{{- partial "assets/icon.html" (dict "icon" "fas circle-half-stroke fa-fw" "spacing" false) }}</span>
|
|
||||||
{{- T "colorAuto" }}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
<!-- Inline partial to render the version switcher -->
|
<!-- Inline partial to render the version switcher -->
|
||||||
@@ -300,7 +280,6 @@
|
|||||||
<!-- Insert color mode switcher -->
|
<!-- Insert color mode switcher -->
|
||||||
{{- if $enableDarkMode -}}
|
{{- if $enableDarkMode -}}
|
||||||
{{- partial "partials/navbar-mode.html" (dict "size" $size "collapsed" true "id" .id) -}}
|
{{- partial "partials/navbar-mode.html" (dict "size" $size "collapsed" true "id" .id) -}}
|
||||||
{{- partial "partials/navbar-mode.html" (dict "size" $size "collapsed" false "id" .id) -}}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
<!-- Insert modal search button -->
|
<!-- Insert modal search button -->
|
||||||
|
343
package-lock.json
generated
343
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
14
package.json
14
package.json
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@gethinode/hinode",
|
"name": "@gethinode/hinode",
|
||||||
"version": "0.24.0-beta10",
|
"version": "0.24.0",
|
||||||
"description": "Hinode is a clean documentation and blog theme for Hugo, an open-source static site generator",
|
"description": "Hinode is a clean documentation and blog theme for Hugo, an open-source static site generator",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"hugo",
|
"hugo",
|
||||||
@@ -66,24 +66,26 @@
|
|||||||
"url": "https://github.com/gethinode/hinode/issues"
|
"url": "https://github.com/gethinode/hinode/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://gethinode.com",
|
"homepage": "https://gethinode.com",
|
||||||
"devDependencies": {
|
"dependencies": {
|
||||||
"@fullhuman/postcss-purgecss": "^6.0.0",
|
"@fullhuman/postcss-purgecss": "^6.0.0",
|
||||||
"@gethinode/netlify-plugin-dartsass": "^0.3.0",
|
|
||||||
"@netlify/plugin-lighthouse": "^6.0.0",
|
|
||||||
"autoprefixer": "^10.4.19",
|
"autoprefixer": "^10.4.19",
|
||||||
"cssnano": "^7.0.1",
|
"cssnano": "^7.0.1",
|
||||||
"cssnano-preset-advanced": "^7.0.1",
|
"cssnano-preset-advanced": "^7.0.1",
|
||||||
|
"hugo-bin": "0.123.2",
|
||||||
|
"purgecss-whitelister": "^2.4.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@gethinode/netlify-plugin-dartsass": "^0.3.0",
|
||||||
|
"@netlify/plugin-lighthouse": "^6.0.0",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-config-standard": "^17.1.0",
|
"eslint-config-standard": "^17.1.0",
|
||||||
"eslint-plugin-import": "^2.29.1",
|
"eslint-plugin-import": "^2.29.1",
|
||||||
"eslint-plugin-n": "^16.6.2",
|
"eslint-plugin-n": "^16.6.2",
|
||||||
"eslint-plugin-promise": "^6.2.0",
|
"eslint-plugin-promise": "^6.2.0",
|
||||||
"hugo-bin": "0.123.2",
|
|
||||||
"markdownlint-cli2": "^0.13.0",
|
"markdownlint-cli2": "^0.13.0",
|
||||||
"netlify-plugin-hugo-cache-resources": "^0.2.1",
|
"netlify-plugin-hugo-cache-resources": "^0.2.1",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"postcss-cli": "^11.0.0",
|
"postcss-cli": "^11.0.0",
|
||||||
"purgecss-whitelister": "^2.4.0",
|
|
||||||
"replace-in-files-cli": "^2.2.0",
|
"replace-in-files-cli": "^2.2.0",
|
||||||
"rimraf": "^5.0.7",
|
"rimraf": "^5.0.7",
|
||||||
"shx": "^0.3.4",
|
"shx": "^0.3.4",
|
||||||
|
Reference in New Issue
Block a user