mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-13 13:03:13 +00:00
Compare commits
72 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
56eaa9d90b | ||
![]() |
492dbbec24 | ||
![]() |
d2fc5e3433 | ||
![]() |
b5cc3f6d84 | ||
![]() |
e1e1041c1b | ||
![]() |
e1cac645a7 | ||
![]() |
d23d533575 | ||
![]() |
d447a4a65a | ||
![]() |
3a466277e3 | ||
![]() |
2b09ceef93 | ||
![]() |
ee30409257 | ||
![]() |
70583bdb33 | ||
![]() |
8e1a299a72 | ||
![]() |
e20aba4907 | ||
![]() |
1aedf22923 | ||
![]() |
e77671ffef | ||
![]() |
433f8ef60d | ||
![]() |
acb261ba69 | ||
![]() |
b04b5a136f | ||
![]() |
953f4ba908 | ||
![]() |
90e65b5614 | ||
![]() |
944437ea4c | ||
![]() |
5d0593bf65 | ||
![]() |
4935e627f6 | ||
![]() |
f7d535d025 | ||
![]() |
67280d6ad0 | ||
![]() |
e21332d016 | ||
![]() |
f306bc2b22 | ||
![]() |
475745cc6c | ||
![]() |
90c43c84e5 | ||
![]() |
a81b672731 | ||
![]() |
b86ec388b6 | ||
![]() |
5dd0fce394 | ||
![]() |
a66dc2f91c | ||
![]() |
0072292522 | ||
![]() |
d3f534629d | ||
![]() |
1407e1ba0d | ||
![]() |
b9bce4800c | ||
![]() |
a5a424b6ed | ||
![]() |
9c8b21233c | ||
![]() |
b564696728 | ||
![]() |
c669c82324 | ||
![]() |
8014f4d636 | ||
![]() |
7f80f52294 | ||
![]() |
485db3808f | ||
![]() |
7b10339aea | ||
![]() |
ed5c32a7a4 | ||
![]() |
c42a379ca0 | ||
![]() |
22c17c3123 | ||
![]() |
e4f82c1304 | ||
![]() |
07fa46b9a6 | ||
![]() |
809ce0d4ad | ||
![]() |
deb97e0e29 | ||
![]() |
14a89a2ff9 | ||
![]() |
81b40d145d | ||
![]() |
1dfce3d445 | ||
![]() |
145b2c29d1 | ||
![]() |
77fe046bea | ||
![]() |
63250c6ac9 | ||
![]() |
54e0f720bd | ||
![]() |
423670f95f | ||
![]() |
78560aa07a | ||
![]() |
1c6ff7ac55 | ||
![]() |
eb9b7ea8f0 | ||
![]() |
5335e3d607 | ||
![]() |
3fc51e6158 | ||
![]() |
4a20e8beef | ||
![]() |
163ac52332 | ||
![]() |
176c5447a8 | ||
![]() |
1922fc825e | ||
![]() |
82f3837db1 | ||
![]() |
69cf1ccf6c |
@@ -1,3 +1,4 @@
|
|||||||
|
assets/js/critical/languageSelector.js
|
||||||
assets/js/critical/color.js
|
assets/js/critical/color.js
|
||||||
assets/js/analytics.js
|
assets/js/analytics.js
|
||||||
assets/js/flexsearch.js
|
assets/js/flexsearch.js
|
||||||
|
@@ -61,32 +61,16 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
window.addEventListener('DOMContentLoaded', () => {
|
window.addEventListener('DOMContentLoaded', () => {
|
||||||
setTheme(getTheme())
|
|
||||||
const light = (document.documentElement.getAttribute('data-bs-theme') === 'light')
|
|
||||||
|
|
||||||
document.querySelectorAll('.ball').forEach(ball => {
|
|
||||||
ball.classList.add('notransition');
|
|
||||||
})
|
|
||||||
|
|
||||||
document.querySelectorAll('.navbar-mode-selector').forEach(chk => {
|
document.querySelectorAll('.navbar-mode-selector').forEach(chk => {
|
||||||
chk.checked = light
|
|
||||||
chk.addEventListener('change', function () {
|
chk.addEventListener('change', function () {
|
||||||
|
document.documentElement.setAttribute('data-bs-theme-animate', 'true')
|
||||||
toggleTheme()
|
toggleTheme()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
document.querySelectorAll('.ball').forEach(ball => {
|
|
||||||
ball.offsetHeight; // flush css changes
|
|
||||||
ball.classList.remove('notransition');
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
|
|
||||||
window.addEventListener('load', () => {
|
// initialize theme directly when script is invoked
|
||||||
const light = (document.documentElement.getAttribute('data-bs-theme') === 'light')
|
setTheme(getTheme())
|
||||||
document.querySelectorAll('.navbar-mode-selector').forEach(chk => {
|
|
||||||
chk.checked = light
|
|
||||||
})
|
|
||||||
});
|
|
||||||
})()
|
})()
|
||||||
|
|
||||||
{{- end -}}
|
{{- end -}}
|
65
assets/js/critical/languageSelector.js
Normal file
65
assets/js/critical/languageSelector.js
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
{{- if site.Params.main.enableLanguageSelectionStorage -}}
|
||||||
|
|
||||||
|
(() => {
|
||||||
|
'use strict'
|
||||||
|
|
||||||
|
// Function to get the selected language from localStorage
|
||||||
|
function getLanguage () {
|
||||||
|
return localStorage.getItem('selectedLanguage')
|
||||||
|
}
|
||||||
|
|
||||||
|
// Function to set the selected language in localStorage
|
||||||
|
function setLanguage (language) {
|
||||||
|
localStorage.setItem('selectedLanguage', language)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Function to apply the selected language to the website
|
||||||
|
function applyLanguage (language, href) {
|
||||||
|
if (document.documentElement.lang !== language) {
|
||||||
|
if (href) {
|
||||||
|
if (window.location.pathname !== href) {
|
||||||
|
window.location.href = href
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
window.location.href = '/' + language + '/'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Event listener for language selection
|
||||||
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
|
const storedLanguage = getLanguage()
|
||||||
|
const languageItems = document.querySelectorAll('#language-selector .dropdown-item')
|
||||||
|
|
||||||
|
if (languageItems.length > 0) {
|
||||||
|
// Redirect if the stored language differs from the active language
|
||||||
|
if ((storedLanguage) && (document.documentElement.lang !== storedLanguage)) {
|
||||||
|
languageItems.forEach(item => {
|
||||||
|
if (item.getAttribute('hreflang') === storedLanguage) {
|
||||||
|
applyLanguage(storedLanguage, item.getAttribute('href'))
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update the stored language when the user selects a new one
|
||||||
|
languageItems.forEach(item => {
|
||||||
|
item.addEventListener('click', () => {
|
||||||
|
const selectedLanguage = item.getAttribute('hreflang')
|
||||||
|
|
||||||
|
if (selectedLanguage) {
|
||||||
|
setLanguage(selectedLanguage)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// Redirect to the localized homepage
|
||||||
|
const defaultLang = '{{ site.LanguageCode | default site.Language.Lang }}'
|
||||||
|
let language = storedLanguage ? storedLanguage : defaultLang
|
||||||
|
window.location.href = '/' + language + '/'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})()
|
||||||
|
{{- end -}}
|
||||||
|
/* eslint-enable */
|
@@ -11,7 +11,10 @@ function updateNavbar () {
|
|||||||
} else {
|
} else {
|
||||||
navbar.classList.remove('nav-active')
|
navbar.classList.remove('nav-active')
|
||||||
const defaultTheme = navbar.getAttribute('data-bs-overlay')
|
const defaultTheme = navbar.getAttribute('data-bs-overlay')
|
||||||
navbar.setAttribute('data-bs-theme', defaultTheme)
|
|
||||||
|
if (defaultTheme) {
|
||||||
|
navbar.setAttribute('data-bs-theme', defaultTheme)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
@if $enable-dark-mode {
|
@if $enable-dark-mode {
|
||||||
body {
|
[data-bs-theme-animate="true"] body {
|
||||||
transition: background-color 0.5s, color 0.5s;
|
transition: background-color 0.5s, color 0.5s;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -4,6 +4,51 @@
|
|||||||
padding: 1rem 1.5rem;
|
padding: 1rem 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
blockquote {
|
.blockquote-alert {
|
||||||
@extend .blockquote;
|
--bs-blockquote-alert-color: $secondary;
|
||||||
|
|
||||||
|
border-left: 0.3rem solid;
|
||||||
|
border-color: var(--bs-blockquote-alert-color);
|
||||||
|
padding: .5rem 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.blockquote-alert > p:nth-of-type(2) {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.blockquote-alert-heading {
|
||||||
|
font-weight: bold;
|
||||||
|
color: var(--bs-blockquote-alert-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
.blockquote-alert-caution {
|
||||||
|
--bs-blockquote-alert-color: var(--#{$prefix}danger);
|
||||||
|
}
|
||||||
|
|
||||||
|
.blockquote-alert-important {
|
||||||
|
--bs-blockquote-alert-color: var(--#{$prefix}primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.blockquote-alert-note {
|
||||||
|
--bs-blockquote-alert-color: var(--#{$prefix}info);
|
||||||
|
}
|
||||||
|
|
||||||
|
.blockquote-alert-tip {
|
||||||
|
--bs-blockquote-alert-color: var(--#{$prefix}success);
|
||||||
|
}
|
||||||
|
|
||||||
|
.blockquote-alert-warning {
|
||||||
|
--bs-blockquote-alert-color: var(--#{$prefix}warning);
|
||||||
|
}
|
||||||
|
|
||||||
|
.blockquote-alert a.btn-link {
|
||||||
|
--bs-link-color: var(--bs-blockquote-alert-color);
|
||||||
|
--bs-link-hover-color: color-mix(in srgb, var(--bs-link-color), black 20%);
|
||||||
|
|
||||||
|
color: var(--bs-link-color) !important;
|
||||||
|
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
color: var(--bs-link-hover-color) !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -44,4 +44,7 @@ a.btn {
|
|||||||
|
|
||||||
.btn-link {
|
.btn-link {
|
||||||
--bs-btn-padding-x: 0;
|
--bs-btn-padding-x: 0;
|
||||||
|
--bs-btn-padding-y: 0;
|
||||||
|
|
||||||
|
margin: 0 !important;
|
||||||
}
|
}
|
||||||
|
@@ -1,11 +1,81 @@
|
|||||||
// stylelint-disable annotation-no-unknown
|
// stylelint-disable annotation-no-unknown
|
||||||
|
|
||||||
|
// 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}border-color);
|
||||||
|
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));
|
||||||
|
}
|
||||||
|
|
||||||
|
@if $enable-dark-mode {
|
||||||
|
[data-bs-theme="light"] .mode-switch .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);
|
||||||
|
}
|
||||||
|
|
||||||
// Source: https://jsfiddle.net/njhgr40m/
|
// Source: https://jsfiddle.net/njhgr40m/
|
||||||
|
|
||||||
|
@if $enable-dark-mode {
|
||||||
|
[data-bs-theme-animate="true"] .navbar {
|
||||||
|
transition: 0.5s ease-in-out;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.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);
|
||||||
|
|
||||||
transition: 0.5s ease-in-out;
|
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
|
|
||||||
@each $state, $val in $theme-colors {
|
@each $state, $val in $theme-colors {
|
||||||
@@ -22,6 +92,15 @@
|
|||||||
margin: 0 .15rem;
|
margin: 0 .15rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.navbar-title {
|
||||||
|
display: inline-block;
|
||||||
|
white-space: normal;
|
||||||
|
text-align: center !important;
|
||||||
|
vertical-align: middle;
|
||||||
|
padding: 0 $spacer;
|
||||||
|
width: 100% !important;
|
||||||
|
}
|
||||||
|
|
||||||
.navbar-contrast .nav-link.active, .navbar-contrast .nav-link.show, .navbar-contrast .nav-link:hover {
|
.navbar-contrast .nav-link.active, .navbar-contrast .nav-link.show, .navbar-contrast .nav-link:hover {
|
||||||
border-bottom: solid 1px var(--bs-navbar-hover-color);
|
border-bottom: solid 1px var(--bs-navbar-hover-color);
|
||||||
margin-bottom: -1px;
|
margin-bottom: -1px;
|
||||||
@@ -33,6 +112,16 @@
|
|||||||
--bs-navbar-disabled-color: white !important;
|
--bs-navbar-disabled-color: white !important;
|
||||||
--bs-navbar-active-color: white !important;
|
--bs-navbar-active-color: white !important;
|
||||||
--bs-navbar-toggler-color: white;
|
--bs-navbar-toggler-color: white;
|
||||||
|
|
||||||
|
.navbar-title, .mode-switch {
|
||||||
|
--#{$prefix}border-color: white;
|
||||||
|
|
||||||
|
color: white !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mode-switch .fa-moon {
|
||||||
|
color: $white;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-expanded {
|
.navbar-expanded {
|
||||||
@@ -112,7 +201,7 @@
|
|||||||
background-color: var(--bs-navbar-toggler-color);
|
background-color: var(--bs-navbar-toggler-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.emphasis, .emphasis-dark, .emphasis-light {
|
.emphasis {
|
||||||
background-color: var(--bs-navbar-toggler-color);
|
background-color: var(--bs-navbar-toggler-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -133,15 +222,6 @@
|
|||||||
--navbar-offset: #{$navbar-offset-xs};
|
--navbar-offset: #{$navbar-offset-xs};
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-title {
|
|
||||||
display: inline-block;
|
|
||||||
white-space: normal;
|
|
||||||
text-align: center !important;
|
|
||||||
vertical-align: middle;
|
|
||||||
padding: 0 $spacer;
|
|
||||||
width: 100% !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar-container {
|
.navbar-container {
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
}
|
}
|
||||||
@@ -235,60 +315,3 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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);
|
|
||||||
}
|
|
||||||
|
@@ -95,7 +95,7 @@ home = ["HTML", "RSS", "REDIR"]
|
|||||||
[module]
|
[module]
|
||||||
[module.hugoVersion]
|
[module.hugoVersion]
|
||||||
extended = true
|
extended = true
|
||||||
min = "0.120.0"
|
min = "0.132.0"
|
||||||
max = ""
|
max = ""
|
||||||
[[module.mounts]]
|
[[module.mounts]]
|
||||||
source = "archetypes"
|
source = "archetypes"
|
||||||
|
@@ -24,9 +24,15 @@ defaultMarkdownHandler = "goldmark"
|
|||||||
table = true
|
table = true
|
||||||
taskList = true
|
taskList = true
|
||||||
typographer = true
|
typographer = true
|
||||||
|
[goldmark.extensions.passthrough]
|
||||||
|
enable = true
|
||||||
|
[goldmark.extensions.passthrough.delimiters]
|
||||||
|
block = [['\[', '\]'], ['$$', '$$']]
|
||||||
|
inline = [['\(', '\)'], ['$', '$']]
|
||||||
[goldmark.parser]
|
[goldmark.parser]
|
||||||
autoHeadingID = true
|
autoHeadingID = true
|
||||||
autoHeadingIDType = 'github'
|
autoHeadingIDType = 'github'
|
||||||
|
wrapStandAloneImageWithinParagraph = false
|
||||||
[goldmark.parser.attribute]
|
[goldmark.parser.attribute]
|
||||||
block = true
|
block = true
|
||||||
[goldmark.renderer]
|
[goldmark.renderer]
|
||||||
|
@@ -3,6 +3,7 @@
|
|||||||
separator = "-"
|
separator = "-"
|
||||||
description = "Hinode is a clean documentation and blog theme for your Hugo site based on Bootstrap 5."
|
description = "Hinode is a clean documentation and blog theme for your Hugo site based on Bootstrap 5."
|
||||||
enableDarkMode = true
|
enableDarkMode = true
|
||||||
|
enableLanguageSelectionStorage = false
|
||||||
modes = ["light", "dark"]
|
modes = ["light", "dark"]
|
||||||
canonifyAssetsURLs = false
|
canonifyAssetsURLs = false
|
||||||
endorse = true
|
endorse = true
|
||||||
|
@@ -36,6 +36,7 @@ arguments:
|
|||||||
page:
|
page:
|
||||||
type:
|
type:
|
||||||
- '*hugolib.pageState'
|
- '*hugolib.pageState'
|
||||||
|
- '*hugolib.pageForRenderHooks'
|
||||||
- '*hugolib.pageForShortcode'
|
- '*hugolib.pageForShortcode'
|
||||||
optional: true
|
optional: true
|
||||||
comment: Page context, used to match page resources.
|
comment: Page context, used to match page resources.
|
||||||
@@ -109,7 +110,9 @@ arguments:
|
|||||||
image set.
|
image set.
|
||||||
group: partial
|
group: partial
|
||||||
title:
|
title:
|
||||||
type: string
|
type:
|
||||||
|
- string
|
||||||
|
- 'hstring.RenderedString'
|
||||||
optional: true
|
optional: true
|
||||||
comment: Alternate text of the image.
|
comment: Alternate text of the image.
|
||||||
caption:
|
caption:
|
||||||
|
@@ -10,6 +10,7 @@ arguments:
|
|||||||
page:
|
page:
|
||||||
type:
|
type:
|
||||||
- '*hugolib.pageState'
|
- '*hugolib.pageState'
|
||||||
|
- '*hugolib.pageForRenderHooks'
|
||||||
- '*hugolib.pageForShortcode'
|
- '*hugolib.pageForShortcode'
|
||||||
optional: false
|
optional: false
|
||||||
group: partial
|
group: partial
|
||||||
@@ -70,11 +71,17 @@ arguments:
|
|||||||
type:
|
type:
|
||||||
- string
|
- string
|
||||||
- template.HTML
|
- template.HTML
|
||||||
|
- hstring.RenderedString
|
||||||
optional: true
|
optional: true
|
||||||
group: partial
|
group: partial
|
||||||
|
comment: Link description.
|
||||||
|
title:
|
||||||
|
type: string
|
||||||
|
optional: true
|
||||||
comment: Link title.
|
comment: Link title.
|
||||||
|
release: v0.26.0
|
||||||
body:
|
body:
|
||||||
type: string
|
type: string
|
||||||
optional: true
|
optional: true
|
||||||
group: shortcode
|
group: shortcode
|
||||||
comment: Link title.
|
comment: Link description.
|
||||||
|
@@ -38,3 +38,12 @@ arguments:
|
|||||||
optional: true
|
optional: true
|
||||||
default: false
|
default: false
|
||||||
comment: Flag to render the release button inline.
|
comment: Flag to render the release button inline.
|
||||||
|
type:
|
||||||
|
type: select
|
||||||
|
optional: true
|
||||||
|
default: button
|
||||||
|
comment: Type of the element.
|
||||||
|
options:
|
||||||
|
values:
|
||||||
|
- link
|
||||||
|
- button
|
||||||
|
@@ -30,5 +30,6 @@ arguments:
|
|||||||
type: bool
|
type: bool
|
||||||
optional: true
|
optional: true
|
||||||
default: false
|
default: false
|
||||||
|
release: v0.25.2
|
||||||
comment: >-
|
comment: >-
|
||||||
Trigger to retrieve the title from the video metadata.
|
Trigger to retrieve the title from the video metadata.
|
||||||
|
3
exampleSite/.gitignore
vendored
3
exampleSite/.gitignore
vendored
@@ -1,4 +1,5 @@
|
|||||||
/_vendor
|
_vendor/
|
||||||
|
exampleSite/public/
|
||||||
public/
|
public/
|
||||||
resources/
|
resources/
|
||||||
|
|
||||||
|
@@ -24,9 +24,15 @@ defaultMarkdownHandler = "goldmark"
|
|||||||
table = true
|
table = true
|
||||||
taskList = true
|
taskList = true
|
||||||
typographer = true
|
typographer = true
|
||||||
|
[goldmark.extensions.passthrough]
|
||||||
|
enable = true
|
||||||
|
[goldmark.extensions.passthrough.delimiters]
|
||||||
|
block = [['\[', '\]'], ['$$', '$$']]
|
||||||
|
inline = [['\(', '\)'], ['$', '$']]
|
||||||
[goldmark.parser]
|
[goldmark.parser]
|
||||||
autoHeadingID = true
|
autoHeadingID = true
|
||||||
autoHeadingIDType = 'github'
|
autoHeadingIDType = 'github'
|
||||||
|
wrapStandAloneImageWithinParagraph = false
|
||||||
[goldmark.parser.attribute]
|
[goldmark.parser.attribute]
|
||||||
block = true
|
block = true
|
||||||
[goldmark.renderer]
|
[goldmark.renderer]
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
separator = "-"
|
separator = "-"
|
||||||
description = "Hinode is a clean documentation and blog theme for your Hugo site based on Bootstrap 5."
|
description = "Hinode is a clean documentation and blog theme for your Hugo site based on Bootstrap 5."
|
||||||
enableDarkMode = true
|
enableDarkMode = true
|
||||||
|
enableLanguageSelectionStorage = true
|
||||||
modes = ["light", "dark"]
|
modes = ["light", "dark"]
|
||||||
canonifyAssetsURLs = false
|
canonifyAssetsURLs = false
|
||||||
footerBelowFold = false
|
footerBelowFold = false
|
||||||
|
@@ -27,6 +27,6 @@ Additional features include:
|
|||||||
* Reusable Bootstrap components through configurable shortcodes and partials
|
* Reusable Bootstrap components through configurable shortcodes and partials
|
||||||
* Versioned documentation, including sidebar navigation and version switcher
|
* Versioned documentation, including sidebar navigation and version switcher
|
||||||
* Responsive image handling for multiple screen sizes and resolutions
|
* Responsive image handling for multiple screen sizes and resolutions
|
||||||
* Optimized search results, scoring 100 points for SEO on [PageSpeed Insights]({{< param "links.pagespeed" >}})
|
* Optimized search results, scoring 100 points for SEO on [PageSpeed Insights]({{% param "links.pagespeed" %}})
|
||||||
* Secure by default, scoring A+ on [Mozilla Observatory test]({{< param "links.observatory" >}})
|
* Secure by default, scoring A+ on [Mozilla Observatory test]({{% param "links.observatory" %}})
|
||||||
{.tickmark}
|
{.tickmark}
|
||||||
|
@@ -12,7 +12,7 @@ thumbnail:
|
|||||||
originURL: https://unsplash.com/photos/QLPWQvHvmII
|
originURL: https://unsplash.com/photos/QLPWQvHvmII
|
||||||
---
|
---
|
||||||
|
|
||||||
Hinode provides several shortcodes that wrap common Bootstrap components. Refer to the [official documentation]({{< param "links.hinode_docs" >}}) for more details.
|
Hinode provides several shortcodes that wrap common Bootstrap components. Refer to the [official documentation]({{% param "links.hinode_docs" %}}) for more details.
|
||||||
|
|
||||||
## Abbr
|
## Abbr
|
||||||
|
|
||||||
@@ -121,7 +121,7 @@ As an example, the following shortcode displays a group of three buttons.
|
|||||||
|
|
||||||
## Card
|
## Card
|
||||||
|
|
||||||
As an example, the following shortcode displays a stacked card that links to the [about]({{< ref "about" >}}) page. It includes a custom header.
|
As an example, the following shortcode displays a stacked card that links to the [about]({{% ref "about" %}}) page. It includes a custom header.
|
||||||
|
|
||||||
<!-- markdownlint-disable MD037 -->
|
<!-- markdownlint-disable MD037 -->
|
||||||
{{< example lang="hugo" >}}
|
{{< example lang="hugo" >}}
|
||||||
@@ -264,6 +264,13 @@ As an example, the following shortcode displays an image with rounded corners an
|
|||||||
{{< /example >}}
|
{{< /example >}}
|
||||||
<!-- markdownlint-enable MD037 -->
|
<!-- markdownlint-enable MD037 -->
|
||||||
|
|
||||||
|
The same image, but then using Markdown syntax:
|
||||||
|
|
||||||
|
{{< example lang="hugo" >}}
|
||||||
|

|
||||||
|
{class="rounded col-md-6" ratio="4x3" portrait=true wrapper="text-center"}
|
||||||
|
{{< /example >}}
|
||||||
|
|
||||||
As an example, the following shortcode displays a regular vector image.
|
As an example, the following shortcode displays a regular vector image.
|
||||||
|
|
||||||
<!-- markdownlint-disable MD037 -->
|
<!-- markdownlint-disable MD037 -->
|
||||||
|
@@ -10,10 +10,10 @@ thumbnail:
|
|||||||
authorURL: https://unsplash.com/@ryoji__iwata
|
authorURL: https://unsplash.com/@ryoji__iwata
|
||||||
origin: Unsplash
|
origin: Unsplash
|
||||||
originURL: https://unsplash.com/photos/5siQcvSxCP8
|
originURL: https://unsplash.com/photos/5siQcvSxCP8
|
||||||
modules: ["katex", "leaflet", "lottie", "simple-datatables"]
|
modules: ["leaflet", "lottie", "simple-datatables"]
|
||||||
---
|
---
|
||||||
|
|
||||||
Hinode provides several shortcodes on top of the common [Bootstrap elements]({{< relref "bootstrap-elements" >}}). Refer to the [official documentation]({{< param "links.hinode_docs" >}}) for more details.
|
Hinode provides several shortcodes on top of the common [Bootstrap elements]({{% relref "bootstrap-elements" %}}). Refer to the [official documentation]({{% param "links.hinode_docs" %}}) for more details.
|
||||||
|
|
||||||
## Animation
|
## Animation
|
||||||
|
|
||||||
@@ -70,7 +70,7 @@ As an example, the following shortcode displays a responsive table that uses adv
|
|||||||
|
|
||||||
## Formula (KaTeX)
|
## Formula (KaTeX)
|
||||||
|
|
||||||
As an example, the following markdown renders two formulas using the KaTeX typesetting library.
|
As an example, the following markdown renders two formulas using server-side math rendering using KaTeX.
|
||||||
|
|
||||||
{{< example lang="markdown" >}}
|
{{< example lang="markdown" >}}
|
||||||
This is an inline $-b \pm \sqrt{b^2 - 4ac} \over 2a$ formula
|
This is an inline $-b \pm \sqrt{b^2 - 4ac} \over 2a$ formula
|
||||||
|
@@ -28,6 +28,6 @@ Les fonctionnalités supplémentaires incluent:
|
|||||||
- Composants bootstrap réutilisables à travers des codes et partiels configurables
|
- Composants bootstrap réutilisables à travers des codes et partiels configurables
|
||||||
- Documentation versionnée, incluant une navigation latérale et un sélecteur de version.
|
- Documentation versionnée, incluant une navigation latérale et un sélecteur de version.
|
||||||
- Gestion d'images adaptatives pour plusieurs tailles d'écran et résolutions.
|
- Gestion d'images adaptatives pour plusieurs tailles d'écran et résolutions.
|
||||||
- Résultats de recherche optimisés, obtenant un score de 100 points pour le référencement (SEO) sur [PageSpeed Insights]({{< param "links.pagespeed" >}}).
|
- Résultats de recherche optimisés, obtenant un score de 100 points pour le référencement (SEO) sur [PageSpeed Insights]({{% param "links.pagespeed" %}}).
|
||||||
- Sécurisé par défaut, obtenant un score A+ au test [Mozilla Observatory]({{< param "links.observatory" >}})
|
- Sécurisé par défaut, obtenant un score A+ au test [Mozilla Observatory]({{% param "links.observatory" %}})
|
||||||
{.tickmark}
|
{.tickmark}
|
||||||
|
@@ -13,7 +13,7 @@ thumbnail:
|
|||||||
originURL: https://unsplash.com/photos/QLPWQvHvmII
|
originURL: https://unsplash.com/photos/QLPWQvHvmII
|
||||||
---
|
---
|
||||||
|
|
||||||
Hinode propose plusieurs shortcodes qui enveloppent des composants Bootstrap courants. Consultez la [documentation officielle]({{< param "links.hinode_docs" >}}) pour plus de détails.
|
Hinode propose plusieurs shortcodes qui enveloppent des composants Bootstrap courants. Consultez la [documentation officielle]({{% param "links.hinode_docs" %}}) pour plus de détails.
|
||||||
|
|
||||||
## Abbr
|
## Abbr
|
||||||
|
|
||||||
@@ -121,7 +121,7 @@ En-tête 6 {{</* badge title="Nouveau" */>}}
|
|||||||
|
|
||||||
## Carte
|
## Carte
|
||||||
|
|
||||||
À titre d'exemple, le shortcode suivant affiche une carte empilée qui renvoie à la page [à propos]({{< ref "about" >}}). Elle inclut un en-tête personnalisé.
|
À titre d'exemple, le shortcode suivant affiche une carte empilée qui renvoie à la page [à propos]({{% ref "about" %}}). Elle inclut un en-tête personnalisé.
|
||||||
|
|
||||||
<!-- markdownlint-disable MD037 -->
|
<!-- markdownlint-disable MD037 -->
|
||||||
{{< example lang="hugo" >}}
|
{{< example lang="hugo" >}}
|
||||||
|
@@ -14,7 +14,7 @@ thumbnail:
|
|||||||
modules: ["katex", "leaflet", "lottie"]
|
modules: ["katex", "leaflet", "lottie"]
|
||||||
---
|
---
|
||||||
|
|
||||||
Hinode propose plusieurs shortcodes en plus des [éléments Bootstrap]({{< relref "bootstrap-elements" >}}) courants. Consultez la [documentation officielle]({{< param "links.hinode_docs" >}}) pour plus de détails.
|
Hinode propose plusieurs shortcodes en plus des [éléments Bootstrap]({{% relref "bootstrap-elements" %}}) courants. Consultez la [documentation officielle]({{% param "links.hinode_docs" %}}) pour plus de détails.
|
||||||
|
|
||||||
## Animation
|
## Animation
|
||||||
|
|
||||||
|
@@ -29,6 +29,6 @@ Overige functies:
|
|||||||
* Herbruikbare Bootstrap componenten via shortcodes en partials
|
* Herbruikbare Bootstrap componenten via shortcodes en partials
|
||||||
* Versiebeheer van documentatiepagina's, inclusief secundaire navigatie en selectie van versies
|
* Versiebeheer van documentatiepagina's, inclusief secundaire navigatie en selectie van versies
|
||||||
* Optimalisering van foto's voor meerdere schermafmetingen en resoluties
|
* Optimalisering van foto's voor meerdere schermafmetingen en resoluties
|
||||||
* Optimale zoekresultaten, met 100 punten voor SEO volgens [PageSpeed Insights]({{< param "links.pagespeed" >}})
|
* Optimale zoekresultaten, met 100 punten voor SEO volgens [PageSpeed Insights]({{% param "links.pagespeed" %}})
|
||||||
* Veilige communicatie, met een score van A+ volgens [Mozilla Observatory]({{< param "links.observatory" >}})
|
* Veilige communicatie, met een score van A+ volgens [Mozilla Observatory]({{% param "links.observatory" %}})
|
||||||
{.tickmark}
|
{.tickmark}
|
||||||
|
@@ -3,8 +3,8 @@
|
|||||||
"tags": [
|
"tags": [
|
||||||
"a",
|
"a",
|
||||||
"abbr",
|
"abbr",
|
||||||
|
"annotation",
|
||||||
"body",
|
"body",
|
||||||
"br",
|
|
||||||
"button",
|
"button",
|
||||||
"code",
|
"code",
|
||||||
"div",
|
"div",
|
||||||
@@ -27,7 +27,17 @@
|
|||||||
"li",
|
"li",
|
||||||
"link",
|
"link",
|
||||||
"mark",
|
"mark",
|
||||||
|
"math",
|
||||||
"meta",
|
"meta",
|
||||||
|
"mfrac",
|
||||||
|
"mi",
|
||||||
|
"mn",
|
||||||
|
"mo",
|
||||||
|
"mrow",
|
||||||
|
"mspace",
|
||||||
|
"msqrt",
|
||||||
|
"msub",
|
||||||
|
"msup",
|
||||||
"nav",
|
"nav",
|
||||||
"noscript",
|
"noscript",
|
||||||
"ol",
|
"ol",
|
||||||
@@ -35,6 +45,7 @@
|
|||||||
"path",
|
"path",
|
||||||
"pre",
|
"pre",
|
||||||
"script",
|
"script",
|
||||||
|
"semantics",
|
||||||
"small",
|
"small",
|
||||||
"span",
|
"span",
|
||||||
"strong",
|
"strong",
|
||||||
@@ -186,7 +197,6 @@
|
|||||||
"dropdown-menu-end",
|
"dropdown-menu-end",
|
||||||
"dropdown-toggle",
|
"dropdown-toggle",
|
||||||
"emphasis",
|
"emphasis",
|
||||||
"emphasis-dark",
|
|
||||||
"end-0",
|
"end-0",
|
||||||
"fa",
|
"fa",
|
||||||
"fa-10x",
|
"fa-10x",
|
||||||
@@ -269,6 +279,7 @@
|
|||||||
"justify-content-center",
|
"justify-content-center",
|
||||||
"justify-content-end",
|
"justify-content-end",
|
||||||
"justify-content-start",
|
"justify-content-start",
|
||||||
|
"katex",
|
||||||
"label",
|
"label",
|
||||||
"lead",
|
"lead",
|
||||||
"leaflet-map",
|
"leaflet-map",
|
||||||
@@ -529,6 +540,7 @@
|
|||||||
"indicateur-de-chargement",
|
"indicateur-de-chargement",
|
||||||
"infobulle",
|
"infobulle",
|
||||||
"invite-de-commandes",
|
"invite-de-commandes",
|
||||||
|
"language-selector",
|
||||||
"leaflet-map-0",
|
"leaflet-map-0",
|
||||||
"lien",
|
"lien",
|
||||||
"link",
|
"link",
|
||||||
|
4
go.mod
4
go.mod
@@ -7,10 +7,10 @@ require (
|
|||||||
github.com/gethinode/mod-bootstrap v1.3.1 // indirect
|
github.com/gethinode/mod-bootstrap v1.3.1 // indirect
|
||||||
github.com/gethinode/mod-flexsearch/v2 v2.0.1 // indirect
|
github.com/gethinode/mod-flexsearch/v2 v2.0.1 // indirect
|
||||||
github.com/gethinode/mod-fontawesome v1.9.1 // indirect
|
github.com/gethinode/mod-fontawesome v1.9.1 // indirect
|
||||||
github.com/gethinode/mod-katex v1.1.1 // indirect
|
github.com/gethinode/mod-katex v1.1.2 // indirect
|
||||||
github.com/gethinode/mod-leaflet v1.1.1 // indirect
|
github.com/gethinode/mod-leaflet v1.1.1 // indirect
|
||||||
github.com/gethinode/mod-lottie v1.5.6 // indirect
|
github.com/gethinode/mod-lottie v1.5.6 // indirect
|
||||||
github.com/gethinode/mod-simple-datatables v1.0.6 // indirect
|
github.com/gethinode/mod-simple-datatables v1.0.7 // indirect
|
||||||
github.com/gethinode/mod-utils/v2 v2.3.10 // indirect
|
github.com/gethinode/mod-utils/v2 v2.3.10 // indirect
|
||||||
github.com/nextapps-de/flexsearch v0.0.0-20240501124520-961c3ae84a87 // indirect
|
github.com/nextapps-de/flexsearch v0.0.0-20240501124520-961c3ae84a87 // indirect
|
||||||
github.com/twbs/bootstrap v5.3.3+incompatible // indirect
|
github.com/twbs/bootstrap v5.3.3+incompatible // indirect
|
||||||
|
4
go.sum
4
go.sum
@@ -138,6 +138,8 @@ github.com/gethinode/mod-katex v1.1.0 h1:PxST3HPUt6F2X/xKakTVeTkwWqCtEr53K1vYEOy
|
|||||||
github.com/gethinode/mod-katex v1.1.0/go.mod h1:byAfpI3wuqNJIooTGVEGc1cjBhhCy4+CcK1H6495MYg=
|
github.com/gethinode/mod-katex v1.1.0/go.mod h1:byAfpI3wuqNJIooTGVEGc1cjBhhCy4+CcK1H6495MYg=
|
||||||
github.com/gethinode/mod-katex v1.1.1 h1:z8+mfVI6UTWcfpQMVPIzxQzt6Lp9BcmXxSOILQ84qFg=
|
github.com/gethinode/mod-katex v1.1.1 h1:z8+mfVI6UTWcfpQMVPIzxQzt6Lp9BcmXxSOILQ84qFg=
|
||||||
github.com/gethinode/mod-katex v1.1.1/go.mod h1:byAfpI3wuqNJIooTGVEGc1cjBhhCy4+CcK1H6495MYg=
|
github.com/gethinode/mod-katex v1.1.1/go.mod h1:byAfpI3wuqNJIooTGVEGc1cjBhhCy4+CcK1H6495MYg=
|
||||||
|
github.com/gethinode/mod-katex v1.1.2 h1:TbeVIWeG5TqldlVxpM1upOWj11RljXy4fhpOQIwOnS4=
|
||||||
|
github.com/gethinode/mod-katex v1.1.2/go.mod h1:byAfpI3wuqNJIooTGVEGc1cjBhhCy4+CcK1H6495MYg=
|
||||||
github.com/gethinode/mod-leaflet v0.2.3 h1:QQI4h+IH0jZ7fx4q0um2YIEiYBoW3OAfW8qHzbRCDPk=
|
github.com/gethinode/mod-leaflet v0.2.3 h1:QQI4h+IH0jZ7fx4q0um2YIEiYBoW3OAfW8qHzbRCDPk=
|
||||||
github.com/gethinode/mod-leaflet v0.2.3/go.mod h1:uGggt87x4Fw7wBoJpSiUvNkYg+s/Ujne7klAX2rxMRk=
|
github.com/gethinode/mod-leaflet v0.2.3/go.mod h1:uGggt87x4Fw7wBoJpSiUvNkYg+s/Ujne7klAX2rxMRk=
|
||||||
github.com/gethinode/mod-leaflet v0.3.1 h1:H5MaOa+BB1KuVw7abTqfIn/SNzzRsAyx/WQoSe+2Ykc=
|
github.com/gethinode/mod-leaflet v0.3.1 h1:H5MaOa+BB1KuVw7abTqfIn/SNzzRsAyx/WQoSe+2Ykc=
|
||||||
@@ -208,6 +210,8 @@ github.com/gethinode/mod-simple-datatables v1.0.5 h1:2Aa4k1Bd1WEYHbskFQj+1X35BB7
|
|||||||
github.com/gethinode/mod-simple-datatables v1.0.5/go.mod h1:mmrcvAJU2i3SMU56VmQ5PW43uDXBcsJKcZwCHrvl3Kc=
|
github.com/gethinode/mod-simple-datatables v1.0.5/go.mod h1:mmrcvAJU2i3SMU56VmQ5PW43uDXBcsJKcZwCHrvl3Kc=
|
||||||
github.com/gethinode/mod-simple-datatables v1.0.6 h1:voKiwLAfC7kfD+atv7ah0sOf8OcPRyxEB/Q92gx1d00=
|
github.com/gethinode/mod-simple-datatables v1.0.6 h1:voKiwLAfC7kfD+atv7ah0sOf8OcPRyxEB/Q92gx1d00=
|
||||||
github.com/gethinode/mod-simple-datatables v1.0.6/go.mod h1:Y7AzIYAWpzDKLvH96eqBA/Gs3jompWCgxadLuoKZ/rc=
|
github.com/gethinode/mod-simple-datatables v1.0.6/go.mod h1:Y7AzIYAWpzDKLvH96eqBA/Gs3jompWCgxadLuoKZ/rc=
|
||||||
|
github.com/gethinode/mod-simple-datatables v1.0.7 h1:pfxWhgmn/njJcynNIDnUyeOBW0tsy2E4TP21sEYsqRs=
|
||||||
|
github.com/gethinode/mod-simple-datatables v1.0.7/go.mod h1:Y7AzIYAWpzDKLvH96eqBA/Gs3jompWCgxadLuoKZ/rc=
|
||||||
github.com/gethinode/mod-utils v1.0.0 h1:cqHm2xS5uDiJzRm1KfHaNbq6uMVDKLhQa8/BuTZ1nhY=
|
github.com/gethinode/mod-utils v1.0.0 h1:cqHm2xS5uDiJzRm1KfHaNbq6uMVDKLhQa8/BuTZ1nhY=
|
||||||
github.com/gethinode/mod-utils v1.0.0/go.mod h1:ONJm3pHCq7nvaPNjusLZNCeCbhOhSBH4HVKHwK1FdYE=
|
github.com/gethinode/mod-utils v1.0.0/go.mod h1:ONJm3pHCq7nvaPNjusLZNCeCbhOhSBH4HVKHwK1FdYE=
|
||||||
github.com/gethinode/mod-utils v1.0.1 h1:jhZGlGFHHL1f5HXbBMXfiZ2gCz4TVafAzjnRPTIBSEE=
|
github.com/gethinode/mod-utils v1.0.1 h1:jhZGlGFHHL1f5HXbBMXfiZ2gCz4TVafAzjnRPTIBSEE=
|
||||||
|
@@ -2,35 +2,46 @@
|
|||||||
"htmlElements": {
|
"htmlElements": {
|
||||||
"tags": [
|
"tags": [
|
||||||
"a",
|
"a",
|
||||||
"blockquote",
|
"annotation",
|
||||||
"body",
|
"body",
|
||||||
"button",
|
"button",
|
||||||
"div",
|
"div",
|
||||||
"em",
|
|
||||||
"footer",
|
"footer",
|
||||||
"form",
|
"form",
|
||||||
"h2",
|
|
||||||
"h3",
|
|
||||||
"h5",
|
"h5",
|
||||||
"head",
|
"head",
|
||||||
"hr",
|
|
||||||
"html",
|
"html",
|
||||||
"img",
|
"img",
|
||||||
"input",
|
"input",
|
||||||
"label",
|
"label",
|
||||||
"li",
|
"li",
|
||||||
"link",
|
"link",
|
||||||
|
"math",
|
||||||
"meta",
|
"meta",
|
||||||
|
"mfrac",
|
||||||
|
"mi",
|
||||||
|
"mn",
|
||||||
|
"mo",
|
||||||
|
"mpadded",
|
||||||
|
"mphantom",
|
||||||
|
"mrow",
|
||||||
|
"mspace",
|
||||||
|
"msqrt",
|
||||||
|
"mstyle",
|
||||||
|
"msub",
|
||||||
|
"msup",
|
||||||
|
"mtext",
|
||||||
|
"munder",
|
||||||
"nav",
|
"nav",
|
||||||
"noscript",
|
"noscript",
|
||||||
"ol",
|
"ol",
|
||||||
"p",
|
"p",
|
||||||
"path",
|
"path",
|
||||||
"script",
|
"script",
|
||||||
|
"semantics",
|
||||||
"small",
|
"small",
|
||||||
"span",
|
"span",
|
||||||
"strong",
|
"strong",
|
||||||
"sup",
|
|
||||||
"svg",
|
"svg",
|
||||||
"title",
|
"title",
|
||||||
"ul"
|
"ul"
|
||||||
@@ -40,14 +51,10 @@
|
|||||||
"align-items-center",
|
"align-items-center",
|
||||||
"align-self-center",
|
"align-self-center",
|
||||||
"align-self-end",
|
"align-self-end",
|
||||||
"anchor",
|
|
||||||
"ball",
|
"ball",
|
||||||
"bg-body",
|
"bg-body",
|
||||||
"bg-body-tertiary",
|
|
||||||
"bg-opacity-10",
|
"bg-opacity-10",
|
||||||
"bg-primary",
|
"bg-primary",
|
||||||
"blockquote",
|
|
||||||
"border",
|
|
||||||
"border-0",
|
"border-0",
|
||||||
"bottom-0",
|
"bottom-0",
|
||||||
"bottom-bar",
|
"bottom-bar",
|
||||||
@@ -55,7 +62,6 @@
|
|||||||
"breadcrumb-item",
|
"breadcrumb-item",
|
||||||
"btn",
|
"btn",
|
||||||
"btn-close",
|
"btn-close",
|
||||||
"btn-outline-secondary",
|
|
||||||
"btn-primary",
|
"btn-primary",
|
||||||
"btn-social",
|
"btn-social",
|
||||||
"card",
|
"card",
|
||||||
@@ -80,9 +86,7 @@
|
|||||||
"collapsed",
|
"collapsed",
|
||||||
"container-fluid",
|
"container-fluid",
|
||||||
"container-xxl",
|
"container-xxl",
|
||||||
"d-block",
|
|
||||||
"d-flex",
|
"d-flex",
|
||||||
"d-grid",
|
|
||||||
"d-inline",
|
"d-inline",
|
||||||
"d-lg-block",
|
"d-lg-block",
|
||||||
"d-md-block",
|
"d-md-block",
|
||||||
@@ -106,7 +110,6 @@
|
|||||||
"fa-medium",
|
"fa-medium",
|
||||||
"fa-moon",
|
"fa-moon",
|
||||||
"fa-share-nodes",
|
"fa-share-nodes",
|
||||||
"fa-sort",
|
|
||||||
"fa-sun",
|
"fa-sun",
|
||||||
"fa-whatsapp",
|
"fa-whatsapp",
|
||||||
"fa-x-twitter",
|
"fa-x-twitter",
|
||||||
@@ -116,9 +119,6 @@
|
|||||||
"flex-column",
|
"flex-column",
|
||||||
"flex-fill",
|
"flex-fill",
|
||||||
"footer",
|
"footer",
|
||||||
"footnote-backref",
|
|
||||||
"footnote-ref",
|
|
||||||
"footnotes",
|
|
||||||
"form-control",
|
"form-control",
|
||||||
"fs-3",
|
"fs-3",
|
||||||
"fs-5",
|
"fs-5",
|
||||||
@@ -128,19 +128,16 @@
|
|||||||
"fw-bold",
|
"fw-bold",
|
||||||
"g-4",
|
"g-4",
|
||||||
"gap-1",
|
"gap-1",
|
||||||
"gap-2",
|
|
||||||
"h-100",
|
"h-100",
|
||||||
"h6",
|
|
||||||
"heading",
|
|
||||||
"hstack",
|
"hstack",
|
||||||
"img-fluid",
|
"img-fluid",
|
||||||
"img-wrap",
|
"img-wrap",
|
||||||
"invisible",
|
"invisible",
|
||||||
"is-search",
|
"is-search",
|
||||||
"justify-content-between",
|
|
||||||
"justify-content-center",
|
"justify-content-center",
|
||||||
"justify-content-end",
|
"justify-content-end",
|
||||||
"justify-content-start",
|
"justify-content-start",
|
||||||
|
"katex",
|
||||||
"label",
|
"label",
|
||||||
"lead",
|
"lead",
|
||||||
"link-bg-footer",
|
"link-bg-footer",
|
||||||
@@ -148,6 +145,7 @@
|
|||||||
"main-content",
|
"main-content",
|
||||||
"main-nav-toggler",
|
"main-nav-toggler",
|
||||||
"mb-3",
|
"mb-3",
|
||||||
|
"mb-4",
|
||||||
"mb-5",
|
"mb-5",
|
||||||
"mb-lg-5",
|
"mb-lg-5",
|
||||||
"me-auto",
|
"me-auto",
|
||||||
@@ -160,7 +158,6 @@
|
|||||||
"mt-5",
|
"mt-5",
|
||||||
"mx-auto",
|
"mx-auto",
|
||||||
"mx-md-0",
|
"mx-md-0",
|
||||||
"my-2",
|
|
||||||
"my-auto",
|
"my-auto",
|
||||||
"my-md-0",
|
"my-md-0",
|
||||||
"my-md-auto",
|
"my-md-auto",
|
||||||
@@ -174,7 +171,6 @@
|
|||||||
"navbar-fixed-top",
|
"navbar-fixed-top",
|
||||||
"navbar-mode-selector",
|
"navbar-mode-selector",
|
||||||
"navbar-nav",
|
"navbar-nav",
|
||||||
"navbar-nav-scroll",
|
|
||||||
"navbar-toggler",
|
"navbar-toggler",
|
||||||
"no-js",
|
"no-js",
|
||||||
"offcanvas",
|
"offcanvas",
|
||||||
@@ -187,11 +183,9 @@
|
|||||||
"order-md-0",
|
"order-md-0",
|
||||||
"order-md-1",
|
"order-md-1",
|
||||||
"p-0",
|
"p-0",
|
||||||
"p-1",
|
|
||||||
"p-2",
|
"p-2",
|
||||||
"p-3",
|
"p-3",
|
||||||
"p-4",
|
"p-4",
|
||||||
"pb-2",
|
|
||||||
"pb-4",
|
"pb-4",
|
||||||
"pb-5",
|
"pb-5",
|
||||||
"pb-md-0",
|
"pb-md-0",
|
||||||
@@ -220,7 +214,6 @@
|
|||||||
"sticky-top",
|
"sticky-top",
|
||||||
"stretched-link",
|
"stretched-link",
|
||||||
"svg-inline--fa",
|
"svg-inline--fa",
|
||||||
"text-body",
|
|
||||||
"text-body-secondary",
|
"text-body-secondary",
|
||||||
"text-center",
|
"text-center",
|
||||||
"text-decoration-none",
|
"text-decoration-none",
|
||||||
@@ -235,35 +228,21 @@
|
|||||||
"toast-container",
|
"toast-container",
|
||||||
"toast-header",
|
"toast-header",
|
||||||
"toc",
|
"toc",
|
||||||
"toc-button",
|
|
||||||
"toc-panel",
|
|
||||||
"toc-sidebar",
|
"toc-sidebar",
|
||||||
"toggler-icon",
|
"toggler-icon",
|
||||||
"top-bar"
|
"top-bar"
|
||||||
],
|
],
|
||||||
"ids": [
|
"ids": [
|
||||||
"TableOfContents",
|
|
||||||
"blogs",
|
"blogs",
|
||||||
"btn-webshare",
|
"btn-webshare",
|
||||||
"fn:1",
|
|
||||||
"fn:2",
|
|
||||||
"fnref:1",
|
|
||||||
"fnref:2",
|
|
||||||
"navbar-0-collapse",
|
"navbar-0-collapse",
|
||||||
"navbar-mode",
|
"navbar-mode",
|
||||||
"navbar-mode-checkbox",
|
"navbar-mode-checkbox",
|
||||||
"offcanvas-label",
|
"offcanvas-label",
|
||||||
"offcanvass-sidebar",
|
"offcanvass-sidebar",
|
||||||
"reference",
|
|
||||||
"reference-1",
|
|
||||||
"simple",
|
|
||||||
"simple-1",
|
|
||||||
"toast-container",
|
"toast-container",
|
||||||
"toast-copied-code-message",
|
"toast-copied-code-message",
|
||||||
"toast-message-email-4",
|
"toast-message-email-4"
|
||||||
"toc-collapse",
|
|
||||||
"with-attribute",
|
|
||||||
"without-attribute"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
12
i18n/en.yaml
12
i18n/en.yaml
@@ -149,3 +149,15 @@
|
|||||||
translation: "Comment"
|
translation: "Comment"
|
||||||
- id: supportedValues
|
- id: supportedValues
|
||||||
translation: "Supported values"
|
translation: "Supported values"
|
||||||
|
|
||||||
|
# Alerts
|
||||||
|
- id: caution
|
||||||
|
translation: Caution
|
||||||
|
- id: important
|
||||||
|
translation: Important
|
||||||
|
- id: note
|
||||||
|
translation: Note
|
||||||
|
- id: tip
|
||||||
|
translation: Tip
|
||||||
|
- id: warning
|
||||||
|
translation: Warning
|
12
i18n/nl.yaml
12
i18n/nl.yaml
@@ -148,3 +148,15 @@
|
|||||||
translation: "Toelichting"
|
translation: "Toelichting"
|
||||||
- id: supportedValues
|
- id: supportedValues
|
||||||
translation: "Toegestane waarden"
|
translation: "Toegestane waarden"
|
||||||
|
|
||||||
|
# Alerts
|
||||||
|
- id: caution
|
||||||
|
translation: Voorzichtig
|
||||||
|
- id: important
|
||||||
|
translation: Belangrijk
|
||||||
|
- id: note
|
||||||
|
translation: Opmerking
|
||||||
|
- id: tip
|
||||||
|
translation: Tip
|
||||||
|
- id: warning
|
||||||
|
translation: Waarschuwing
|
||||||
|
23
layouts/_default/_markup/render-blockquote.html
Normal file
23
layouts/_default/_markup/render-blockquote.html
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{{/* Adapted from https://gohugo.io/render-hooks/blockquotes/#alerts */}}
|
||||||
|
|
||||||
|
{{ $icons := dict
|
||||||
|
"caution" "fa hand"
|
||||||
|
"important" "fas exclamation"
|
||||||
|
"note" "fas circle-info"
|
||||||
|
"tip" "fa lightbulb"
|
||||||
|
"warning" "fas triangle-exclamation"
|
||||||
|
}}
|
||||||
|
|
||||||
|
{{ if eq .Type "alert" }}
|
||||||
|
<blockquote class="blockquote-alert blockquote-alert-{{ .AlertType }}">
|
||||||
|
<p class="blockquote-alert-heading">
|
||||||
|
{{ partial "assets/icon.html" (dict "icon" (printf "%s fa-fw" (index $icons .AlertType))) }}
|
||||||
|
{{ or (i18n .AlertType) (title .AlertType) }}
|
||||||
|
</p>
|
||||||
|
{{ trim .Text "\n\r" | safeHTML }}
|
||||||
|
</blockquote>
|
||||||
|
{{ else }}
|
||||||
|
<blockquote class="blockquote">
|
||||||
|
{{ trim .Text "\n\r" | safeHTML }}
|
||||||
|
</blockquote>
|
||||||
|
{{ end }}
|
11
layouts/_default/_markup/render-codeblock-math.html
Normal file
11
layouts/_default/_markup/render-codeblock-math.html
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{{ with transform.ToMath .Inner (dict "displayMode" true) }}
|
||||||
|
{{ with .Err }}
|
||||||
|
{{ errorf "Failed to render KaTeX: %q. See %s" . $.Position }}
|
||||||
|
{{ else }}
|
||||||
|
{{ if $.Attributes.class }}
|
||||||
|
<div class="{{ $.Attributes.class }}">{{ . }}</div>
|
||||||
|
{{ else }}
|
||||||
|
{{ . }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
15
layouts/_default/_markup/render-image.html
Normal file
15
layouts/_default/_markup/render-image.html
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{{ partial "assets/image.html" (dict
|
||||||
|
"url" .Destination
|
||||||
|
"page" .Page
|
||||||
|
"caption" .Title
|
||||||
|
"title" .Text
|
||||||
|
"anchor" .Attributes.anchor
|
||||||
|
"class" .Attributes.class
|
||||||
|
"figclass" .Attributes.figclass
|
||||||
|
"loading" .Attributes.loading
|
||||||
|
"mode" .Attributes.mode
|
||||||
|
"plain" .Attributes.plain
|
||||||
|
"portrait" .Attributes.portrait
|
||||||
|
"ratio" .Attributes.ratio
|
||||||
|
"wrapper" .Attributes.wrapper
|
||||||
|
) }}
|
13
layouts/_default/_markup/render-link.html
Normal file
13
layouts/_default/_markup/render-link.html
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{{ if gt (findRE `^HAHAHUGO` .Destination 1) 0 }}
|
||||||
|
{{ errorf "Invalid markdown link destination, use '%s' syntax when using shortcodes as input. See '%s'"
|
||||||
|
("{{% %}}" | htmlUnescape)
|
||||||
|
.Page.File.Filename
|
||||||
|
}}
|
||||||
|
{{ else }}
|
||||||
|
{{ partial "assets/link.html" (dict
|
||||||
|
"destination" .Destination
|
||||||
|
"page" .Page
|
||||||
|
"text" .Text
|
||||||
|
"title" .Title
|
||||||
|
) }}
|
||||||
|
{{ end }}
|
13
layouts/_default/_markup/render-passthrough.html
Normal file
13
layouts/_default/_markup/render-passthrough.html
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{{ $opts := dict }}
|
||||||
|
|
||||||
|
{{ if eq .Type "block" }}
|
||||||
|
{{ $opts = dict "displayMode" true }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ with transform.ToMath .Inner $opts }}
|
||||||
|
{{ with .Err }}
|
||||||
|
{{ errorf "Failed to render KaTeX: %q. See %s" . $.Position }}
|
||||||
|
{{ else }}
|
||||||
|
{{ . }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
@@ -36,11 +36,11 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="{{ .Site.Language.Lang }}" class="no-js">
|
<html lang="{{ .Site.Language.Lang }}" class="no-js">
|
||||||
<head>
|
<head>
|
||||||
|
{{- partial "footer/scripts.html" (dict "filename" "js/critical.bundle.js" "match" "js/critical/**.js" "header" true "page" .) -}}
|
||||||
{{ block "head" . }}{{ end -}}
|
{{ block "head" . }}{{ end -}}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
{{- partial "footer/scripts.html" (dict "filename" "js/critical.bundle.js" "match" "js/critical/**.js" "header" true "page" .) -}}
|
|
||||||
<div class="d-flex flex-column min-vh-100">
|
<div class="d-flex flex-column min-vh-100">
|
||||||
<div class="d-flex flex-column {{ if $fullCover }} fullscreen{{ end }}{{ if .IsHome }} {{ .Site.Params.home.style }}{{ end }}">
|
<div class="d-flex flex-column {{ if $fullCover }} fullscreen{{ end }}{{ if .IsHome }} {{ .Site.Params.home.style }}{{ end }}">
|
||||||
{{- partial "assets/navbar.html" (dict
|
{{- partial "assets/navbar.html" (dict
|
||||||
|
@@ -7,6 +7,10 @@
|
|||||||
<meta name="robots" content="noindex">
|
<meta name="robots" content="noindex">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<noscript><meta http-equiv="refresh" content="0; url={{ .Permalink }}"></noscript>
|
<noscript><meta http-equiv="refresh" content="0; url={{ .Permalink }}"></noscript>
|
||||||
<script src='{{ partial "utilities/GetStaticURL" (dict "url" "js/alias.js") }}'></script>
|
{{ if site.Params.main.enableLanguageSelectionStorage }}
|
||||||
|
{{- partial "footer/scripts.html" (dict "filename" "js/critical.bundle.js" "match" "js/critical/**.js" "header" true "page" page) -}}
|
||||||
|
{{ else }}
|
||||||
|
<script src='{{ partial "utilities/GetStaticURL" (dict "url" "js/alias.js") }}'></script>
|
||||||
|
{{ end }}
|
||||||
</head>
|
</head>
|
||||||
</html>
|
</html>
|
@@ -95,10 +95,10 @@
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
role="button"
|
role="button"
|
||||||
>
|
>
|
||||||
<div class="d-flex justify-content-{{ $justify }}">
|
<span class="d-flex justify-content-{{ $justify }}">
|
||||||
<div class="my-auto">{{ $title | safeHTML }}</div>
|
<span class="my-auto">{{ $title | safeHTML }}</span>
|
||||||
{{- with $icon }}<div class="align-self-center{{ if $title }}{{ if eq $order "first" }} order-first pe-1{{ else }} ps-1{{ end }}{{ end }}">{{ partial "assets/icon.html" (dict "icon" $icon "spacing" false) }}</div>{{ end }}
|
{{- with $icon }}<span class="align-self-center{{ if $title }}{{ if eq $order "first" }} order-first pe-1{{ else }} ps-1{{ end }}{{ end }}">{{ partial "assets/icon.html" (dict "icon" $icon "spacing" false) }}</span>{{ end }}
|
||||||
</div>
|
</span>
|
||||||
|
|
||||||
{{- with $badge }}
|
{{- with $badge }}
|
||||||
<span class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger">
|
<span class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger">
|
||||||
|
@@ -116,7 +116,7 @@
|
|||||||
|
|
||||||
<p class="card-text"><small class="{{ if $color }}text-bg-{{ $color }}{{ else }}text-body-secondary{{ end }} text-uppercase">
|
<p class="card-text"><small class="{{ if $color }}text-bg-{{ $color }}{{ else }}text-body-secondary{{ end }} text-uppercase">
|
||||||
{{- if in (slice "full" "publication") $keywords -}}
|
{{- if in (slice "full" "publication") $keywords -}}
|
||||||
{{ with $page.Date }}{{- partial "utilities/date.html" (dict "date" . "format" "long") -}} •{{ end }}
|
{{ with $page.Date }}{{ partial "utilities/date.html" (dict "date" . "format" "long") }} •{{ end -}}
|
||||||
{{ $page.ReadingTime | lang.FormatNumber 0 }} {{ i18n "minutesShort" }} {{ i18n "read" -}}
|
{{ $page.ReadingTime | lang.FormatNumber 0 }} {{ i18n "minutesShort" }} {{ i18n "read" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
@@ -25,6 +25,7 @@
|
|||||||
{{- $page := .page -}}
|
{{- $page := .page -}}
|
||||||
{{- $anchor := "" -}}
|
{{- $anchor := "" -}}
|
||||||
{{- $text := .text -}}
|
{{- $text := .text -}}
|
||||||
|
{{- $title := .title -}}
|
||||||
{{- $class := .class -}}
|
{{- $class := .class -}}
|
||||||
|
|
||||||
<!-- Main code -->
|
<!-- Main code -->
|
||||||
@@ -72,5 +73,13 @@
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{ if not $error -}}
|
{{ if not $error -}}
|
||||||
<a {{ with $class }}class="{{ . }}" {{ end }}href="{{ $destination | safeURL }}"{{ with $target }} target="{{ . }}"{{ end }}{{ with $rel }} rel="{{ . }}"{{ end }}>{{ $text }}</a>
|
<a
|
||||||
|
{{- with $destination }} href="{{ . | safeURL }}"{{ end -}}
|
||||||
|
{{- with $class }}class="{{ . }}" {{ end -}}
|
||||||
|
{{- with $target }} target="{{ . }}"{{ end -}}
|
||||||
|
{{- with $rel }} rel="{{ . }}"{{ end -}}
|
||||||
|
{{- with $title }} title="{{ . }}"{{ end -}}
|
||||||
|
>
|
||||||
|
{{- $text -}}
|
||||||
|
</a>
|
||||||
{{- end }}
|
{{- end }}
|
@@ -154,11 +154,6 @@
|
|||||||
|
|
||||||
{{- $pre := .Pre -}}
|
{{- $pre := .Pre -}}
|
||||||
{{- $post := .Post -}}
|
{{- $post := .Post -}}
|
||||||
|
|
||||||
{{- $theme := "light" -}}
|
|
||||||
{{- if in (slice "primary" "secondary" "success" "danger" "black") $color }}{{ $theme = "dark" }}{{ end -}}
|
|
||||||
{{- if in (slice "body" "body-tertiary") $color }}{{ $theme = "" }}{{ end -}}
|
|
||||||
{{- if not $color }}{{ $theme = "" }}{{ end -}}
|
|
||||||
{{- $class := .class -}}
|
{{- $class := .class -}}
|
||||||
|
|
||||||
{{- $contrast := false -}}
|
{{- $contrast := false -}}
|
||||||
@@ -179,7 +174,7 @@
|
|||||||
{{ if $overlay }}
|
{{ if $overlay }}
|
||||||
data-bs-theme="{{ $overlayMode }}"
|
data-bs-theme="{{ $overlayMode }}"
|
||||||
data-bs-overlay="{{ $overlayMode }}"
|
data-bs-overlay="{{ $overlayMode }}"
|
||||||
{{ else }}{{ with $theme }}data-bs-theme="{{ . }}"{{ end }}{{ end }}
|
{{ end }}
|
||||||
{{ if $overlay }}data-navbar-color="{{ $color }}"{{ end }}
|
{{ if $overlay }}data-navbar-color="{{ $color }}"{{ end }}
|
||||||
>
|
>
|
||||||
<div class="container-xxl p-0">
|
<div class="container-xxl p-0">
|
||||||
@@ -218,9 +213,9 @@
|
|||||||
<div class="d-flex align-items-center">
|
<div class="d-flex align-items-center">
|
||||||
<button class="navbar-toggler main-nav-toggler collapsed p-0" type="button" data-bs-toggle="collapse" data-bs-target="#{{ $id }}-collapse"
|
<button class="navbar-toggler main-nav-toggler collapsed p-0" type="button" data-bs-toggle="collapse" data-bs-target="#{{ $id }}-collapse"
|
||||||
aria-controls="{{ $id }}" aria-expanded="false" aria-label="{{ T "toggleMainNav" }}">
|
aria-controls="{{ $id }}" aria-expanded="false" aria-label="{{ T "toggleMainNav" }}">
|
||||||
<span class="toggler-icon top-bar emphasis{{ with $theme }}-{{ . }}{{ end }}"></span>
|
<span class="toggler-icon top-bar emphasis"></span>
|
||||||
<span class="toggler-icon middle-bar emphasis{{ with $theme }}-{{ . }}{{ end }}"></span>
|
<span class="toggler-icon middle-bar emphasis"></span>
|
||||||
<span class="toggler-icon bottom-bar emphasis{{ with $theme }}-{{ . }}{{ end }}"></span>
|
<span class="toggler-icon bottom-bar emphasis"></span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -272,14 +267,14 @@
|
|||||||
<a class="nav-link dropdown-toggle d-none d-{{ $size }}-block" href="#!" role="button" data-bs-toggle="dropdown" aria-label="{{ T "languageSwitcherLabel" }}" aria-expanded="false">
|
<a class="nav-link dropdown-toggle d-none d-{{ $size }}-block" href="#!" role="button" data-bs-toggle="dropdown" aria-label="{{ T "languageSwitcherLabel" }}" aria-expanded="false">
|
||||||
{{- partial "assets/icon.html" (dict "icon" "fas globe fa-fw" "spacing" false) }}
|
{{- partial "assets/icon.html" (dict "icon" "fas globe fa-fw" "spacing" false) }}
|
||||||
</a>
|
</a>
|
||||||
<ul class="dropdown-menu dropdown-menu-end ">
|
<ul class="dropdown-menu dropdown-menu-end " id="language-selector">
|
||||||
{{- if $page.IsTranslated -}}
|
{{- if $page.IsTranslated -}}
|
||||||
{{- range $page.AllTranslations -}}
|
{{- range $page.AllTranslations -}}
|
||||||
<li><a class="dropdown-item {{ if eq .Language.Lang $currentLang }}active{{ end }}" href="{{ .RelPermalink }}">{{ .Language.LanguageName }}</a></li>
|
<li><a class="dropdown-item {{ if eq .Language.Lang $currentLang }}active{{ end }}" hreflang="{{.Language.Lang}}" href="{{ .RelPermalink }}">{{ .Language.LanguageName }}</a></li>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- range site.Languages -}}
|
{{- range site.Languages -}}
|
||||||
<li><a class="dropdown-item" href="{{ urls.JoinPath $baseURL .Lang }}">{{ default .Lang .LanguageName }}</a></li>
|
<li><a class="dropdown-item" href="{{ urls.JoinPath $baseURL .Lang }}" hreflang="{{.Lang}}">{{ default .Lang .LanguageName }}</a></li>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</ul>
|
</ul>
|
||||||
|
@@ -25,13 +25,13 @@
|
|||||||
{{- $state := .state | default "async" -}}
|
{{- $state := .state | default "async" -}}
|
||||||
{{- if or $header (eq $state "immediate") }}{{ $state = "" }}{{ end -}}
|
{{- if or $header (eq $state "immediate") }}{{ $state = "" }}{{ end -}}
|
||||||
|
|
||||||
{{ $config := $page.Scratch.Get "modules" }}
|
|
||||||
{{ if not $config }}
|
|
||||||
{{ errorf "partial [footer/scripts.html] - Cannot initialize module configuration" }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{- $modules := "" -}}
|
{{- $modules := "" -}}
|
||||||
{{ if $core }}
|
{{ if $core }}
|
||||||
|
{{ $config := $page.Scratch.Get "modules" }}
|
||||||
|
{{ if not $config }}
|
||||||
|
{{ errorf "partial [footer/scripts.html] - Cannot initialize module configuration" }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{- $modules = $config.core -}}
|
{{- $modules = $config.core -}}
|
||||||
{{- if reflect.IsSlice $config.localize -}}
|
{{- if reflect.IsSlice $config.localize -}}
|
||||||
{{- range $index, $mod := $modules -}}
|
{{- range $index, $mod := $modules -}}
|
||||||
|
@@ -27,7 +27,9 @@
|
|||||||
{{ $icon = partial "assets/icon.html" (dict "icon" (printf "%s fa-2x fa-fw" .)) }}
|
{{ $icon = partial "assets/icon.html" (dict "icon" (printf "%s fa-2x fa-fw" .)) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ $dismissible := false -}}
|
{{ $dismissible := false -}}
|
||||||
{{ if isset .Params "dismissible" }}{{ $dismissible = partial "utilities/CastBool.html" (.Get "dismissible") }}{{ end -}}
|
{{- if and .IsNamedParams (isset .Params "dismissible") }}
|
||||||
|
{{ $dismissible = partial "utilities/CastBool.html" (.Get "dismissible") }}
|
||||||
|
{{ end }}
|
||||||
{{- $class := .Get "class" | default "" -}}
|
{{- $class := .Get "class" | default "" -}}
|
||||||
|
|
||||||
{{ $body := trim .Inner " \r\n" -}}
|
{{ $body := trim .Inner " \r\n" -}}
|
||||||
|
@@ -49,8 +49,10 @@
|
|||||||
{{- errorf "File format not supported (line %s): %s" .Position $file -}}
|
{{- errorf "File format not supported (line %s): %s" .Position $file -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{ $show := .Get "show" | default true -}}
|
{{- $show := true -}}
|
||||||
{{ $full := .Get "full" | default true -}}
|
{{ if isset .Params "show" }}{{ $show = partial "utilities/CastBool.html" (.Get "show") }}{{ end -}}
|
||||||
|
{{- $full := true -}}
|
||||||
|
{{ if isset .Params "full" }}{{ $full = partial "utilities/CastBool.html" (.Get "full") }}{{ end -}}
|
||||||
{{- $class := .Get "class" | default "" -}}
|
{{- $class := .Get "class" | default "" -}}
|
||||||
|
|
||||||
<!-- Main code -->
|
<!-- Main code -->
|
||||||
|
@@ -26,6 +26,7 @@
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- $size := .Get "size" | default "md" -}}
|
{{- $size := .Get "size" | default "md" -}}
|
||||||
{{- $class := .Get "class" | default "" -}}
|
{{- $class := .Get "class" | default "" -}}
|
||||||
|
{{- $type := .Get "type" | default "button" -}}
|
||||||
|
|
||||||
{{- $icon := "" -}}
|
{{- $icon := "" -}}
|
||||||
{{- $tooltip := "" -}}
|
{{- $tooltip := "" -}}
|
||||||
@@ -55,19 +56,24 @@
|
|||||||
|
|
||||||
<!-- Main code -->
|
<!-- Main code -->
|
||||||
{{- if not $error -}}
|
{{- if not $error -}}
|
||||||
{{- if not $inline }}<div class="pb-3">{{ end -}}
|
{{ $href := partial "partials/utilities/URLJoin.html" (dict "base" site.Params.docs.release "path" $version) }}
|
||||||
{{- partial "assets/button.html" (dict
|
{{ if eq $type "link" }}
|
||||||
"title" $title
|
{{ partial "assets/link.html" (dict "destination" $href "text" $title "page" .Page) }}
|
||||||
"href" (partial "partials/utilities/URLJoin.html" (dict "base" site.Params.docs.release "path" $version))
|
{{ else }}
|
||||||
"size" "sm"
|
{{- if not $inline }}<div class="pb-3">{{ end -}}
|
||||||
"color" $color
|
{{- partial "assets/button.html" (dict
|
||||||
"outline" "true"
|
"title" $title
|
||||||
"size" $size
|
"href" $href
|
||||||
"icon" $icon
|
"size" "sm"
|
||||||
"tooltip" $tooltip
|
"color" $color
|
||||||
"order" "first"
|
"outline" "true"
|
||||||
"class" (trim (printf "rounded-2 fw-semibold %s" $class) " ")
|
"size" $size
|
||||||
"spacing" $inline)
|
"icon" $icon
|
||||||
-}}
|
"tooltip" $tooltip
|
||||||
{{- if not $inline }}</div>{{ end -}}
|
"order" "first"
|
||||||
|
"class" (trim (printf "rounded-2 fw-semibold %s" $class) " ")
|
||||||
|
"spacing" $inline)
|
||||||
|
-}}
|
||||||
|
{{- if not $inline }}</div>{{ end -}}
|
||||||
|
{{ end }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
185
package-lock.json
generated
185
package-lock.json
generated
@@ -1,19 +1,19 @@
|
|||||||
{
|
{
|
||||||
"name": "@gethinode/hinode",
|
"name": "@gethinode/hinode",
|
||||||
"version": "0.25.2",
|
"version": "0.26.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@gethinode/hinode",
|
"name": "@gethinode/hinode",
|
||||||
"version": "0.25.2",
|
"version": "0.26.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fullhuman/postcss-purgecss": "^6.0.0",
|
"@fullhuman/postcss-purgecss": "^6.0.0",
|
||||||
"autoprefixer": "^10.4.20",
|
"autoprefixer": "^10.4.20",
|
||||||
"cssnano": "^7.0.4",
|
"cssnano": "^7.0.5",
|
||||||
"cssnano-preset-advanced": "^7.0.4",
|
"cssnano-preset-advanced": "^7.0.5",
|
||||||
"hugo-bin": "0.128.0",
|
"hugo-bin": "0.129.2",
|
||||||
"purgecss-whitelister": "^2.4.0"
|
"purgecss-whitelister": "^2.4.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@@ -1559,11 +1559,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/cssnano": {
|
"node_modules/cssnano": {
|
||||||
"version": "7.0.4",
|
"version": "7.0.5",
|
||||||
"resolved": "https://registry.npmjs.org/cssnano/-/cssnano-7.0.4.tgz",
|
"resolved": "https://registry.npmjs.org/cssnano/-/cssnano-7.0.5.tgz",
|
||||||
"integrity": "sha512-rQgpZra72iFjiheNreXn77q1haS2GEy69zCMbu4cpXCFPMQF+D4Ik5V7ktMzUF/sA7xCIgcqHwGPnCD+0a1vHg==",
|
"integrity": "sha512-Aq0vqBLtpTT5Yxj+hLlLfNPFuRQCDIjx5JQAhhaedQKLNDvDGeVziF24PS+S1f0Z5KCxWvw0QVI3VNHNBITxVQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"cssnano-preset-default": "^7.0.4",
|
"cssnano-preset-default": "^7.0.5",
|
||||||
"lilconfig": "^3.1.2"
|
"lilconfig": "^3.1.2"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
@@ -1578,14 +1578,14 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/cssnano-preset-advanced": {
|
"node_modules/cssnano-preset-advanced": {
|
||||||
"version": "7.0.4",
|
"version": "7.0.5",
|
||||||
"resolved": "https://registry.npmjs.org/cssnano-preset-advanced/-/cssnano-preset-advanced-7.0.4.tgz",
|
"resolved": "https://registry.npmjs.org/cssnano-preset-advanced/-/cssnano-preset-advanced-7.0.5.tgz",
|
||||||
"integrity": "sha512-Fsh9S5EgQScr4aFahYQ1zEBDMqgyg0q9R58qssXNlwscLnFk19a/tC/ibyVGXy4ygRe+tgHfDh5esDawLFW7ug==",
|
"integrity": "sha512-m2nPoDaK9lksWD/sd7tuDLTizRsHVfyOAuBlEaZKtLC3nE/mw91l58tlV41kUA5GWQYhNQiKac9YTBlGFLaiSA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"autoprefixer": "^10.4.19",
|
"autoprefixer": "^10.4.20",
|
||||||
"browserslist": "^4.23.1",
|
"browserslist": "^4.23.3",
|
||||||
"cssnano-preset-default": "^7.0.4",
|
"cssnano-preset-default": "^7.0.5",
|
||||||
"postcss-discard-unused": "^7.0.1",
|
"postcss-discard-unused": "^7.0.2",
|
||||||
"postcss-merge-idents": "^7.0.0",
|
"postcss-merge-idents": "^7.0.0",
|
||||||
"postcss-reduce-idents": "^7.0.0",
|
"postcss-reduce-idents": "^7.0.0",
|
||||||
"postcss-zindex": "^7.0.0"
|
"postcss-zindex": "^7.0.0"
|
||||||
@@ -1598,40 +1598,40 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/cssnano-preset-default": {
|
"node_modules/cssnano-preset-default": {
|
||||||
"version": "7.0.4",
|
"version": "7.0.5",
|
||||||
"resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-7.0.4.tgz",
|
"resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-7.0.5.tgz",
|
||||||
"integrity": "sha512-jQ6zY9GAomQX7/YNLibMEsRZguqMUGuupXcEk2zZ+p3GUxwCAsobqPYE62VrJ9qZ0l9ltrv2rgjwZPBIFIjYtw==",
|
"integrity": "sha512-Jbzja0xaKwc5JzxPQoc+fotKpYtWEu4wQLMQe29CM0FjjdRjA4omvbGHl2DTGgARKxSTpPssBsok+ixv8uTBqw==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"browserslist": "^4.23.1",
|
"browserslist": "^4.23.3",
|
||||||
"css-declaration-sorter": "^7.2.0",
|
"css-declaration-sorter": "^7.2.0",
|
||||||
"cssnano-utils": "^5.0.0",
|
"cssnano-utils": "^5.0.0",
|
||||||
"postcss-calc": "^10.0.0",
|
"postcss-calc": "^10.0.1",
|
||||||
"postcss-colormin": "^7.0.1",
|
"postcss-colormin": "^7.0.2",
|
||||||
"postcss-convert-values": "^7.0.2",
|
"postcss-convert-values": "^7.0.3",
|
||||||
"postcss-discard-comments": "^7.0.1",
|
"postcss-discard-comments": "^7.0.2",
|
||||||
"postcss-discard-duplicates": "^7.0.0",
|
"postcss-discard-duplicates": "^7.0.1",
|
||||||
"postcss-discard-empty": "^7.0.0",
|
"postcss-discard-empty": "^7.0.0",
|
||||||
"postcss-discard-overridden": "^7.0.0",
|
"postcss-discard-overridden": "^7.0.0",
|
||||||
"postcss-merge-longhand": "^7.0.2",
|
"postcss-merge-longhand": "^7.0.3",
|
||||||
"postcss-merge-rules": "^7.0.2",
|
"postcss-merge-rules": "^7.0.3",
|
||||||
"postcss-minify-font-values": "^7.0.0",
|
"postcss-minify-font-values": "^7.0.0",
|
||||||
"postcss-minify-gradients": "^7.0.0",
|
"postcss-minify-gradients": "^7.0.0",
|
||||||
"postcss-minify-params": "^7.0.1",
|
"postcss-minify-params": "^7.0.2",
|
||||||
"postcss-minify-selectors": "^7.0.2",
|
"postcss-minify-selectors": "^7.0.3",
|
||||||
"postcss-normalize-charset": "^7.0.0",
|
"postcss-normalize-charset": "^7.0.0",
|
||||||
"postcss-normalize-display-values": "^7.0.0",
|
"postcss-normalize-display-values": "^7.0.0",
|
||||||
"postcss-normalize-positions": "^7.0.0",
|
"postcss-normalize-positions": "^7.0.0",
|
||||||
"postcss-normalize-repeat-style": "^7.0.0",
|
"postcss-normalize-repeat-style": "^7.0.0",
|
||||||
"postcss-normalize-string": "^7.0.0",
|
"postcss-normalize-string": "^7.0.0",
|
||||||
"postcss-normalize-timing-functions": "^7.0.0",
|
"postcss-normalize-timing-functions": "^7.0.0",
|
||||||
"postcss-normalize-unicode": "^7.0.1",
|
"postcss-normalize-unicode": "^7.0.2",
|
||||||
"postcss-normalize-url": "^7.0.0",
|
"postcss-normalize-url": "^7.0.0",
|
||||||
"postcss-normalize-whitespace": "^7.0.0",
|
"postcss-normalize-whitespace": "^7.0.0",
|
||||||
"postcss-ordered-values": "^7.0.1",
|
"postcss-ordered-values": "^7.0.1",
|
||||||
"postcss-reduce-initial": "^7.0.1",
|
"postcss-reduce-initial": "^7.0.2",
|
||||||
"postcss-reduce-transforms": "^7.0.0",
|
"postcss-reduce-transforms": "^7.0.0",
|
||||||
"postcss-svgo": "^7.0.1",
|
"postcss-svgo": "^7.0.1",
|
||||||
"postcss-unique-selectors": "^7.0.1"
|
"postcss-unique-selectors": "^7.0.2"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.12.0 || ^20.9.0 || >=22.0"
|
"node": "^18.12.0 || ^20.9.0 || >=22.0"
|
||||||
@@ -3313,9 +3313,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/hugo-bin": {
|
"node_modules/hugo-bin": {
|
||||||
"version": "0.128.0",
|
"version": "0.129.2",
|
||||||
"resolved": "https://registry.npmjs.org/hugo-bin/-/hugo-bin-0.128.0.tgz",
|
"resolved": "https://registry.npmjs.org/hugo-bin/-/hugo-bin-0.129.2.tgz",
|
||||||
"integrity": "sha512-WX8lcZS1jUTcsyylpXj+HqqtKwBjbMgXORhHmvIalfsUAm7EivN6Z54Wo8783zrjprPVPUlNXiJdXKMK42tUKg==",
|
"integrity": "sha512-OpfKbO8nkopEt8MBYPWQOgcL6IcotiskI+U1YRprAtw+ySUJHIDHfxMIcWeNmo66N/Reqm4RbDxFMDgKPUXGeQ==",
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
"type": "github",
|
"type": "github",
|
||||||
@@ -4335,6 +4335,7 @@
|
|||||||
"resolved": "https://registry.npmjs.org/npm-run-all/-/npm-run-all-4.1.5.tgz",
|
"resolved": "https://registry.npmjs.org/npm-run-all/-/npm-run-all-4.1.5.tgz",
|
||||||
"integrity": "sha512-Oo82gJDAVcaMdi3nuoKFavkIHBRVqQ1qvMb+9LHk/cF4P6B2m8aP04hGf7oL6wZ9BuGwX1onlLhpuoofSyoQDQ==",
|
"integrity": "sha512-Oo82gJDAVcaMdi3nuoKFavkIHBRVqQ1qvMb+9LHk/cF4P6B2m8aP04hGf7oL6wZ9BuGwX1onlLhpuoofSyoQDQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ansi-styles": "^3.2.1",
|
"ansi-styles": "^3.2.1",
|
||||||
"chalk": "^2.4.1",
|
"chalk": "^2.4.1",
|
||||||
@@ -4878,11 +4879,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/postcss-calc": {
|
"node_modules/postcss-calc": {
|
||||||
"version": "10.0.0",
|
"version": "10.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/postcss-calc/-/postcss-calc-10.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/postcss-calc/-/postcss-calc-10.0.1.tgz",
|
||||||
"integrity": "sha512-OmjhudoNTP0QleZCwl1i6NeBwN+5MZbY5ersLZz69mjJiDVv/p57RjRuKDkHeDWr4T+S97wQfsqRTNoDHB2e3g==",
|
"integrity": "sha512-pp1Z3FxtxA+xHAoWXcOXgnBN1WPu4ZiJ5LWGjKyf9MMreagAsaTUtnqFK1y1sHhyJddAkYTPu6XSuLgb3oYCjw==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"postcss-selector-parser": "^6.0.16",
|
"postcss-selector-parser": "^6.1.1",
|
||||||
"postcss-value-parser": "^4.2.0"
|
"postcss-value-parser": "^4.2.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
@@ -4934,11 +4935,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/postcss-colormin": {
|
"node_modules/postcss-colormin": {
|
||||||
"version": "7.0.1",
|
"version": "7.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-7.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-7.0.2.tgz",
|
||||||
"integrity": "sha512-uszdT0dULt3FQs47G5UHCduYK+FnkLYlpu1HpWu061eGsKZ7setoG7kA+WC9NQLsOJf69D5TxGHgnAdRgylnFQ==",
|
"integrity": "sha512-YntRXNngcvEvDbEjTdRWGU606eZvB5prmHG4BF0yLmVpamXbpsRJzevyy6MZVyuecgzI2AWAlvFi8DAeCqwpvA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"browserslist": "^4.23.1",
|
"browserslist": "^4.23.3",
|
||||||
"caniuse-api": "^3.0.0",
|
"caniuse-api": "^3.0.0",
|
||||||
"colord": "^2.9.3",
|
"colord": "^2.9.3",
|
||||||
"postcss-value-parser": "^4.2.0"
|
"postcss-value-parser": "^4.2.0"
|
||||||
@@ -4951,11 +4952,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/postcss-convert-values": {
|
"node_modules/postcss-convert-values": {
|
||||||
"version": "7.0.2",
|
"version": "7.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-7.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-7.0.3.tgz",
|
||||||
"integrity": "sha512-MuZIF6HJ4izko07Q0TgW6pClalI4al6wHRNPkFzqQdwAwG7hPn0lA58VZdxyb2Vl5AYjJ1piO+jgF9EnTjQwQQ==",
|
"integrity": "sha512-yJhocjCs2SQer0uZ9lXTMOwDowbxvhwFVrZeS6NPEij/XXthl73ggUmfwVvJM+Vaj5gtCKJV1jiUu4IhAUkX/Q==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"browserslist": "^4.23.1",
|
"browserslist": "^4.23.3",
|
||||||
"postcss-value-parser": "^4.2.0"
|
"postcss-value-parser": "^4.2.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
@@ -4966,11 +4967,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/postcss-discard-comments": {
|
"node_modules/postcss-discard-comments": {
|
||||||
"version": "7.0.1",
|
"version": "7.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-7.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-7.0.2.tgz",
|
||||||
"integrity": "sha512-GVrQxUOhmle1W6jX2SvNLt4kmN+JYhV7mzI6BMnkAWR9DtVvg8e67rrV0NfdWhn7x1zxvzdWkMBPdBDCls+uwQ==",
|
"integrity": "sha512-/Hje9Ls1IYcB9duELO/AyDUJI6aQVY3h5Rj1ziXgaLYCTi1iVBLnjg/TS0D6NszR/kDG6I86OwLmAYe+bvJjiQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"postcss-selector-parser": "^6.1.0"
|
"postcss-selector-parser": "^6.1.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.12.0 || ^20.9.0 || >=22.0"
|
"node": "^18.12.0 || ^20.9.0 || >=22.0"
|
||||||
@@ -4980,9 +4981,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/postcss-discard-duplicates": {
|
"node_modules/postcss-discard-duplicates": {
|
||||||
"version": "7.0.0",
|
"version": "7.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-7.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-7.0.1.tgz",
|
||||||
"integrity": "sha512-bAnSuBop5LpAIUmmOSsuvtKAAKREB6BBIYStWUTGq8oG5q9fClDMMuY8i4UPI/cEcDx2TN+7PMnXYIId20UVDw==",
|
"integrity": "sha512-oZA+v8Jkpu1ct/xbbrntHRsfLGuzoP+cpt0nJe5ED2FQF8n8bJtn7Bo28jSmBYwqgqnqkuSXJfSUEE7if4nClQ==",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.12.0 || ^20.9.0 || >=22.0"
|
"node": "^18.12.0 || ^20.9.0 || >=22.0"
|
||||||
},
|
},
|
||||||
@@ -5013,11 +5014,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/postcss-discard-unused": {
|
"node_modules/postcss-discard-unused": {
|
||||||
"version": "7.0.1",
|
"version": "7.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/postcss-discard-unused/-/postcss-discard-unused-7.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/postcss-discard-unused/-/postcss-discard-unused-7.0.2.tgz",
|
||||||
"integrity": "sha512-3myaiuHge0HaY+OMA42/xlXnVixhPQPmfxrpiLO3FBipgW/4A3UnWnAtlfo49tuxsCx4ZrS6+h/sa/68WNGWPg==",
|
"integrity": "sha512-X4tWgMGYNUkFRzd5DPvx6RnvVz2ATdcthB0xpPCa1yS7X2v9pB6WvR33DSFWJmWT/LLDRgkIA/UZhe5dHLNNUw==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"postcss-selector-parser": "^6.1.0"
|
"postcss-selector-parser": "^6.1.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.12.0 || ^20.9.0 || >=22.0"
|
"node": "^18.12.0 || ^20.9.0 || >=22.0"
|
||||||
@@ -5083,12 +5084,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/postcss-merge-longhand": {
|
"node_modules/postcss-merge-longhand": {
|
||||||
"version": "7.0.2",
|
"version": "7.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-7.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-7.0.3.tgz",
|
||||||
"integrity": "sha512-06vrW6ZWi9qeP7KMS9fsa9QW56+tIMW55KYqF7X3Ccn+NI2pIgPV6gFfvXTMQ05H90Y5DvnCDPZ2IuHa30PMUg==",
|
"integrity": "sha512-8waYomFxshdv6M9Em3QRM9MettRLDRcH2JQi2l0Z1KlYD/vhal3gbkeSES0NuACXOlZBB0V/B0AseHZaklzWOA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"postcss-value-parser": "^4.2.0",
|
"postcss-value-parser": "^4.2.0",
|
||||||
"stylehacks": "^7.0.2"
|
"stylehacks": "^7.0.3"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.12.0 || ^20.9.0 || >=22.0"
|
"node": "^18.12.0 || ^20.9.0 || >=22.0"
|
||||||
@@ -5098,14 +5099,14 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/postcss-merge-rules": {
|
"node_modules/postcss-merge-rules": {
|
||||||
"version": "7.0.2",
|
"version": "7.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-7.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-7.0.3.tgz",
|
||||||
"integrity": "sha512-VAR47UNvRsdrTHLe7TV1CeEtF9SJYR5ukIB9U4GZyZOptgtsS20xSxy+k5wMrI3udST6O1XuIn7cjQkg7sDAAw==",
|
"integrity": "sha512-2eSas2p3voPxNfdI5sQrvIkMaeUHpVc3EezgVs18hz/wRTQAC9U99tp9j3W5Jx9/L3qHkEDvizEx/LdnmumIvQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"browserslist": "^4.23.1",
|
"browserslist": "^4.23.3",
|
||||||
"caniuse-api": "^3.0.0",
|
"caniuse-api": "^3.0.0",
|
||||||
"cssnano-utils": "^5.0.0",
|
"cssnano-utils": "^5.0.0",
|
||||||
"postcss-selector-parser": "^6.1.0"
|
"postcss-selector-parser": "^6.1.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.12.0 || ^20.9.0 || >=22.0"
|
"node": "^18.12.0 || ^20.9.0 || >=22.0"
|
||||||
@@ -5145,11 +5146,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/postcss-minify-params": {
|
"node_modules/postcss-minify-params": {
|
||||||
"version": "7.0.1",
|
"version": "7.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-7.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-7.0.2.tgz",
|
||||||
"integrity": "sha512-e+Xt8xErSRPgSRFxHeBCSxMiO8B8xng7lh8E0A5ep1VfwYhY8FXhu4Q3APMjgx9YDDbSp53IBGENrzygbUvgUQ==",
|
"integrity": "sha512-nyqVLu4MFl9df32zTsdcLqCFfE/z2+f8GE1KHPxWOAmegSo6lpV2GNy5XQvrzwbLmiU7d+fYay4cwto1oNdAaQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"browserslist": "^4.23.1",
|
"browserslist": "^4.23.3",
|
||||||
"cssnano-utils": "^5.0.0",
|
"cssnano-utils": "^5.0.0",
|
||||||
"postcss-value-parser": "^4.2.0"
|
"postcss-value-parser": "^4.2.0"
|
||||||
},
|
},
|
||||||
@@ -5161,12 +5162,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/postcss-minify-selectors": {
|
"node_modules/postcss-minify-selectors": {
|
||||||
"version": "7.0.2",
|
"version": "7.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-7.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-7.0.3.tgz",
|
||||||
"integrity": "sha512-dCzm04wqW1uqLmDZ41XYNBJfjgps3ZugDpogAmJXoCb5oCiTzIX4oPXXKxDpTvWOnKxQKR4EbV4ZawJBLcdXXA==",
|
"integrity": "sha512-SxTgUQSgBk6wEqzQZKEv1xQYIp9UBju6no9q+npohzSdhuSICQdkqmD1UMKkZWItS3olJSJMDDEY9WOJ5oGJew==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"cssesc": "^3.0.0",
|
"cssesc": "^3.0.0",
|
||||||
"postcss-selector-parser": "^6.1.0"
|
"postcss-selector-parser": "^6.1.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.12.0 || ^20.9.0 || >=22.0"
|
"node": "^18.12.0 || ^20.9.0 || >=22.0"
|
||||||
@@ -5257,11 +5258,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/postcss-normalize-unicode": {
|
"node_modules/postcss-normalize-unicode": {
|
||||||
"version": "7.0.1",
|
"version": "7.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-7.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-7.0.2.tgz",
|
||||||
"integrity": "sha512-PTPGdY9xAkTw+8ZZ71DUePb7M/Vtgkbbq+EoI33EuyQEzbKemEQMhe5QSr0VP5UfZlreANDPxSfcdSprENcbsg==",
|
"integrity": "sha512-ztisabK5C/+ZWBdYC+Y9JCkp3M9qBv/XFvDtSw0d/XwfT3UaKeW/YTm/MD/QrPNxuecia46vkfEhewjwcYFjkg==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"browserslist": "^4.23.1",
|
"browserslist": "^4.23.3",
|
||||||
"postcss-value-parser": "^4.2.0"
|
"postcss-value-parser": "^4.2.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
@@ -5329,11 +5330,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/postcss-reduce-initial": {
|
"node_modules/postcss-reduce-initial": {
|
||||||
"version": "7.0.1",
|
"version": "7.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-7.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-7.0.2.tgz",
|
||||||
"integrity": "sha512-0JDUSV4bGB5FGM5g8MkS+rvqKukJZ7OTHw/lcKn7xPNqeaqJyQbUO8/dJpvyTpaVwPsd3Uc33+CfNzdVowp2WA==",
|
"integrity": "sha512-pOnu9zqQww7dEKf62Nuju6JgsW2V0KRNBHxeKohU+JkHd/GAH5uvoObqFLqkeB2n20mr6yrlWDvo5UBU5GnkfA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"browserslist": "^4.23.1",
|
"browserslist": "^4.23.3",
|
||||||
"caniuse-api": "^3.0.0"
|
"caniuse-api": "^3.0.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
@@ -5463,11 +5464,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/postcss-unique-selectors": {
|
"node_modules/postcss-unique-selectors": {
|
||||||
"version": "7.0.1",
|
"version": "7.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-7.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-7.0.2.tgz",
|
||||||
"integrity": "sha512-MH7QE/eKUftTB5ta40xcHLl7hkZjgDFydpfTK+QWXeHxghVt3VoPqYL5/G+zYZPPIs+8GuqFXSTgxBSoB1RZtQ==",
|
"integrity": "sha512-CjSam+7Vf8cflJQsHrMS0P2hmy9u0+n/P001kb5eAszLmhjMqrt/i5AqQuNFihhViwDvEAezqTmXqaYXL2ugMw==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"postcss-selector-parser": "^6.1.0"
|
"postcss-selector-parser": "^6.1.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.12.0 || ^20.9.0 || >=22.0"
|
"node": "^18.12.0 || ^20.9.0 || >=22.0"
|
||||||
@@ -6540,12 +6541,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/stylehacks": {
|
"node_modules/stylehacks": {
|
||||||
"version": "7.0.2",
|
"version": "7.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-7.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-7.0.3.tgz",
|
||||||
"integrity": "sha512-HdkWZS9b4gbgYTdMg4gJLmm7biAUug1qTqXjS+u8X+/pUd+9Px1E+520GnOW3rST9MNsVOVpsJG+mPHNosxjOQ==",
|
"integrity": "sha512-4DqtecvI/Nd+2BCvW9YEF6lhBN5UM50IJ1R3rnEAhBwbCKf4VehRf+uqvnVArnBayjYD/WtT3g0G/HSRxWfTRg==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"browserslist": "^4.23.1",
|
"browserslist": "^4.23.3",
|
||||||
"postcss-selector-parser": "^6.1.0"
|
"postcss-selector-parser": "^6.1.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.12.0 || ^20.9.0 || >=22.0"
|
"node": "^18.12.0 || ^20.9.0 || >=22.0"
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@gethinode/hinode",
|
"name": "@gethinode/hinode",
|
||||||
"version": "0.25.2",
|
"version": "0.26.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",
|
||||||
@@ -69,9 +69,9 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fullhuman/postcss-purgecss": "^6.0.0",
|
"@fullhuman/postcss-purgecss": "^6.0.0",
|
||||||
"autoprefixer": "^10.4.20",
|
"autoprefixer": "^10.4.20",
|
||||||
"cssnano": "^7.0.4",
|
"cssnano": "^7.0.5",
|
||||||
"cssnano-preset-advanced": "^7.0.4",
|
"cssnano-preset-advanced": "^7.0.5",
|
||||||
"hugo-bin": "0.128.0",
|
"hugo-bin": "0.129.2",
|
||||||
"purgecss-whitelister": "^2.4.0"
|
"purgecss-whitelister": "^2.4.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@@ -6,7 +6,7 @@ homepage = "https://gethinode.com"
|
|||||||
demosite = "https://demo.gethinode.com"
|
demosite = "https://demo.gethinode.com"
|
||||||
tags = ["blog", "documentation", "minimal", "modern", "customizable", "search", "bootstrap"]
|
tags = ["blog", "documentation", "minimal", "modern", "customizable", "search", "bootstrap"]
|
||||||
features = ["security aware", "fast by default", "seo-ready", "development tools", "bootstrap framework", "netlify-ready", "full text search", "page layouts", "versioned documentation"]
|
features = ["security aware", "fast by default", "seo-ready", "development tools", "bootstrap framework", "netlify-ready", "full text search", "page layouts", "versioned documentation"]
|
||||||
min_version = "0.120.0"
|
min_version = "0.132.0"
|
||||||
|
|
||||||
[author]
|
[author]
|
||||||
name = "Mark Dumay"
|
name = "Mark Dumay"
|
||||||
|
Reference in New Issue
Block a user