mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-07 18:14:28 +00:00
Compare commits
239 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
ea8e851e45 | ||
![]() |
90e6c9869d | ||
![]() |
628eb99f62 | ||
![]() |
a0293cc081 | ||
![]() |
d37dcdd20c | ||
![]() |
f0ff631b0d | ||
![]() |
b84bd07073 | ||
![]() |
b800906956 | ||
![]() |
049b38d3c1 | ||
![]() |
27c2500c92 | ||
![]() |
a182b2a134 | ||
![]() |
43abf793b8 | ||
![]() |
e11fa8d377 | ||
![]() |
fb94544bb0 | ||
![]() |
67f687d6b9 | ||
![]() |
879efc07e8 | ||
![]() |
29bcb26d04 | ||
![]() |
e04a8dc0ed | ||
![]() |
c7e70bf933 | ||
![]() |
1700abc7de | ||
![]() |
3ef857dba9 | ||
![]() |
5acc2e8f9e | ||
![]() |
0caa00a1a1 | ||
![]() |
b27a5ac7cb | ||
![]() |
24261c9193 | ||
![]() |
d1aa9c0f7c | ||
![]() |
a18d387379 | ||
![]() |
2d9cbf9195 | ||
![]() |
64abda14ce | ||
![]() |
3625675577 | ||
![]() |
e6e115a65d | ||
![]() |
9832b566db | ||
![]() |
f3211eabe0 | ||
![]() |
82c1d00af4 | ||
![]() |
70386eaeec | ||
![]() |
7413155dea | ||
![]() |
cfd1706f5f | ||
![]() |
5eca63c50d | ||
![]() |
d3f471a281 | ||
![]() |
b4acd7aef2 | ||
![]() |
49a3ef3c42 | ||
![]() |
56eaa9d90b | ||
![]() |
492dbbec24 | ||
![]() |
d2fc5e3433 | ||
![]() |
b5cc3f6d84 | ||
![]() |
e1e1041c1b | ||
![]() |
e1cac645a7 | ||
![]() |
d23d533575 | ||
![]() |
d447a4a65a | ||
![]() |
3a466277e3 | ||
![]() |
2b09ceef93 | ||
![]() |
ee30409257 | ||
![]() |
c5edb65550 | ||
![]() |
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 | ||
![]() |
753b949af2 | ||
![]() |
2322cdcdc0 | ||
![]() |
edc8128395 | ||
![]() |
cc22f73f5c | ||
![]() |
8312de35c8 | ||
![]() |
a3a8d7e08c | ||
![]() |
0513692cf5 | ||
![]() |
bfa6e00c2f | ||
![]() |
c61fa6b4c7 | ||
![]() |
c754451002 | ||
![]() |
8d4cb82863 | ||
![]() |
ae18134218 | ||
![]() |
fb20543d88 | ||
![]() |
14d1489b60 | ||
![]() |
e99ac83fbc | ||
![]() |
d96b103180 | ||
![]() |
7f1dc95402 | ||
![]() |
e3420e357c | ||
![]() |
5ee51ebb18 | ||
![]() |
684ec0f823 | ||
![]() |
5335e3d607 | ||
![]() |
3fc51e6158 | ||
![]() |
4a20e8beef | ||
![]() |
163ac52332 | ||
![]() |
176c5447a8 | ||
![]() |
1a88fa93bb | ||
![]() |
b0d266aedc | ||
![]() |
eba81c236a | ||
![]() |
cdca92ea02 | ||
![]() |
a4743aabf5 | ||
![]() |
cf8465e627 | ||
![]() |
86941f05d0 | ||
![]() |
cbb777f524 | ||
![]() |
d20d00e42f | ||
![]() |
348981a1a0 | ||
![]() |
0942d79e2c | ||
![]() |
0251bd1838 | ||
![]() |
ae5e240cf1 | ||
![]() |
dd127b973a | ||
![]() |
63b186a2e5 | ||
![]() |
bc71ba1d19 | ||
![]() |
9c3bd970a5 | ||
![]() |
9f143786af | ||
![]() |
e8ccada6f3 | ||
![]() |
a40092b1eb | ||
![]() |
00965b5224 | ||
![]() |
92dc97d325 | ||
![]() |
2394f148e5 | ||
![]() |
8d259a3e3a | ||
![]() |
1c8912e92e | ||
![]() |
207c08431f | ||
![]() |
d2703d4885 | ||
![]() |
4728191370 | ||
![]() |
cd40d75962 | ||
![]() |
2d4732d03b | ||
![]() |
e3c256b41f | ||
![]() |
f0a53f252c | ||
![]() |
a1273d99d5 | ||
![]() |
4e62956c82 | ||
![]() |
cf096a7f6a | ||
![]() |
ee790dc6fd | ||
![]() |
df9bc9ed6c | ||
![]() |
69338b4abf | ||
![]() |
c206054dc8 | ||
![]() |
a2bcba5916 | ||
![]() |
788b68f6bc | ||
![]() |
73697f43aa | ||
![]() |
129df382cd | ||
![]() |
c15eb4edc3 | ||
![]() |
12725caa1c | ||
![]() |
6077c33fcc | ||
![]() |
b944d818c8 | ||
![]() |
f25fbb3440 | ||
![]() |
0b9d43f130 | ||
![]() |
884da31fd0 | ||
![]() |
6dbfb0ac64 | ||
![]() |
3bef9579b4 | ||
![]() |
0ea1f92d4c | ||
![]() |
77d44d44c6 | ||
![]() |
e8c1eac2af | ||
![]() |
2f992b82cf | ||
![]() |
fe70b24859 | ||
![]() |
d18f0469fc | ||
![]() |
497c5d0e5e | ||
![]() |
834435db00 | ||
![]() |
3d8195e24b | ||
![]() |
ce31587f22 | ||
![]() |
6342ae1a33 | ||
![]() |
88eb894fde | ||
![]() |
8870668c21 | ||
![]() |
cd379fa8d7 | ||
![]() |
fd029492f7 | ||
![]() |
29b0d6f978 | ||
![]() |
bed2afe44d | ||
![]() |
1922fc825e | ||
![]() |
8c3ea99429 | ||
![]() |
d8929da5ec | ||
![]() |
4a5e8c7311 | ||
![]() |
600b487f43 | ||
![]() |
ed013e9b6f | ||
![]() |
5a299a73dc | ||
![]() |
82f3837db1 | ||
![]() |
69cf1ccf6c | ||
![]() |
bf76ee7108 | ||
![]() |
7a1c3970ea | ||
![]() |
a679b1c7e0 | ||
![]() |
bb448f3194 | ||
![]() |
b017a0a785 | ||
![]() |
00d141a4da | ||
![]() |
88dfc50c50 | ||
![]() |
61ad1106c5 | ||
![]() |
f47d738577 | ||
![]() |
323f36a514 | ||
![]() |
151b1d2230 | ||
![]() |
f58f8f1a0a | ||
![]() |
7c786048cc | ||
![]() |
2c0a34c0e1 | ||
![]() |
b6320787e7 | ||
![]() |
c695e0a1f5 | ||
![]() |
8acd6538a5 | ||
![]() |
e18bb8f1b2 | ||
![]() |
d74f9565e4 | ||
![]() |
3016267a7b | ||
![]() |
d1b347b46f | ||
![]() |
777440ef22 | ||
![]() |
f104ff1519 | ||
![]() |
a7a0d26b27 | ||
![]() |
058cebb0b4 | ||
![]() |
af146e3989 | ||
![]() |
69c306bb69 | ||
![]() |
1cfe6190b6 | ||
![]() |
4b40e66534 | ||
![]() |
96af9412b3 |
@@ -1,6 +1,8 @@
|
|||||||
|
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
|
||||||
|
assets/js/navbar.js
|
||||||
assets/js/sharing.js
|
assets/js/sharing.js
|
||||||
assets/js/vendor
|
assets/js/vendor
|
||||||
node_modules
|
node_modules
|
||||||
|
2
.github/workflows/lint-build.yml
vendored
2
.github/workflows/lint-build.yml
vendored
@@ -43,7 +43,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
os: [macos-latest, windows-latest, ubuntu-latest]
|
os: [macos-latest, windows-latest, ubuntu-latest]
|
||||||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
||||||
node-version: [18.x, 20.x]
|
node-version: [20.x, 22.x]
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,4 +1,4 @@
|
|||||||
/_vendor
|
_vendor/
|
||||||
public/
|
public/
|
||||||
resources/
|
resources/
|
||||||
node_modules/
|
node_modules/
|
||||||
|
@@ -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 */
|
@@ -1,3 +1,4 @@
|
|||||||
|
const fixed = {{ site.Params.navigation.fixed }}
|
||||||
const navbar = document.querySelector('.navbar')
|
const navbar = document.querySelector('.navbar')
|
||||||
const togglers = document.querySelectorAll('.main-nav-toggler')
|
const togglers = document.querySelectorAll('.main-nav-toggler')
|
||||||
const modeSelectors = document.querySelectorAll('.switch-mode-collapsed')
|
const modeSelectors = document.querySelectorAll('.switch-mode-collapsed')
|
||||||
@@ -11,13 +12,16 @@ 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')
|
||||||
|
|
||||||
|
if (defaultTheme) {
|
||||||
navbar.setAttribute('data-bs-theme', defaultTheme)
|
navbar.setAttribute('data-bs-theme', defaultTheme)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ((navbar !== null) && (window.performance.getEntriesByType)) {
|
if ((navbar !== null) && (window.performance.getEntriesByType)) {
|
||||||
if (window.performance.getEntriesByType('navigation')[0].type === 'reload') {
|
if (window.performance.getEntriesByType('navigation')[0].type === 'reload') {
|
||||||
updateNavbar()
|
fixed && updateNavbar()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -29,7 +33,7 @@ if (navbar !== null && togglers !== null) {
|
|||||||
attributeFilter: ['data-bs-theme']
|
attributeFilter: ['data-bs-theme']
|
||||||
}
|
}
|
||||||
const Observer = new MutationObserver((mutationrecords) => {
|
const Observer = new MutationObserver((mutationrecords) => {
|
||||||
updateNavbar()
|
fixed && updateNavbar()
|
||||||
})
|
})
|
||||||
Observer.observe(html, config)
|
Observer.observe(html, config)
|
||||||
|
|
||||||
@@ -40,7 +44,7 @@ if (navbar !== null && togglers !== null) {
|
|||||||
|
|
||||||
// set the navbar background color to opaque when scrolling past a breakpoint
|
// set the navbar background color to opaque when scrolling past a breakpoint
|
||||||
window.onscroll = () => {
|
window.onscroll = () => {
|
||||||
updateNavbar()
|
fixed && updateNavbar()
|
||||||
}
|
}
|
||||||
|
|
||||||
// set the navbar background color to opaque when expanded
|
// set the navbar background color to opaque when expanded
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -146,6 +146,24 @@ $utilities: map-merge(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.main-cover {
|
||||||
|
min-height: 100vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-up(xxl) {
|
||||||
|
.main-cover {
|
||||||
|
min-height: calc(min(100vh, 1000px));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* stylelint-disable media-feature-range-notation */
|
||||||
|
@media (min-height: 1400px) {
|
||||||
|
.main-cover {
|
||||||
|
min-height: calc(min(100vh, 1000px));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/* stylelint-enable media-feature-range-notation */
|
||||||
|
|
||||||
$utilities: map-merge(
|
$utilities: map-merge(
|
||||||
$utilities,
|
$utilities,
|
||||||
(
|
(
|
||||||
|
@@ -1,6 +1,54 @@
|
|||||||
.blockquote {
|
.blockquote {
|
||||||
// background: var(--bs-light);
|
|
||||||
border-left: 0.3rem solid;
|
border-left: 0.3rem solid;
|
||||||
border-color: $secondary;
|
border-color: $secondary;
|
||||||
padding: 1rem 1.5rem;
|
padding: 1rem 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.blockquote-alert {
|
||||||
|
--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,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// adapted from https://www.codeply.com/p/UsTEwDkzNp#
|
.navbar-overlay {
|
||||||
.checkbox {
|
|
||||||
opacity: 0;
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
z-index: $zindex-fixed;
|
||||||
|
|
||||||
.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);
|
|
||||||
}
|
}
|
||||||
|
@@ -1,3 +1,16 @@
|
|||||||
|
.datatable-container {
|
||||||
|
border-bottom: none if($enable-important-utilities, !important, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
.datatable-bottom {
|
||||||
|
padding-top: 0 if($enable-important-utilities, !important, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
.datatable-sorter {
|
||||||
|
padding-left: 0;
|
||||||
|
padding-right: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
@if $enable-dark-mode {
|
@if $enable-dark-mode {
|
||||||
@include color-mode(dark) {
|
@include color-mode(dark) {
|
||||||
.table-striped, .table-striped-columns {
|
.table-striped, .table-striped-columns {
|
||||||
@@ -9,5 +22,13 @@
|
|||||||
--bs-table-hover-bg: var(--bs-tertiary-bg);
|
--bs-table-hover-bg: var(--bs-tertiary-bg);
|
||||||
--bs-table-striped-color: var(--bs-body-color);
|
--bs-table-striped-color: var(--bs-body-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.datatable-pagination-list-item {
|
||||||
|
&:hover,
|
||||||
|
&:focus,
|
||||||
|
&.datatable-active {
|
||||||
|
color: var(--bs-body-bg) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -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"
|
||||||
@@ -125,7 +125,7 @@ home = ["HTML", "RSS", "REDIR"]
|
|||||||
[[module.imports]]
|
[[module.imports]]
|
||||||
path = "github.com/gethinode/mod-bootstrap"
|
path = "github.com/gethinode/mod-bootstrap"
|
||||||
[[module.imports]]
|
[[module.imports]]
|
||||||
path = "github.com/gethinode/mod-flexsearch"
|
path = "github.com/gethinode/mod-flexsearch/v2"
|
||||||
[[module.imports]]
|
[[module.imports]]
|
||||||
path = "github.com/gethinode/mod-fontawesome"
|
path = "github.com/gethinode/mod-fontawesome"
|
||||||
[[module.imports]]
|
[[module.imports]]
|
||||||
@@ -134,6 +134,8 @@ home = ["HTML", "RSS", "REDIR"]
|
|||||||
path = "github.com/gethinode/mod-leaflet"
|
path = "github.com/gethinode/mod-leaflet"
|
||||||
[[module.imports]]
|
[[module.imports]]
|
||||||
path = "github.com/gethinode/mod-lottie"
|
path = "github.com/gethinode/mod-lottie"
|
||||||
|
[[module.imports]]
|
||||||
|
path = "github.com/gethinode/mod-simple-datatables"
|
||||||
[[module.imports]]
|
[[module.imports]]
|
||||||
path = "github.com/gethinode/mod-utils/v2"
|
path = "github.com/gethinode/mod-utils/v2"
|
||||||
# toml-docs-end modules
|
# toml-docs-end modules
|
||||||
|
@@ -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
|
||||||
@@ -31,6 +32,7 @@
|
|||||||
showJS = false
|
showJS = false
|
||||||
showSCSS = false
|
showSCSS = false
|
||||||
purgeHTMLComments = false
|
purgeHTMLComments = false
|
||||||
|
includeSVGOrigin = true
|
||||||
# toml-docs-end debugging
|
# toml-docs-end debugging
|
||||||
|
|
||||||
# toml-docs-start docs
|
# toml-docs-start docs
|
||||||
@@ -170,16 +172,16 @@
|
|||||||
# linkedIn = ""
|
# linkedIn = ""
|
||||||
github = "https://github.com/gethinode/hinode"
|
github = "https://github.com/gethinode/hinode"
|
||||||
section = "blog"
|
section = "blog"
|
||||||
[author]
|
[schema.author]
|
||||||
name = "Mark Dumay"
|
name = "Mark Dumay"
|
||||||
# twitter = "https://twitter.com/markdumay"
|
# twitter = "https://twitter.com/markdumay"
|
||||||
linkedin = "https://www.linkedin.com/in/markdumay/"
|
linkedin = "https://www.linkedin.com/in/markdumay/"
|
||||||
github = "https://github.com/markdumay"
|
github = "https://github.com/markdumay"
|
||||||
[logo]
|
[schema.logo]
|
||||||
url = "img/logo512x512.png"
|
url = "img/logo512x512.png"
|
||||||
width = 512
|
width = 512
|
||||||
height = 512
|
height = 512
|
||||||
[image]
|
[schema.image]
|
||||||
url = "img/logo1280x640.png"
|
url = "img/logo1280x640.png"
|
||||||
width = 1280
|
width = 1280
|
||||||
height = 640
|
height = 640
|
||||||
|
@@ -24,9 +24,10 @@ const purgecss = require('@fullhuman/postcss-purgecss')({
|
|||||||
'./assets/scss/components/_video.scss',
|
'./assets/scss/components/_video.scss',
|
||||||
'./assets/scss/theme/fonts.scss',
|
'./assets/scss/theme/fonts.scss',
|
||||||
'./assets/scss/theme/theme.scss',
|
'./assets/scss/theme/theme.scss',
|
||||||
'./_vendor/github.com/gethinode/mod-flexsearch/assets/scss/modules/flexsearch/flexsearch.scss',
|
'./_vendor/github.com/gethinode/mod-flexsearch/v2/assets/scss/modules/flexsearch/flexsearch.scss',
|
||||||
'./_vendor/github.com/gethinode/mod-katex/dist/katex.scss',
|
'./_vendor/github.com/gethinode/mod-katex/dist/katex.scss',
|
||||||
'./_vendor/github.com/gethinode/mod-leaflet/dist/leaflet.scss',
|
'./_vendor/github.com/gethinode/mod-leaflet/dist/leaflet.scss',
|
||||||
|
'./_vendor/github.com/gethinode/mod-simple-datatables/dist/simple-datatables.scss',
|
||||||
'./_vendor/github.com/twbs/bootstrap/scss/_carousel.scss',
|
'./_vendor/github.com/twbs/bootstrap/scss/_carousel.scss',
|
||||||
'./_vendor/github.com/twbs/bootstrap/scss/_dropdown.scss',
|
'./_vendor/github.com/twbs/bootstrap/scss/_dropdown.scss',
|
||||||
'./_vendor/github.com/twbs/bootstrap/scss/_modal.scss',
|
'./_vendor/github.com/twbs/bootstrap/scss/_modal.scss',
|
||||||
|
@@ -122,6 +122,13 @@ arguments:
|
|||||||
Enables horizontal scrolling of the cards. By default, the card group
|
Enables horizontal scrolling of the cards. By default, the card group
|
||||||
wraps any cards beyond the amount of defined columns to a new line. When
|
wraps any cards beyond the amount of defined columns to a new line. When
|
||||||
`scroll` is set to true, a horizontal scroll bar is added instead.
|
`scroll` is set to true, a horizontal scroll bar is added instead.
|
||||||
|
spacer:
|
||||||
|
type: bool
|
||||||
|
optional: true
|
||||||
|
comment: >-
|
||||||
|
Inserts a spacer before the card.
|
||||||
|
release: v0.24.16
|
||||||
|
group: partial
|
||||||
hook:
|
hook:
|
||||||
type: string
|
type: string
|
||||||
optional: true
|
optional: true
|
||||||
|
@@ -90,6 +90,18 @@ arguments:
|
|||||||
- publication
|
- publication
|
||||||
- tags
|
- tags
|
||||||
- none
|
- none
|
||||||
|
body:
|
||||||
|
type: select
|
||||||
|
optional: true
|
||||||
|
default: full
|
||||||
|
parent: cascade
|
||||||
|
release: v0.24.16
|
||||||
|
comment: >-
|
||||||
|
Body of the card.
|
||||||
|
options:
|
||||||
|
values:
|
||||||
|
- full
|
||||||
|
- none
|
||||||
footer:
|
footer:
|
||||||
type: select
|
type: select
|
||||||
optional: true
|
optional: true
|
||||||
@@ -146,6 +158,16 @@ arguments:
|
|||||||
- 16x9
|
- 16x9
|
||||||
- 21x9
|
- 21x9
|
||||||
group: partial
|
group: partial
|
||||||
|
portrait:
|
||||||
|
type: bool
|
||||||
|
parent: cascade
|
||||||
|
optional: true
|
||||||
|
default: false
|
||||||
|
release: v0.24.16
|
||||||
|
comment: >-
|
||||||
|
Flag to adjust the ratio from landscape to portrait. The image itself is
|
||||||
|
not rotated, only the crop area is adjusted. Not applicable to vector
|
||||||
|
graphics.
|
||||||
alt:
|
alt:
|
||||||
type: string
|
type: string
|
||||||
optional: true
|
optional: true
|
||||||
@@ -249,6 +271,25 @@ arguments:
|
|||||||
One or more strings separated by commas, indicating the source sizes of an
|
One or more strings separated by commas, indicating the source sizes of an
|
||||||
image set.
|
image set.
|
||||||
group: partial
|
group: partial
|
||||||
|
anchor:
|
||||||
|
type: select
|
||||||
|
optional: true
|
||||||
|
comment:
|
||||||
|
Anchor of the thumbnail's crop box, defaults to anchor value set in
|
||||||
|
`imaging` section of the site configuration (usually `Smart`).
|
||||||
|
options:
|
||||||
|
values:
|
||||||
|
- TopLeft
|
||||||
|
- Top
|
||||||
|
- TopRight
|
||||||
|
- Left
|
||||||
|
- Center
|
||||||
|
- Right
|
||||||
|
- BottomLeft
|
||||||
|
- Bottom
|
||||||
|
- BottomRight
|
||||||
|
- Smart
|
||||||
|
release: v0.24.23
|
||||||
body:
|
body:
|
||||||
optional: true
|
optional: true
|
||||||
comment: >-
|
comment: >-
|
||||||
|
@@ -60,3 +60,20 @@ arguments:
|
|||||||
type: int
|
type: int
|
||||||
optional: false
|
optional: false
|
||||||
comment: Width of the image in pixels.
|
comment: Width of the image in pixels.
|
||||||
|
anchor:
|
||||||
|
type: select
|
||||||
|
optional: true
|
||||||
|
comment: Anchor of the crop box.
|
||||||
|
options:
|
||||||
|
values:
|
||||||
|
- TopLeft
|
||||||
|
- Top
|
||||||
|
- TopRight
|
||||||
|
- Left
|
||||||
|
- Center
|
||||||
|
- Right
|
||||||
|
- BottomLeft
|
||||||
|
- Bottom
|
||||||
|
- BottomRight
|
||||||
|
- Smart
|
||||||
|
|
||||||
|
@@ -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:
|
||||||
@@ -138,3 +141,22 @@ arguments:
|
|||||||
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
|
release: v0.24.0
|
||||||
|
anchor:
|
||||||
|
type: select
|
||||||
|
optional: true
|
||||||
|
comment:
|
||||||
|
Anchor of the crop box, defaults to anchor value set in `imaging` section
|
||||||
|
of the site configuration (usually `Smart`).
|
||||||
|
options:
|
||||||
|
values:
|
||||||
|
- TopLeft
|
||||||
|
- Top
|
||||||
|
- TopRight
|
||||||
|
- Left
|
||||||
|
- Center
|
||||||
|
- Right
|
||||||
|
- BottomLeft
|
||||||
|
- Bottom
|
||||||
|
- BottomRight
|
||||||
|
- Smart
|
||||||
|
release: v0.24.22
|
||||||
|
@@ -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
|
||||||
|
69
data/structures/scripts.yml
Normal file
69
data/structures/scripts.yml
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
comment: >-
|
||||||
|
Bundles a JavaScript file for client-side processing. Scripts can be included
|
||||||
|
as critical, core, or optional file.
|
||||||
|
arguments:
|
||||||
|
page:
|
||||||
|
type:
|
||||||
|
- '*hugolib.pageState'
|
||||||
|
- '*hugolib.pageForShortcode'
|
||||||
|
optional: false
|
||||||
|
comment: Context of the current page.
|
||||||
|
core:
|
||||||
|
type: bool
|
||||||
|
default: false
|
||||||
|
optional: true
|
||||||
|
comment: >-
|
||||||
|
Trigger to include all core files in the script bundle. Core bundles are
|
||||||
|
loaded asynchronously in each page of the site.
|
||||||
|
filename:
|
||||||
|
type: string
|
||||||
|
default: js/main.bundle.js
|
||||||
|
optional: true
|
||||||
|
comment: >-
|
||||||
|
Path of the target bundle file, relative to the site root.
|
||||||
|
match:
|
||||||
|
type: string
|
||||||
|
default: {js/*.js,js/vendor/**.js}
|
||||||
|
optional: true
|
||||||
|
comment: >-
|
||||||
|
Regular expression that defines the pattern of source files to be included
|
||||||
|
in the bundle. The pattern is relative to the project's `asset` folder.
|
||||||
|
header:
|
||||||
|
type: bool
|
||||||
|
default: false
|
||||||
|
comment: >-
|
||||||
|
Trigger to consider the script as loaded in the page header. When enabled,
|
||||||
|
it includes a script to load Google Analytics adjacent to any bundle
|
||||||
|
input.
|
||||||
|
localize:
|
||||||
|
type: bool
|
||||||
|
default: false
|
||||||
|
optional: true
|
||||||
|
comment: >-
|
||||||
|
Triggers the creation of a language-specific bundle file. The language
|
||||||
|
code is appended as suffix to the base name. For example, the English
|
||||||
|
version of `js/main.bundle.js` becomes `js/main.bundle.en.js`.
|
||||||
|
skipTemplate:
|
||||||
|
type: bool
|
||||||
|
default: false
|
||||||
|
optional: true
|
||||||
|
comment: >-
|
||||||
|
Script source input can contain Go Template magic. As such, Hinode
|
||||||
|
processes all input files with `resources.ExecuteAsTemplate`. However,
|
||||||
|
certain input files may be incompatible. Set `skipTemplate` to true to
|
||||||
|
skip template processing.
|
||||||
|
state:
|
||||||
|
type: select
|
||||||
|
optional: true
|
||||||
|
default: async
|
||||||
|
comment: >-
|
||||||
|
Defines the loading behavior of the script bundle. By default, scripts are
|
||||||
|
processed in the background and loaded when ready (`async`). Set the state
|
||||||
|
to `immediate` to load the script immediately (such as critical scripts).
|
||||||
|
Use 'defer' to load the script in relative order when the DOM is fully
|
||||||
|
built.
|
||||||
|
options:
|
||||||
|
values:
|
||||||
|
- async
|
||||||
|
- defer
|
||||||
|
- immediate
|
@@ -1,6 +1,7 @@
|
|||||||
comment: >-
|
comment: >-
|
||||||
Makes a markdown table responsive. Responsive tables scroll horizontally to
|
Makes a markdown table responsive. Responsive tables scroll horizontally to
|
||||||
improve their layout on smaller screens.
|
improve their layout on smaller screens. To features `sortable`, `paging`,
|
||||||
|
and `searchable` require the module `simple-datatables`.
|
||||||
arguments:
|
arguments:
|
||||||
breakpoint:
|
breakpoint:
|
||||||
type: select
|
type: select
|
||||||
@@ -24,6 +25,21 @@ arguments:
|
|||||||
type: string
|
type: string
|
||||||
optional: true
|
optional: true
|
||||||
comment: Class attribute of the table element, e.g. `table-striped-columns w-auto`.
|
comment: Class attribute of the table element, e.g. `table-striped-columns w-auto`.
|
||||||
|
sortable:
|
||||||
|
type: bool
|
||||||
|
optional: true
|
||||||
|
comment: Toggle the ability to sort the columns.
|
||||||
|
release: v0.24.13
|
||||||
|
paging:
|
||||||
|
type: bool
|
||||||
|
optional: true
|
||||||
|
comment: Whether paging is enabled for the table.
|
||||||
|
release: v0.24.13
|
||||||
|
searchable:
|
||||||
|
type: bool
|
||||||
|
optional: true
|
||||||
|
comment: Toggle the ability to search the dataset.
|
||||||
|
release: v0.24.13
|
||||||
body:
|
body:
|
||||||
type: string
|
type: string
|
||||||
optional: false
|
optional: false
|
||||||
|
@@ -23,4 +23,13 @@ arguments:
|
|||||||
type: bool
|
type: bool
|
||||||
optional: true
|
optional: true
|
||||||
default: false
|
default: false
|
||||||
comment: Flag indicating the video should start playing immediately when loaded.
|
comment: >-
|
||||||
|
Flag indicating the video should start playing immediately when loaded, if
|
||||||
|
supported by the browser. The audio will be muted.
|
||||||
|
autotitle:
|
||||||
|
type: bool
|
||||||
|
optional: true
|
||||||
|
default: false
|
||||||
|
release: v0.25.2
|
||||||
|
comment: >-
|
||||||
|
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/
|
||||||
|
|
||||||
|
@@ -22,6 +22,8 @@ reference = "More Projects"
|
|||||||
languageName = "Nederlands"
|
languageName = "Nederlands"
|
||||||
contentDir = "content/nl"
|
contentDir = "content/nl"
|
||||||
weight = 2
|
weight = 2
|
||||||
|
[nl.params.opengraph]
|
||||||
|
locale = "nl_NL"
|
||||||
[nl.params.head]
|
[nl.params.head]
|
||||||
tagline = "Een Hugo Thema"
|
tagline = "Een Hugo Thema"
|
||||||
[nl.params.social]
|
[nl.params.social]
|
||||||
@@ -39,6 +41,8 @@ reference = "Meer projecten"
|
|||||||
languageName = "Français"
|
languageName = "Français"
|
||||||
contentDir = "content/fr"
|
contentDir = "content/fr"
|
||||||
weight = 2
|
weight = 2
|
||||||
|
[fr.params.opengraph]
|
||||||
|
locale = "fr_FR"
|
||||||
[fr.params.head]
|
[fr.params.head]
|
||||||
tagline = "Un thème Hugo"
|
tagline = "Un thème Hugo"
|
||||||
[fr.params.social]
|
[fr.params.social]
|
||||||
|
@@ -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
|
||||||
@@ -17,6 +18,7 @@
|
|||||||
showJS = false
|
showJS = false
|
||||||
showSCSS = false
|
showSCSS = false
|
||||||
purgeHTMLComments = true # prevents a Goldmark warning when processing HTML comments (as used by markdownlint)
|
purgeHTMLComments = true # prevents a Goldmark warning when processing HTML comments (as used by markdownlint)
|
||||||
|
includeSVGOrigin = true
|
||||||
|
|
||||||
[docs]
|
[docs]
|
||||||
basePath = "/" # TODO: replace
|
basePath = "/" # TODO: replace
|
||||||
@@ -163,16 +165,16 @@
|
|||||||
# linkedIn = ""
|
# linkedIn = ""
|
||||||
github = "https://github.com/gethinode/hinode"
|
github = "https://github.com/gethinode/hinode"
|
||||||
section = "blog"
|
section = "blog"
|
||||||
[author]
|
[schema.author]
|
||||||
name = "Mark Dumay"
|
name = "Mark Dumay"
|
||||||
# twitter = "https://twitter.com/markdumay"
|
# twitter = "https://twitter.com/markdumay"
|
||||||
linkedin = "https://www.linkedin.com/in/markdumay/"
|
linkedin = "https://www.linkedin.com/in/markdumay/"
|
||||||
github = "https://github.com/markdumay"
|
github = "https://github.com/markdumay"
|
||||||
[logo]
|
[schema.logo]
|
||||||
url = "img/logo512x512.png"
|
url = "img/logo512x512.png"
|
||||||
width = 512
|
width = 512
|
||||||
height = 512
|
height = 512
|
||||||
[image]
|
[schema.image]
|
||||||
url = "img/logo1280x640.png"
|
url = "img/logo1280x640.png"
|
||||||
width = 1280
|
width = 1280
|
||||||
height = 640
|
height = 640
|
||||||
|
@@ -24,7 +24,7 @@ const purgecss = require('@fullhuman/postcss-purgecss')({
|
|||||||
'./_vendor/github.com/gethinode/hinode/assets/scss/components/_video.scss',
|
'./_vendor/github.com/gethinode/hinode/assets/scss/components/_video.scss',
|
||||||
'./_vendor/github.com/gethinode/hinode/assets/scss/theme/fonts.scss',
|
'./_vendor/github.com/gethinode/hinode/assets/scss/theme/fonts.scss',
|
||||||
'./_vendor/github.com/gethinode/hinode/assets/scss/theme/theme.scss',
|
'./_vendor/github.com/gethinode/hinode/assets/scss/theme/theme.scss',
|
||||||
'./_vendor/github.com/gethinode/mod-flexsearch/assets/scss/modules/flexsearch/flexsearch.scss',
|
'./_vendor/github.com/gethinode/mod-flexsearch/v2/assets/scss/modules/flexsearch/flexsearch.scss',
|
||||||
'./_vendor/github.com/gethinode/mod-katex/dist/katex.scss',
|
'./_vendor/github.com/gethinode/mod-katex/dist/katex.scss',
|
||||||
'./_vendor/github.com/gethinode/mod-leaflet/dist/leaflet.scss',
|
'./_vendor/github.com/gethinode/mod-leaflet/dist/leaflet.scss',
|
||||||
'./_vendor/github.com/twbs/bootstrap/scss/_carousel.scss',
|
'./_vendor/github.com/twbs/bootstrap/scss/_carousel.scss',
|
||||||
|
@@ -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" >}}
|
||||||
@@ -255,14 +255,22 @@ As an example, the following shortcodes show a square check, a brand logo, a cir
|
|||||||
|
|
||||||
## Image
|
## Image
|
||||||
|
|
||||||
As an example, the following shortcode displays an image with rounded corners and a 21x9 aspect ratio.
|
As an example, the following shortcode displays an image with rounded corners and a 4x3 aspect ratio in portrait mode.
|
||||||
|
|
||||||
<!-- markdownlint-disable MD037 -->
|
<!-- markdownlint-disable MD037 -->
|
||||||
{{< example lang="hugo" >}}
|
{{< example lang="hugo" >}}
|
||||||
{{</* image src="img/flowers.jpg" ratio="21x9" caption="Figure caption" class="rounded" */>}}
|
{{</* image src="img/flowers.jpg" ratio="4x3" caption="Figure caption" class="rounded col-md-6"
|
||||||
|
portrait=true wrapper="text-center" */>}}
|
||||||
{{< /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 -->
|
||||||
@@ -465,3 +473,13 @@ As an example, the following shortcode displays a tooltip for a colored hyperlin
|
|||||||
{{</* tooltip color="primary" title="Tooltip caption" href="#!" */>}}Tooltip{{</* /tooltip */>}} demonstration
|
{{</* tooltip color="primary" title="Tooltip caption" href="#!" */>}}Tooltip{{</* /tooltip */>}} demonstration
|
||||||
{{< /example >}}
|
{{< /example >}}
|
||||||
<!-- markdownlint-enable MD037 -->
|
<!-- markdownlint-enable MD037 -->
|
||||||
|
|
||||||
|
## Youtube
|
||||||
|
|
||||||
|
As an example, the following shortcode displays a Hugo quickstart guide.
|
||||||
|
|
||||||
|
<!-- markdownlint-disable MD037 -->
|
||||||
|
{{< example lang="hugo" >}}
|
||||||
|
{{</* youtube id="w7Ft2ymGmfc" autoplay=true autotitle=true */>}}
|
||||||
|
{{< /example >}}
|
||||||
|
<!-- markdownlint-enable 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"]
|
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
|
||||||
|
|
||||||
@@ -25,9 +25,52 @@ As an example, the following shortcode shows an animation that plays on hover.
|
|||||||
{{< /example >}}
|
{{< /example >}}
|
||||||
<!-- markdownlint-enable MD037 -->
|
<!-- markdownlint-enable MD037 -->
|
||||||
|
|
||||||
|
## Data tables
|
||||||
|
|
||||||
|
As an example, the following shortcode displays a responsive table that uses advanced controls.
|
||||||
|
|
||||||
|
<!-- markdownlint-disable MD037 -->
|
||||||
|
{{< example lang="markdown" >}}
|
||||||
|
{{</* table sortable="true" paging="true" searchable="true" */>}}
|
||||||
|
| # | Heading |
|
||||||
|
|-----|---------|
|
||||||
|
| 1. | Item 1 |
|
||||||
|
| 2. | Item 2 |
|
||||||
|
| 3. | Item 3 |
|
||||||
|
| 4. | Item 4 |
|
||||||
|
| 5. | Item 5 |
|
||||||
|
| 6. | Item 6 |
|
||||||
|
| 7. | Item 7 |
|
||||||
|
| 8. | Item 8 |
|
||||||
|
| 9. | Item 9 |
|
||||||
|
| 10. | Item 10 |
|
||||||
|
| 11. | Item 11 |
|
||||||
|
| 12. | Item 12 |
|
||||||
|
| 13. | Item 13 |
|
||||||
|
| 14. | Item 14 |
|
||||||
|
| 15. | Item 15 |
|
||||||
|
| 16. | Item 16 |
|
||||||
|
| 17. | Item 17 |
|
||||||
|
| 18. | Item 18 |
|
||||||
|
| 19. | Item 19 |
|
||||||
|
| 20. | Item 20 |
|
||||||
|
| 21. | Item 21 |
|
||||||
|
| 22. | Item 22 |
|
||||||
|
| 23. | Item 23 |
|
||||||
|
| 24. | Item 24 |
|
||||||
|
| 25. | Item 25 |
|
||||||
|
| 26. | Item 26 |
|
||||||
|
| 27. | Item 27 |
|
||||||
|
| 28. | Item 28 |
|
||||||
|
| 29. | Item 29 |
|
||||||
|
| 30. | Item 30 |
|
||||||
|
{{</* /table */>}}
|
||||||
|
{{< /example >}}
|
||||||
|
<!-- markdownlint-enable MD037 -->
|
||||||
|
|
||||||
## 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
|
||||||
|
@@ -26,7 +26,7 @@ As an example, the following shortcode displays an image with rounded corners an
|
|||||||
<!-- markdownlint-disable MD037 -->
|
<!-- markdownlint-disable MD037 -->
|
||||||
{{< example lang="hugo" >}}
|
{{< example lang="hugo" >}}
|
||||||
{{</* image src="https://ik.imagekit.io/demo/default-image.jpg"
|
{{</* image src="https://ik.imagekit.io/demo/default-image.jpg"
|
||||||
ratio="21x9" caption="ImageKit.io image" class="rounded" */>}}
|
ratio="21x9" caption="ImageKit.io image" class="rounded" anchor="Center" */>}}
|
||||||
{{< /example >}}
|
{{< /example >}}
|
||||||
<!-- markdownlint-enable MD037 -->
|
<!-- markdownlint-enable MD037 -->
|
||||||
|
|
||||||
@@ -37,6 +37,6 @@ As an example, the following shortcode displays an image with rounded corners an
|
|||||||
<!-- markdownlint-disable MD037 -->
|
<!-- markdownlint-disable MD037 -->
|
||||||
{{< example lang="hugo" >}}
|
{{< example lang="hugo" >}}
|
||||||
{{</* image src="https://assets.imgix.net/examples/bluehat.jpg"
|
{{</* image src="https://assets.imgix.net/examples/bluehat.jpg"
|
||||||
ratio="21x9" caption="imgix image" class="rounded" */>}}
|
ratio="21x9" caption="imgix image" class="rounded" anchor="Top" */>}}
|
||||||
{{< /example >}}
|
{{< /example >}}
|
||||||
<!-- markdownlint-enable MD037 -->
|
<!-- markdownlint-enable MD037 -->
|
||||||
|
@@ -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",
|
||||||
@@ -15,18 +15,28 @@
|
|||||||
"form",
|
"form",
|
||||||
"h2",
|
"h2",
|
||||||
"h3",
|
"h3",
|
||||||
"h5",
|
|
||||||
"head",
|
"head",
|
||||||
"hr",
|
"hr",
|
||||||
"html",
|
"html",
|
||||||
"i",
|
"i",
|
||||||
|
"iframe",
|
||||||
"img",
|
"img",
|
||||||
"input",
|
"input",
|
||||||
"label",
|
"label",
|
||||||
"li",
|
"li",
|
||||||
"link",
|
"link",
|
||||||
"mark",
|
"mark",
|
||||||
|
"math",
|
||||||
"meta",
|
"meta",
|
||||||
|
"mfrac",
|
||||||
|
"mi",
|
||||||
|
"mn",
|
||||||
|
"mo",
|
||||||
|
"mrow",
|
||||||
|
"mspace",
|
||||||
|
"msqrt",
|
||||||
|
"msub",
|
||||||
|
"msup",
|
||||||
"nav",
|
"nav",
|
||||||
"noscript",
|
"noscript",
|
||||||
"ol",
|
"ol",
|
||||||
@@ -34,12 +44,14 @@
|
|||||||
"path",
|
"path",
|
||||||
"pre",
|
"pre",
|
||||||
"script",
|
"script",
|
||||||
|
"semantics",
|
||||||
"small",
|
"small",
|
||||||
"span",
|
"span",
|
||||||
"strong",
|
"strong",
|
||||||
"sub",
|
"sub",
|
||||||
"sup",
|
"sup",
|
||||||
"svg",
|
"svg",
|
||||||
|
"symbol",
|
||||||
"table",
|
"table",
|
||||||
"tbody",
|
"tbody",
|
||||||
"td",
|
"td",
|
||||||
@@ -145,6 +157,7 @@
|
|||||||
"col-md-2",
|
"col-md-2",
|
||||||
"col-md-3",
|
"col-md-3",
|
||||||
"col-md-4",
|
"col-md-4",
|
||||||
|
"col-md-6",
|
||||||
"col-md-8",
|
"col-md-8",
|
||||||
"col-md-9",
|
"col-md-9",
|
||||||
"col-md-auto",
|
"col-md-auto",
|
||||||
@@ -174,6 +187,7 @@
|
|||||||
"d-none-light",
|
"d-none-light",
|
||||||
"d-sm-block",
|
"d-sm-block",
|
||||||
"d-sm-none",
|
"d-sm-none",
|
||||||
|
"data-table",
|
||||||
"display-1",
|
"display-1",
|
||||||
"display-4",
|
"display-4",
|
||||||
"dropdown",
|
"dropdown",
|
||||||
@@ -183,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",
|
||||||
@@ -224,7 +237,6 @@
|
|||||||
"fade",
|
"fade",
|
||||||
"fas",
|
"fas",
|
||||||
"figure-caption",
|
"figure-caption",
|
||||||
"fixed-top",
|
|
||||||
"flex-column",
|
"flex-column",
|
||||||
"flex-fill",
|
"flex-fill",
|
||||||
"flex-grow-1",
|
"flex-grow-1",
|
||||||
@@ -237,6 +249,7 @@
|
|||||||
"fs-3",
|
"fs-3",
|
||||||
"fs-5",
|
"fs-5",
|
||||||
"fs-6",
|
"fs-6",
|
||||||
|
"fs-lg-5",
|
||||||
"fs-md-5",
|
"fs-md-5",
|
||||||
"fw-30",
|
"fw-30",
|
||||||
"fw-bold",
|
"fw-bold",
|
||||||
@@ -265,6 +278,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",
|
||||||
@@ -318,19 +332,14 @@
|
|||||||
"navbar-container",
|
"navbar-container",
|
||||||
"navbar-contrast",
|
"navbar-contrast",
|
||||||
"navbar-expand-md",
|
"navbar-expand-md",
|
||||||
"navbar-fixed-top",
|
|
||||||
"navbar-mode-selector",
|
"navbar-mode-selector",
|
||||||
"navbar-nav",
|
"navbar-nav",
|
||||||
"navbar-nav-scroll",
|
"navbar-nav-scroll",
|
||||||
|
"navbar-overlay",
|
||||||
"navbar-title",
|
"navbar-title",
|
||||||
"navbar-toggler",
|
"navbar-toggler",
|
||||||
"next",
|
"next",
|
||||||
"no-js",
|
"no-js",
|
||||||
"offcanvas",
|
|
||||||
"offcanvas-body",
|
|
||||||
"offcanvas-header",
|
|
||||||
"offcanvas-start",
|
|
||||||
"offcanvas-title",
|
|
||||||
"order-0",
|
"order-0",
|
||||||
"order-1",
|
"order-1",
|
||||||
"order-first",
|
"order-first",
|
||||||
@@ -465,7 +474,8 @@
|
|||||||
"visually-hidden",
|
"visually-hidden",
|
||||||
"vr",
|
"vr",
|
||||||
"w-100",
|
"w-100",
|
||||||
"w-50"
|
"w-50",
|
||||||
|
"youtube-embedded"
|
||||||
],
|
],
|
||||||
"ids": [
|
"ids": [
|
||||||
"TableOfContents",
|
"TableOfContents",
|
||||||
@@ -503,10 +513,42 @@
|
|||||||
"collapse",
|
"collapse",
|
||||||
"collapse-1",
|
"collapse-1",
|
||||||
"command-prompt",
|
"command-prompt",
|
||||||
|
"custom-activity",
|
||||||
|
"data-tables",
|
||||||
"docs",
|
"docs",
|
||||||
"documentation",
|
"documentation",
|
||||||
"example",
|
"example",
|
||||||
"exemple",
|
"exemple",
|
||||||
|
"fa-face-frown",
|
||||||
|
"fa-square-check",
|
||||||
|
"fab-bootstrap",
|
||||||
|
"fab-docker",
|
||||||
|
"fab-facebook",
|
||||||
|
"fab-github",
|
||||||
|
"fab-linkedin",
|
||||||
|
"fab-medium",
|
||||||
|
"fab-whatsapp",
|
||||||
|
"fab-x-twitter",
|
||||||
|
"fas-angle-left",
|
||||||
|
"fas-angle-right",
|
||||||
|
"fas-angles-left",
|
||||||
|
"fas-angles-right",
|
||||||
|
"fas-arrow-left",
|
||||||
|
"fas-arrow-right",
|
||||||
|
"fas-circle-check",
|
||||||
|
"fas-code",
|
||||||
|
"fas-ellipsis",
|
||||||
|
"fas-globe",
|
||||||
|
"fas-heart",
|
||||||
|
"fas-house",
|
||||||
|
"fas-link",
|
||||||
|
"fas-magnifying-glass",
|
||||||
|
"fas-moon",
|
||||||
|
"fas-rocket",
|
||||||
|
"fas-share-nodes",
|
||||||
|
"fas-sort",
|
||||||
|
"fas-sun",
|
||||||
|
"fas-up-right-from-square",
|
||||||
"fichier",
|
"fichier",
|
||||||
"fil-dariane",
|
"fil-dariane",
|
||||||
"file",
|
"file",
|
||||||
@@ -523,6 +565,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",
|
||||||
@@ -544,8 +587,6 @@
|
|||||||
"navbar-sample-collapse",
|
"navbar-sample-collapse",
|
||||||
"navigation",
|
"navigation",
|
||||||
"notification",
|
"notification",
|
||||||
"offcanvas-label",
|
|
||||||
"offcanvass-sidebar",
|
|
||||||
"persona",
|
"persona",
|
||||||
"projecten",
|
"projecten",
|
||||||
"projects",
|
"projects",
|
||||||
@@ -565,7 +606,8 @@
|
|||||||
"toast-example-2",
|
"toast-example-2",
|
||||||
"toast-message-email-4",
|
"toast-message-email-4",
|
||||||
"toc-collapse",
|
"toc-collapse",
|
||||||
"tooltip"
|
"tooltip",
|
||||||
|
"youtube"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
17
go.mod
17
go.mod
@@ -4,13 +4,14 @@ go 1.19
|
|||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/airbnb/lottie-web v5.12.2+incompatible // indirect
|
github.com/airbnb/lottie-web v5.12.2+incompatible // indirect
|
||||||
github.com/gethinode/mod-bootstrap v1.3.0 // indirect
|
github.com/gethinode/mod-bootstrap v1.3.1 // indirect
|
||||||
github.com/gethinode/mod-flexsearch v1.12.0 // indirect
|
github.com/gethinode/mod-flexsearch/v2 v2.0.1 // indirect
|
||||||
github.com/gethinode/mod-fontawesome v1.9.0 // indirect
|
github.com/gethinode/mod-fontawesome v1.10.0 // indirect
|
||||||
github.com/gethinode/mod-katex v1.1.0 // indirect
|
github.com/gethinode/mod-katex v1.1.2 // indirect
|
||||||
github.com/gethinode/mod-leaflet v1.1.0 // indirect
|
github.com/gethinode/mod-leaflet v1.1.1 // indirect
|
||||||
github.com/gethinode/mod-lottie v1.5.5 // indirect
|
github.com/gethinode/mod-lottie v1.5.6 // indirect
|
||||||
github.com/gethinode/mod-utils/v2 v2.3.10 // indirect
|
github.com/gethinode/mod-simple-datatables v1.0.7 // indirect
|
||||||
github.com/nextapps-de/flexsearch v0.0.0-20240110101704-4c3966709f85 // indirect
|
github.com/gethinode/mod-utils/v2 v2.4.0 // 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
|
||||||
)
|
)
|
||||||
|
34
go.sum
34
go.sum
@@ -22,6 +22,8 @@ github.com/gethinode/mod-bootstrap v1.2.8 h1:kIKSO6qqE8xA0KQC5s6kkEv5UDc8oT17Hal
|
|||||||
github.com/gethinode/mod-bootstrap v1.2.8/go.mod h1:CL9IDot6nbXIWJYE/KxfsTdYYEJIGL17BXbAYPn+wVQ=
|
github.com/gethinode/mod-bootstrap v1.2.8/go.mod h1:CL9IDot6nbXIWJYE/KxfsTdYYEJIGL17BXbAYPn+wVQ=
|
||||||
github.com/gethinode/mod-bootstrap v1.3.0 h1:UxNmXgXo7gA8C8z1ar47+tSccmKYpaYBBN+txB0pwBk=
|
github.com/gethinode/mod-bootstrap v1.3.0 h1:UxNmXgXo7gA8C8z1ar47+tSccmKYpaYBBN+txB0pwBk=
|
||||||
github.com/gethinode/mod-bootstrap v1.3.0/go.mod h1:CL9IDot6nbXIWJYE/KxfsTdYYEJIGL17BXbAYPn+wVQ=
|
github.com/gethinode/mod-bootstrap v1.3.0/go.mod h1:CL9IDot6nbXIWJYE/KxfsTdYYEJIGL17BXbAYPn+wVQ=
|
||||||
|
github.com/gethinode/mod-bootstrap v1.3.1 h1:ZUX72St0WZ5tyXpEPBJlayX/dmCH3cGErzsozkUKCok=
|
||||||
|
github.com/gethinode/mod-bootstrap v1.3.1/go.mod h1:CL9IDot6nbXIWJYE/KxfsTdYYEJIGL17BXbAYPn+wVQ=
|
||||||
github.com/gethinode/mod-flexsearch v1.0.1 h1:FJkRsUzSnQTXl3MWCigT4E6vfff870UWTnkGqaDGIhA=
|
github.com/gethinode/mod-flexsearch v1.0.1 h1:FJkRsUzSnQTXl3MWCigT4E6vfff870UWTnkGqaDGIhA=
|
||||||
github.com/gethinode/mod-flexsearch v1.0.1/go.mod h1:TXbGbWsvmhBdsTzRt887mcpFfr4ORpzG3+h/l4W3YM4=
|
github.com/gethinode/mod-flexsearch v1.0.1/go.mod h1:TXbGbWsvmhBdsTzRt887mcpFfr4ORpzG3+h/l4W3YM4=
|
||||||
github.com/gethinode/mod-flexsearch v1.1.0 h1:7BCMyQDlYlskNXuazt8Jg/jg9WREexu2xVkYqThkAX4=
|
github.com/gethinode/mod-flexsearch v1.1.0 h1:7BCMyQDlYlskNXuazt8Jg/jg9WREexu2xVkYqThkAX4=
|
||||||
@@ -68,6 +70,10 @@ github.com/gethinode/mod-flexsearch v1.11.3 h1:ykxpUg8M4vr1C4QzxJOPGt+1ZmPAD/gOC
|
|||||||
github.com/gethinode/mod-flexsearch v1.11.3/go.mod h1:L8hrnpupx27cez2ObMX8gWnhbW6qss4HGH1Ea4UaBRQ=
|
github.com/gethinode/mod-flexsearch v1.11.3/go.mod h1:L8hrnpupx27cez2ObMX8gWnhbW6qss4HGH1Ea4UaBRQ=
|
||||||
github.com/gethinode/mod-flexsearch v1.12.0 h1:zg1IHvc8VO9WEtQuQnuG6HeWFNByvyqC9JYWDtpsP6s=
|
github.com/gethinode/mod-flexsearch v1.12.0 h1:zg1IHvc8VO9WEtQuQnuG6HeWFNByvyqC9JYWDtpsP6s=
|
||||||
github.com/gethinode/mod-flexsearch v1.12.0/go.mod h1:L8hrnpupx27cez2ObMX8gWnhbW6qss4HGH1Ea4UaBRQ=
|
github.com/gethinode/mod-flexsearch v1.12.0/go.mod h1:L8hrnpupx27cez2ObMX8gWnhbW6qss4HGH1Ea4UaBRQ=
|
||||||
|
github.com/gethinode/mod-flexsearch v1.12.1 h1:clkGUWaNPe9Dt/66Apy7oH9NwVQfnD6OpGSLffeC9sY=
|
||||||
|
github.com/gethinode/mod-flexsearch v1.12.1/go.mod h1:L8hrnpupx27cez2ObMX8gWnhbW6qss4HGH1Ea4UaBRQ=
|
||||||
|
github.com/gethinode/mod-flexsearch/v2 v2.0.1 h1:5unGUSb1tX1LBtKygnLfdt7CnVJuFKSt6VXiKRxdojc=
|
||||||
|
github.com/gethinode/mod-flexsearch/v2 v2.0.1/go.mod h1:d7MMkVlz0l6cEk76e0mkveEsDxGfu5Sv+HUIhoGguhE=
|
||||||
github.com/gethinode/mod-fontawesome v1.0.2 h1:ZSK6D20/w4y5GnfYfTBB58uHD0ChIfkpKfRGwioS9rg=
|
github.com/gethinode/mod-fontawesome v1.0.2 h1:ZSK6D20/w4y5GnfYfTBB58uHD0ChIfkpKfRGwioS9rg=
|
||||||
github.com/gethinode/mod-fontawesome v1.0.2/go.mod h1:Ki1qkWEOiF0hQpCgWeZRw+HkpL6nd1DxKFptU0O2feI=
|
github.com/gethinode/mod-fontawesome v1.0.2/go.mod h1:Ki1qkWEOiF0hQpCgWeZRw+HkpL6nd1DxKFptU0O2feI=
|
||||||
github.com/gethinode/mod-fontawesome v1.1.0 h1:rsDzUI+3ZlS/do2ff3ne8/z3KwHeysmuA+WsXlumXXk=
|
github.com/gethinode/mod-fontawesome v1.1.0 h1:rsDzUI+3ZlS/do2ff3ne8/z3KwHeysmuA+WsXlumXXk=
|
||||||
@@ -108,6 +114,10 @@ github.com/gethinode/mod-fontawesome v1.8.2 h1:LAzLytyh9c9gLzBWMju6Gtp3uEojhBQEY
|
|||||||
github.com/gethinode/mod-fontawesome v1.8.2/go.mod h1:xBKsZH3WJtMOItZVlp9SbO51uaBy6IbvUZSKpNu3b6Y=
|
github.com/gethinode/mod-fontawesome v1.8.2/go.mod h1:xBKsZH3WJtMOItZVlp9SbO51uaBy6IbvUZSKpNu3b6Y=
|
||||||
github.com/gethinode/mod-fontawesome v1.9.0 h1:xqUB8AnezMHAt8lye4ksqvmHSVPCOkiHsHGUbqNoeP0=
|
github.com/gethinode/mod-fontawesome v1.9.0 h1:xqUB8AnezMHAt8lye4ksqvmHSVPCOkiHsHGUbqNoeP0=
|
||||||
github.com/gethinode/mod-fontawesome v1.9.0/go.mod h1:xBKsZH3WJtMOItZVlp9SbO51uaBy6IbvUZSKpNu3b6Y=
|
github.com/gethinode/mod-fontawesome v1.9.0/go.mod h1:xBKsZH3WJtMOItZVlp9SbO51uaBy6IbvUZSKpNu3b6Y=
|
||||||
|
github.com/gethinode/mod-fontawesome v1.9.1 h1:cQk84vriqffM4fuUUoM9j3SSD+3ppeW2j4ta7AiToMU=
|
||||||
|
github.com/gethinode/mod-fontawesome v1.9.1/go.mod h1:xBKsZH3WJtMOItZVlp9SbO51uaBy6IbvUZSKpNu3b6Y=
|
||||||
|
github.com/gethinode/mod-fontawesome v1.10.0 h1:Izs2AKc+YVBa1TywcH54OKLTNCUMXRoFIqOs+n0FgOo=
|
||||||
|
github.com/gethinode/mod-fontawesome v1.10.0/go.mod h1:xBKsZH3WJtMOItZVlp9SbO51uaBy6IbvUZSKpNu3b6Y=
|
||||||
github.com/gethinode/mod-katex v1.0.0 h1:me/3dIIZBkfk1mRIFt8QiAGYwYDoSG5bc2hHRtIutFc=
|
github.com/gethinode/mod-katex v1.0.0 h1:me/3dIIZBkfk1mRIFt8QiAGYwYDoSG5bc2hHRtIutFc=
|
||||||
github.com/gethinode/mod-katex v1.0.0/go.mod h1:byAfpI3wuqNJIooTGVEGc1cjBhhCy4+CcK1H6495MYg=
|
github.com/gethinode/mod-katex v1.0.0/go.mod h1:byAfpI3wuqNJIooTGVEGc1cjBhhCy4+CcK1H6495MYg=
|
||||||
github.com/gethinode/mod-katex v1.0.1 h1:809QUztxmKgMNchU+v03iMO7Ma+ISc3ZzhXYauc21rs=
|
github.com/gethinode/mod-katex v1.0.1 h1:809QUztxmKgMNchU+v03iMO7Ma+ISc3ZzhXYauc21rs=
|
||||||
@@ -128,6 +138,10 @@ github.com/gethinode/mod-katex v1.0.9 h1:cCJoR28tZwkDvXps17o9Jwfe3aQQAZ3Rxk0jCNR
|
|||||||
github.com/gethinode/mod-katex v1.0.9/go.mod h1:byAfpI3wuqNJIooTGVEGc1cjBhhCy4+CcK1H6495MYg=
|
github.com/gethinode/mod-katex v1.0.9/go.mod h1:byAfpI3wuqNJIooTGVEGc1cjBhhCy4+CcK1H6495MYg=
|
||||||
github.com/gethinode/mod-katex v1.1.0 h1:PxST3HPUt6F2X/xKakTVeTkwWqCtEr53K1vYEOyQu3I=
|
github.com/gethinode/mod-katex v1.1.0 h1:PxST3HPUt6F2X/xKakTVeTkwWqCtEr53K1vYEOyQu3I=
|
||||||
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/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=
|
||||||
@@ -146,6 +160,8 @@ github.com/gethinode/mod-leaflet v1.0.1 h1:L4Coe6HTD9O0Txs1S8AtVg+6/TEneSF9i6fJK
|
|||||||
github.com/gethinode/mod-leaflet v1.0.1/go.mod h1:Ei0x9WiL7Dbi4JeG6yI1CE63bT1QJ8sKi67Jea1wFSE=
|
github.com/gethinode/mod-leaflet v1.0.1/go.mod h1:Ei0x9WiL7Dbi4JeG6yI1CE63bT1QJ8sKi67Jea1wFSE=
|
||||||
github.com/gethinode/mod-leaflet v1.1.0 h1:FXzPCic5XmUluxQ6e7LYUhhLnxuQOBwry8qjG9k30UY=
|
github.com/gethinode/mod-leaflet v1.1.0 h1:FXzPCic5XmUluxQ6e7LYUhhLnxuQOBwry8qjG9k30UY=
|
||||||
github.com/gethinode/mod-leaflet v1.1.0/go.mod h1:Ei0x9WiL7Dbi4JeG6yI1CE63bT1QJ8sKi67Jea1wFSE=
|
github.com/gethinode/mod-leaflet v1.1.0/go.mod h1:Ei0x9WiL7Dbi4JeG6yI1CE63bT1QJ8sKi67Jea1wFSE=
|
||||||
|
github.com/gethinode/mod-leaflet v1.1.1 h1:AIHR4k8SjmeoZxtjLgSS6/N3jKeZNZGdZTgu/7MwP4c=
|
||||||
|
github.com/gethinode/mod-leaflet v1.1.1/go.mod h1:Ei0x9WiL7Dbi4JeG6yI1CE63bT1QJ8sKi67Jea1wFSE=
|
||||||
github.com/gethinode/mod-lottie v1.0.0 h1:1CUZMcgN5FAyjjyuP3qkaOQ6M5sv6HUAbosW4sIT5VE=
|
github.com/gethinode/mod-lottie v1.0.0 h1:1CUZMcgN5FAyjjyuP3qkaOQ6M5sv6HUAbosW4sIT5VE=
|
||||||
github.com/gethinode/mod-lottie v1.0.0/go.mod h1:erRCgSL2FCfKHI0jQbSpM+g0jXl7SjKVJrh7kWGteKs=
|
github.com/gethinode/mod-lottie v1.0.0/go.mod h1:erRCgSL2FCfKHI0jQbSpM+g0jXl7SjKVJrh7kWGteKs=
|
||||||
github.com/gethinode/mod-lottie v1.0.1 h1:+IE7xtnSVQpJS56oBJq9RWKZeFEfxrOZAqE3BSrS/u0=
|
github.com/gethinode/mod-lottie v1.0.1 h1:+IE7xtnSVQpJS56oBJq9RWKZeFEfxrOZAqE3BSrS/u0=
|
||||||
@@ -184,6 +200,20 @@ github.com/gethinode/mod-lottie v1.5.4 h1:+xbamSsjcnP2tyzGl0CA1enma7gkAp67wenmuP
|
|||||||
github.com/gethinode/mod-lottie v1.5.4/go.mod h1:gALqz48aYpoDLxJOI3LzIpdy0Eq/lOBNtlcOxABa9tg=
|
github.com/gethinode/mod-lottie v1.5.4/go.mod h1:gALqz48aYpoDLxJOI3LzIpdy0Eq/lOBNtlcOxABa9tg=
|
||||||
github.com/gethinode/mod-lottie v1.5.5 h1:uEJKsz+ovsZtbGkMhPONcIhtG6M3RjYiK+iVoScLOVo=
|
github.com/gethinode/mod-lottie v1.5.5 h1:uEJKsz+ovsZtbGkMhPONcIhtG6M3RjYiK+iVoScLOVo=
|
||||||
github.com/gethinode/mod-lottie v1.5.5/go.mod h1:VTvBxD8VokICwnEqM0VUZFZHBYxLf4/grDFQyEh1DL0=
|
github.com/gethinode/mod-lottie v1.5.5/go.mod h1:VTvBxD8VokICwnEqM0VUZFZHBYxLf4/grDFQyEh1DL0=
|
||||||
|
github.com/gethinode/mod-lottie v1.5.6 h1:dxz5nmD0XXEt/DAOc1s5fIPynj5bhzDL32EEwLFCSmk=
|
||||||
|
github.com/gethinode/mod-lottie v1.5.6/go.mod h1:VTvBxD8VokICwnEqM0VUZFZHBYxLf4/grDFQyEh1DL0=
|
||||||
|
github.com/gethinode/mod-simple-datatables v1.0.0 h1:Dj4WGw12OkaimwkCpLn5Jhmd49dvNJW9O2P/W9F+HlQ=
|
||||||
|
github.com/gethinode/mod-simple-datatables v1.0.0/go.mod h1:K8T7fIdb8pMOB+OSW4A5lz5IW99+HyzcTgx764fvOGw=
|
||||||
|
github.com/gethinode/mod-simple-datatables v1.0.2 h1:zhqxHet3iLQWYCBbGROALpOY9zQlptMycFkz1Tto5bA=
|
||||||
|
github.com/gethinode/mod-simple-datatables v1.0.2/go.mod h1:mmrcvAJU2i3SMU56VmQ5PW43uDXBcsJKcZwCHrvl3Kc=
|
||||||
|
github.com/gethinode/mod-simple-datatables v1.0.3 h1:JL2nBlEHWMmkE7EZrpfpmzka47dklJUh23/xKJkOQoI=
|
||||||
|
github.com/gethinode/mod-simple-datatables v1.0.3/go.mod h1:mmrcvAJU2i3SMU56VmQ5PW43uDXBcsJKcZwCHrvl3Kc=
|
||||||
|
github.com/gethinode/mod-simple-datatables v1.0.5 h1:2Aa4k1Bd1WEYHbskFQj+1X35BB7abB8RXHE7Uk2N4pg=
|
||||||
|
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/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=
|
||||||
@@ -230,12 +260,16 @@ github.com/gethinode/mod-utils/v2 v2.3.9 h1:Z9uAr6S0wunlkfKHa2D/U83fBV6Ivtf+7sjB
|
|||||||
github.com/gethinode/mod-utils/v2 v2.3.9/go.mod h1:GTYeknoLujNjfDxI+V9Dcug26CYJSTJ0B/U2dagw9oY=
|
github.com/gethinode/mod-utils/v2 v2.3.9/go.mod h1:GTYeknoLujNjfDxI+V9Dcug26CYJSTJ0B/U2dagw9oY=
|
||||||
github.com/gethinode/mod-utils/v2 v2.3.10 h1:+coUXdgAbLEE8Tvb3Rfk/1Nr6oDVreXI2sil0pa/n2Q=
|
github.com/gethinode/mod-utils/v2 v2.3.10 h1:+coUXdgAbLEE8Tvb3Rfk/1Nr6oDVreXI2sil0pa/n2Q=
|
||||||
github.com/gethinode/mod-utils/v2 v2.3.10/go.mod h1:GTYeknoLujNjfDxI+V9Dcug26CYJSTJ0B/U2dagw9oY=
|
github.com/gethinode/mod-utils/v2 v2.3.10/go.mod h1:GTYeknoLujNjfDxI+V9Dcug26CYJSTJ0B/U2dagw9oY=
|
||||||
|
github.com/gethinode/mod-utils/v2 v2.4.0 h1:mmG4hWaeA4krAg933pibH+TrjFmPHkAi/DUbe3SM38I=
|
||||||
|
github.com/gethinode/mod-utils/v2 v2.4.0/go.mod h1:GTYeknoLujNjfDxI+V9Dcug26CYJSTJ0B/U2dagw9oY=
|
||||||
github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3 h1:H/qVR5O4BXjRjD+5PZB+r4ug2BSJ2Of4RtwOntd+OKo=
|
github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3 h1:H/qVR5O4BXjRjD+5PZB+r4ug2BSJ2Of4RtwOntd+OKo=
|
||||||
github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3/go.mod h1:5GdMfPAXzbA2gXBqTjC6l27kioSYzHlqDMh0+wyx7sU=
|
github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3/go.mod h1:5GdMfPAXzbA2gXBqTjC6l27kioSYzHlqDMh0+wyx7sU=
|
||||||
github.com/nextapps-de/flexsearch v0.0.0-20240108021025-afd75f742f22 h1:re7L8FxbXQpnX8BgzkdUnDpsUmloGNyLmiy2ZCln8pg=
|
github.com/nextapps-de/flexsearch v0.0.0-20240108021025-afd75f742f22 h1:re7L8FxbXQpnX8BgzkdUnDpsUmloGNyLmiy2ZCln8pg=
|
||||||
github.com/nextapps-de/flexsearch v0.0.0-20240108021025-afd75f742f22/go.mod h1:5GdMfPAXzbA2gXBqTjC6l27kioSYzHlqDMh0+wyx7sU=
|
github.com/nextapps-de/flexsearch v0.0.0-20240108021025-afd75f742f22/go.mod h1:5GdMfPAXzbA2gXBqTjC6l27kioSYzHlqDMh0+wyx7sU=
|
||||||
github.com/nextapps-de/flexsearch v0.0.0-20240110101704-4c3966709f85 h1:H6xa5YyCHr78M+qqCApM4Kvz/eMA7pfGskYmfkEBRCA=
|
github.com/nextapps-de/flexsearch v0.0.0-20240110101704-4c3966709f85 h1:H6xa5YyCHr78M+qqCApM4Kvz/eMA7pfGskYmfkEBRCA=
|
||||||
github.com/nextapps-de/flexsearch v0.0.0-20240110101704-4c3966709f85/go.mod h1:5GdMfPAXzbA2gXBqTjC6l27kioSYzHlqDMh0+wyx7sU=
|
github.com/nextapps-de/flexsearch v0.0.0-20240110101704-4c3966709f85/go.mod h1:5GdMfPAXzbA2gXBqTjC6l27kioSYzHlqDMh0+wyx7sU=
|
||||||
|
github.com/nextapps-de/flexsearch v0.0.0-20240501124520-961c3ae84a87 h1:6PNbL0/LxO8Xl8MZSe5uvCidYNpFTz9nlWTqj2qdlzA=
|
||||||
|
github.com/nextapps-de/flexsearch v0.0.0-20240501124520-961c3ae84a87/go.mod h1:5GdMfPAXzbA2gXBqTjC6l27kioSYzHlqDMh0+wyx7sU=
|
||||||
github.com/twbs/bootstrap v5.3.2+incompatible h1:tuiO5acc6xnZUR77Sbi5aKWXxjYxbmsSbJwYrhAKoQQ=
|
github.com/twbs/bootstrap v5.3.2+incompatible h1:tuiO5acc6xnZUR77Sbi5aKWXxjYxbmsSbJwYrhAKoQQ=
|
||||||
github.com/twbs/bootstrap v5.3.2+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
|
github.com/twbs/bootstrap v5.3.2+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
|
||||||
github.com/twbs/bootstrap v5.3.3+incompatible h1:goFoqinzdHfkeegpFP7pvhbd0g+A3O2hbU3XCjuNrEQ=
|
github.com/twbs/bootstrap v5.3.3+incompatible h1:goFoqinzdHfkeegpFP7pvhbd0g+A3O2hbU3XCjuNrEQ=
|
||||||
|
@@ -24,8 +24,10 @@
|
|||||||
"span",
|
"span",
|
||||||
"strong",
|
"strong",
|
||||||
"svg",
|
"svg",
|
||||||
|
"symbol",
|
||||||
"title",
|
"title",
|
||||||
"ul"
|
"ul",
|
||||||
|
"use"
|
||||||
],
|
],
|
||||||
"classes": [
|
"classes": [
|
||||||
"active",
|
"active",
|
||||||
@@ -169,6 +171,14 @@
|
|||||||
"top-bar"
|
"top-bar"
|
||||||
],
|
],
|
||||||
"ids": [
|
"ids": [
|
||||||
|
"fa-face-frown",
|
||||||
|
"fab-github",
|
||||||
|
"fab-linkedin",
|
||||||
|
"fab-medium",
|
||||||
|
"fas-book-open",
|
||||||
|
"fas-ellipsis",
|
||||||
|
"fas-moon",
|
||||||
|
"fas-sun",
|
||||||
"navbar-0-collapse",
|
"navbar-0-collapse",
|
||||||
"navbar-mode",
|
"navbar-mode",
|
||||||
"navbar-mode-checkbox",
|
"navbar-mode-checkbox",
|
||||||
|
22
i18n/de.yaml
22
i18n/de.yaml
@@ -23,12 +23,28 @@
|
|||||||
translation: "Artikel"
|
translation: "Artikel"
|
||||||
- id: more
|
- id: more
|
||||||
translation: "Weitere {{ . }}"
|
translation: "Weitere {{ . }}"
|
||||||
|
- id: emptyList
|
||||||
|
translation: "Keine weiteren Artikel gefunden"
|
||||||
|
- id: emptyTags
|
||||||
|
translation: "Keine Schlagworte gefunden"
|
||||||
|
- id: readMore
|
||||||
|
translation: "Weiterlesen"
|
||||||
|
|
||||||
|
# Languages
|
||||||
|
- id: lang_de
|
||||||
|
translation: "Deutsch"
|
||||||
|
- id: lang_en
|
||||||
|
translation: "Englisch"
|
||||||
|
- id: lang_nl
|
||||||
|
translation: "Niederländisch"
|
||||||
|
- id: lang_fr
|
||||||
|
translation: "Französisch"
|
||||||
|
|
||||||
# Sharing
|
# Sharing
|
||||||
- id: shareLink
|
- id: shareLink
|
||||||
translation: "Diese Seite teilen per {{ . }}"
|
translation: "Diese Seite teilen per {{ . }}"
|
||||||
- id: shareSystem
|
- id: shareSystem
|
||||||
translation: "Betriebssystem"
|
translation: "System"
|
||||||
- id: copyToClipboard
|
- id: copyToClipboard
|
||||||
translation: "In die Zwischenablage kopieren"
|
translation: "In die Zwischenablage kopieren"
|
||||||
- id: copiedToClipboard
|
- id: copiedToClipboard
|
||||||
@@ -52,7 +68,7 @@
|
|||||||
|
|
||||||
# Navigation
|
# Navigation
|
||||||
- id: colorMode
|
- id: colorMode
|
||||||
translation: "Thema umschalten"
|
translation: "Modus umschalten"
|
||||||
- id: colorLight
|
- id: colorLight
|
||||||
translation: "Light"
|
translation: "Light"
|
||||||
- id: colorDark
|
- id: colorDark
|
||||||
@@ -76,7 +92,7 @@
|
|||||||
|
|
||||||
# Sidebar
|
# Sidebar
|
||||||
- id: toggleSidebar
|
- id: toggleSidebar
|
||||||
translation: "Menünavigation anzuzeigen oder auszublenden"
|
translation: "Menünavigation anzeigen oder ausblenden"
|
||||||
|
|
||||||
# Feature
|
# Feature
|
||||||
- id: addedFeature
|
- id: addedFeature
|
||||||
|
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
|
||||||
|
) }}
|
15
layouts/_default/_markup/render-link.html
Normal file
15
layouts/_default/_markup/render-link.html
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{{ 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.Path
|
||||||
|
}}
|
||||||
|
{{ else if not .Destination }}
|
||||||
|
{{ errorf "Missing markdown link destination, see '%s'" .Page.File.Path }}
|
||||||
|
{{ 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
|
||||||
@@ -73,6 +73,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{- partial "footer/toast-container.html" . -}}
|
{{- partial "footer/toast-container.html" . -}}
|
||||||
|
{{- partial "assets/symbols.html" . -}}
|
||||||
{{- partialCached "footer/scripts.html" (dict "header" false "page" . "core" true) }}
|
{{- partialCached "footer/scripts.html" (dict "header" false "page" . "core" true) }}
|
||||||
{{- partial "footer/optional-scripts.html" . -}}
|
{{- partial "footer/optional-scripts.html" . -}}
|
||||||
</body>
|
</body>
|
||||||
|
@@ -1,6 +1,8 @@
|
|||||||
{{ define "main" -}}
|
{{ define "main" -}}
|
||||||
{{- $breakpoint := $.Scratch.Get "breakpoint" -}}
|
{{- $breakpoint := $.Scratch.Get "breakpoint" -}}
|
||||||
{{ $sidebar := .Render "single/sidebar" }}
|
{{- $hasSidebar := .Site.Params.navigation.sidebar | default true -}}
|
||||||
|
{{ $sidebar := "" }}
|
||||||
|
{{ if $hasSidebar }}{{ $sidebar = .Render "single/sidebar" }}{{ end }}
|
||||||
{{ $toc := .Render "single/panel-toc" }}
|
{{ $toc := .Render "single/panel-toc" }}
|
||||||
|
|
||||||
{{ with $sidebar }}
|
{{ with $sidebar }}
|
||||||
@@ -16,7 +18,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<div class="container-xxl flex-fill p-4 px-xxl-0">
|
<div class="container-xxl flex-fill p-4 px-xxl-0">
|
||||||
{{ if $sidebar -}}
|
{{ if $hasSidebar -}}
|
||||||
<div class="row row-cols-1 row-cols-{{ $breakpoint.current }}-2 row-cols-{{ $breakpoint.next }}-3">
|
<div class="row row-cols-1 row-cols-{{ $breakpoint.current }}-2 row-cols-{{ $breakpoint.next }}-3">
|
||||||
<div class="col col-{{ $breakpoint.next }}-2 d-none d-{{ $breakpoint.next }}-block sidebar-overflow sticky-top pt-5">
|
<div class="col col-{{ $breakpoint.next }}-2 d-none d-{{ $breakpoint.next }}-block sidebar-overflow sticky-top pt-5">
|
||||||
{{ $sidebar | safeHTML }}
|
{{ $sidebar | safeHTML }}
|
||||||
|
@@ -14,14 +14,16 @@
|
|||||||
|
|
||||||
{{ with .Title }}<p class="display-4 mt-5">{{ . }}</p>{{ end }}
|
{{ with .Title }}<p class="display-4 mt-5">{{ . }}</p>{{ end }}
|
||||||
{{ if ne $metadata "none" }}
|
{{ if ne $metadata "none" }}
|
||||||
|
<small class="text-body-secondary text-uppercase">
|
||||||
|
{{ if .Date }}
|
||||||
{{ $lastmodstr := (partial "utilities/date.html" (dict "date" .Lastmod "format" "long")) -}}
|
{{ $lastmodstr := (partial "utilities/date.html" (dict "date" .Lastmod "format" "long")) -}}
|
||||||
{{ $datestr := (partial "utilities/date.html" (dict "date" .Date "format" "long")) -}}
|
{{ $datestr := (partial "utilities/date.html" (dict "date" .Date "format" "long")) -}}
|
||||||
<small class="text-body-secondary text-uppercase">
|
|
||||||
{{ $datestr | i18n "postedOnDate" -}}
|
{{ $datestr | i18n "postedOnDate" -}}
|
||||||
{{ if eq $metadata "full" }}
|
{{ if eq $metadata "full" }}
|
||||||
{{ if ne $datestr $lastmodstr -}} ({{ $lastmodstr | i18n "lastModified" }}){{ end }}
|
{{ if ne $datestr $lastmodstr -}} ({{ $lastmodstr | i18n "lastModified" }}){{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
•
|
•
|
||||||
|
{{ end }}
|
||||||
{{ .ReadingTime | lang.FormatNumber 0 }} {{ i18n "minutesShort" }} {{ i18n "read" }} •
|
{{ .ReadingTime | lang.FormatNumber 0 }} {{ i18n "minutesShort" }} {{ i18n "read" }} •
|
||||||
{{ .WordCount | lang.FormatNumber 0 }} {{ i18n "words" }}
|
{{ .WordCount | lang.FormatNumber 0 }} {{ i18n "words" }}
|
||||||
</small>
|
</small>
|
||||||
|
@@ -1,7 +1,5 @@
|
|||||||
{{- $menu := .Scratch.Get "sidebar" -}}
|
{{- $menu := .Scratch.Get "sidebar" -}}
|
||||||
{{- $version := .Scratch.Get "version" -}}
|
{{- $version := .Scratch.Get "version" -}}
|
||||||
{{ $sidebar := "" }}
|
{{ if $menu }}
|
||||||
{{- $hasSidebar := .Site.Params.navigation.sidebar | default true -}}
|
|
||||||
{{ if and $menu $hasSidebar }}
|
|
||||||
{{ partial "assets/sidebar.html" (dict "page" . "menu" $menu "version" $version) }}
|
{{ partial "assets/sidebar.html" (dict "page" . "menu" $menu "version" $version) }}
|
||||||
{{ end }}
|
{{ end -}}
|
||||||
|
@@ -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>
|
||||||
|
{{ 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>
|
<script src='{{ partial "utilities/GetStaticURL" (dict "url" "js/alias.js") }}'></script>
|
||||||
|
{{ end }}
|
||||||
</head>
|
</head>
|
||||||
</html>
|
</html>
|
@@ -6,6 +6,19 @@
|
|||||||
|
|
||||||
{{ $error := false }}
|
{{ $error := false }}
|
||||||
|
|
||||||
|
{{ $anchorMap := dict
|
||||||
|
"TopLeft" "north_west"
|
||||||
|
"Top" "north"
|
||||||
|
"TopRight" "north_east"
|
||||||
|
"Left" "west"
|
||||||
|
"Center" "center"
|
||||||
|
"Right" "east"
|
||||||
|
"BottomLeft" "south_west"
|
||||||
|
"Bottom" "south"
|
||||||
|
"BottomRight" "south_east"
|
||||||
|
"Smart" "auto"
|
||||||
|
}}
|
||||||
|
|
||||||
<!-- Validate arguments -->
|
<!-- Validate arguments -->
|
||||||
{{ if partial "utilities/IsInvalidArgs.html" (dict "structure" "image-adapter" "args" . "group" "partial") }}
|
{{ if partial "utilities/IsInvalidArgs.html" (dict "structure" "image-adapter" "args" . "group" "partial") }}
|
||||||
{{ errorf "partial [assets/adapter/cloudinary.html] - Invalid arguments" -}}
|
{{ errorf "partial [assets/adapter/cloudinary.html] - Invalid arguments" -}}
|
||||||
@@ -20,6 +33,8 @@
|
|||||||
{{ $transform := .transform }}
|
{{ $transform := .transform }}
|
||||||
{{ $height := .height }}
|
{{ $height := .height }}
|
||||||
{{ $width := .width }}
|
{{ $width := .width }}
|
||||||
|
{{ $anchor := "" }}
|
||||||
|
{{ with .anchor }}{{ $anchor = index $anchorMap . }}{{ end }}
|
||||||
{{ if eq $transform "fill" }}{{ $transform = "c_fill" }}{{ else }}{{ $transform = "c_fit" }}{{ end }}
|
{{ if eq $transform "fill" }}{{ $transform = "c_fill" }}{{ else }}{{ $transform = "c_fit" }}{{ end }}
|
||||||
{{ $element := "" }}
|
{{ $element := "" }}
|
||||||
|
|
||||||
@@ -37,6 +52,9 @@
|
|||||||
{{ else }}
|
{{ else }}
|
||||||
{{ $operation = printf "f_auto,%s,h_%d,w_%d" $transform $height $width }}
|
{{ $operation = printf "f_auto,%s,h_%d,w_%d" $transform $height $width }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ with $anchor }}
|
||||||
|
{{ $operation = printf "%s,g_%s" $operation . }}
|
||||||
|
{{ end }}
|
||||||
{{- $element = urls.JoinPath (slice "https://" $host $dir $operation $file) -}}
|
{{- $element = urls.JoinPath (slice "https://" $host $dir $operation $file) -}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
@@ -20,6 +20,7 @@
|
|||||||
{{ $transform := .transform }}
|
{{ $transform := .transform }}
|
||||||
{{ $height := .height }}
|
{{ $height := .height }}
|
||||||
{{ $width := .width }}
|
{{ $width := .width }}
|
||||||
|
{{ $anchor := .anchor | default "" }}
|
||||||
{{ $element := "" }}
|
{{ $element := "" }}
|
||||||
{{ $absoluteURL := .absoluteURL }}
|
{{ $absoluteURL := .absoluteURL }}
|
||||||
{{ $url := urls.JoinPath $dir $file }}
|
{{ $url := urls.JoinPath $dir $file }}
|
||||||
@@ -46,13 +47,20 @@
|
|||||||
{{ if not $error }}
|
{{ if not $error }}
|
||||||
{{ $scaled := "" }}
|
{{ $scaled := "" }}
|
||||||
{{ if eq $transform "fill" }}
|
{{ if eq $transform "fill" }}
|
||||||
{{- $scaled = $img.Fill (printf "%dx%d %s" $width $height $format) -}}
|
{{- $scaled = $img.Fill (printf "%dx%d %s %s" $width $height $anchor $format) -}}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{- $scaled = $img.Fit (printf "%dx%d %s" $width $height $format) -}}
|
{{- $scaled = $img.Fit (printf "%dx%d %s" $width $height $format) -}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{- $clean := path.Ext $img.RelPermalink -}}
|
{{- $clean := path.Ext $img.RelPermalink -}}
|
||||||
{{- $scaled = $scaled | resources.Copy (replace $img.RelPermalink $clean (printf "-%dx%d.%s" $width $height $format)) -}}
|
{{ $destination := "" }}
|
||||||
|
{{ if $anchor }}
|
||||||
|
{{ $destination = printf "-%dx%d-%s.%s" $width $height (lower $anchor) $format }}
|
||||||
|
{{ else }}
|
||||||
|
{{ $destination = printf "-%dx%d.%s" $width $height $format }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{- $scaled = $scaled | resources.Copy (replace $img.RelPermalink $clean $destination) -}}
|
||||||
{{- if $absoluteURL -}}
|
{{- if $absoluteURL -}}
|
||||||
{{- $element = $scaled.Permalink -}}
|
{{- $element = $scaled.Permalink -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
|
@@ -6,6 +6,19 @@
|
|||||||
|
|
||||||
{{ $error := false }}
|
{{ $error := false }}
|
||||||
|
|
||||||
|
{{ $anchorMap := dict
|
||||||
|
"TopLeft" "top_left"
|
||||||
|
"Top" "top"
|
||||||
|
"TopRight" "top_right"
|
||||||
|
"Left" "left"
|
||||||
|
"Center" "center"
|
||||||
|
"Right" "right"
|
||||||
|
"BottomLeft" "bottom_left"
|
||||||
|
"Bottom" "bottom"
|
||||||
|
"BottomRight" "bottom_right"
|
||||||
|
"Smart" "auto"
|
||||||
|
}}
|
||||||
|
|
||||||
<!-- Validate arguments -->
|
<!-- Validate arguments -->
|
||||||
{{ if partial "utilities/IsInvalidArgs.html" (dict "structure" "image-adapter" "args" . "group" "partial") }}
|
{{ if partial "utilities/IsInvalidArgs.html" (dict "structure" "image-adapter" "args" . "group" "partial") }}
|
||||||
{{ errorf "partial [assets/adapter/imagekit.html] - Invalid arguments" -}}
|
{{ errorf "partial [assets/adapter/imagekit.html] - Invalid arguments" -}}
|
||||||
@@ -20,6 +33,8 @@
|
|||||||
{{ $transform := .transform }}
|
{{ $transform := .transform }}
|
||||||
{{ $height := .height }}
|
{{ $height := .height }}
|
||||||
{{ $width := .width }}
|
{{ $width := .width }}
|
||||||
|
{{ $anchor := "" }}
|
||||||
|
{{ with .anchor }}{{ $anchor = index $anchorMap . }}{{ end }}
|
||||||
{{ if eq $transform "fill" }}{{ $transform = "c-maintain_ratio" }}{{ else }}{{ $transform = "c-at_max" }}{{ end }}
|
{{ if eq $transform "fill" }}{{ $transform = "c-maintain_ratio" }}{{ else }}{{ $transform = "c-at_max" }}{{ end }}
|
||||||
{{ $element := "" }}
|
{{ $element := "" }}
|
||||||
|
|
||||||
@@ -42,6 +57,9 @@
|
|||||||
{{ else }}
|
{{ else }}
|
||||||
{{ $operation = printf "tr:f-auto,%s,h-%d,w-%d" $transform $height $width }}
|
{{ $operation = printf "tr:f-auto,%s,h-%d,w-%d" $transform $height $width }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ with $anchor }}
|
||||||
|
{{ $operation = printf "%s,fo-%s" $operation . }}
|
||||||
|
{{ end }}
|
||||||
{{- $element = urls.JoinPath (slice "https://" $host $dir $operation $file) -}}
|
{{- $element = urls.JoinPath (slice "https://" $host $dir $operation $file) -}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
@@ -6,6 +6,19 @@
|
|||||||
|
|
||||||
{{ $error := false }}
|
{{ $error := false }}
|
||||||
|
|
||||||
|
{{ $anchorMap := dict
|
||||||
|
"TopLeft" "top,left"
|
||||||
|
"Top" "top"
|
||||||
|
"TopRight" "top,right"
|
||||||
|
"Left" "left"
|
||||||
|
"Center" "center"
|
||||||
|
"Right" "right"
|
||||||
|
"BottomLeft" "bottom,left"
|
||||||
|
"Bottom" "bottom"
|
||||||
|
"BottomRight" "bottom,right"
|
||||||
|
"Smart" "faces,edges,center"
|
||||||
|
}}
|
||||||
|
|
||||||
<!-- Validate arguments -->
|
<!-- Validate arguments -->
|
||||||
{{ if partial "utilities/IsInvalidArgs.html" (dict "structure" "image-adapter" "args" . "group" "partial") }}
|
{{ if partial "utilities/IsInvalidArgs.html" (dict "structure" "image-adapter" "args" . "group" "partial") }}
|
||||||
{{ errorf "partial [assets/adapter/imgix.html] - Invalid arguments" -}}
|
{{ errorf "partial [assets/adapter/imgix.html] - Invalid arguments" -}}
|
||||||
@@ -20,6 +33,8 @@
|
|||||||
{{ $transform := .transform }}
|
{{ $transform := .transform }}
|
||||||
{{ $height := .height }}
|
{{ $height := .height }}
|
||||||
{{ $width := .width }}
|
{{ $width := .width }}
|
||||||
|
{{ $anchor := "" }}
|
||||||
|
{{ with .anchor }}{{ $anchor = index $anchorMap . }}{{ end }}
|
||||||
{{ if eq $transform "fill" }}{{ $transform = "crop" }}{{ else }}{{ $transform = "max" }}{{ end }}
|
{{ if eq $transform "fill" }}{{ $transform = "crop" }}{{ else }}{{ $transform = "max" }}{{ end }}
|
||||||
{{ $element := "" }}
|
{{ $element := "" }}
|
||||||
|
|
||||||
@@ -37,6 +52,9 @@
|
|||||||
{{ else }}
|
{{ else }}
|
||||||
{{ $operation = printf "f_auto&fit=%s&h=%d&w=%d" $transform $height $width }}
|
{{ $operation = printf "f_auto&fit=%s&h=%d&w=%d" $transform $height $width }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ with $anchor }}
|
||||||
|
{{ $operation = printf "%s&crop=%s" $operation . }}
|
||||||
|
{{ end }}
|
||||||
{{- $element = printf "%s?%s" (urls.JoinPath (slice "https://" $host $dir $file)) $operation -}}
|
{{- $element = printf "%s?%s" (urls.JoinPath (slice "https://" $host $dir $file)) $operation -}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
@@ -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">
|
||||||
|
@@ -23,9 +23,11 @@
|
|||||||
{{- $color := .color -}}
|
{{- $color := .color -}}
|
||||||
{{- $padding := .padding -}}
|
{{- $padding := .padding -}}
|
||||||
{{- $header := .header -}}
|
{{- $header := .header -}}
|
||||||
|
{{- $body := .body -}}
|
||||||
{{- $footer := .footer -}}
|
{{- $footer := .footer -}}
|
||||||
{{- $orientation := .orientation -}}
|
{{- $orientation := .orientation -}}
|
||||||
{{- $ratio := .ratio -}}
|
{{- $ratio := .ratio -}}
|
||||||
|
{{- $portrait := .portrait | default false -}}
|
||||||
{{- $wrapper := .wrapper | default "p-0" -}}
|
{{- $wrapper := .wrapper | default "p-0" -}}
|
||||||
{{- $style := .style -}}
|
{{- $style := .style -}}
|
||||||
{{- $align := .align -}}
|
{{- $align := .align -}}
|
||||||
@@ -36,7 +38,9 @@
|
|||||||
{{- $buttonType := .buttonType -}}
|
{{- $buttonType := .buttonType -}}
|
||||||
{{- $iconRounded := .iconRounded }}
|
{{- $iconRounded := .iconRounded }}
|
||||||
{{- $scroll := .scroll | default false }}
|
{{- $scroll := .scroll | default false }}
|
||||||
|
{{- $spacer := .spacer | default false }}
|
||||||
{{- $hook := .hook | default "assets/card.html" }}
|
{{- $hook := .hook | default "assets/card.html" }}
|
||||||
|
{{- $cols := string .cols | default "3" -}}
|
||||||
|
|
||||||
<!-- Override arguments -->
|
<!-- Override arguments -->
|
||||||
{{ $isPages := in (slice "page.Pages" "resource.Resources") (printf "%T" $pages) }}
|
{{ $isPages := in (slice "page.Pages" "resource.Resources") (printf "%T" $pages) }}
|
||||||
@@ -50,6 +54,13 @@
|
|||||||
{{ $pages = first $paginator.PageSize (after (mul (sub $paginator.PageNumber 1) $paginator.PageSize) $pages) }}
|
{{ $pages = first $paginator.PageSize (after (mul (sub $paginator.PageNumber 1) $paginator.PageSize) $pages) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ $cardWrapper := "" }}
|
||||||
|
{{ if $scroll }}
|
||||||
|
{{ $cardWrapper = printf "card-block card-block-%d" (int $cols) }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if not $spacer }}{{ $class = printf "%s h-100" $class }}{{ end }}
|
||||||
|
|
||||||
{{ $list := slice }}
|
{{ $list := slice }}
|
||||||
{{ if $isPages }}
|
{{ if $isPages }}
|
||||||
{{ range $index, $element := $pages }}
|
{{ range $index, $element := $pages }}
|
||||||
@@ -60,11 +71,13 @@
|
|||||||
<!-- headless page -->
|
<!-- headless page -->
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- $thumbnail := (or (and (reflect.IsMap $element.Params.Thumbnail) $element.Params.Thumbnail.url) $element.Params.Thumbnail) -}}
|
{{- $thumbnail := (or (and (reflect.IsMap $element.Params.Thumbnail) $element.Params.Thumbnail.url) $element.Params.Thumbnail) -}}
|
||||||
|
{{- $anchor := (or (and (reflect.IsMap $element.Params.Thumbnail) $element.Params.Thumbnail.anchor) "") -}}
|
||||||
{{- $params = merge $params (dict
|
{{- $params = merge $params (dict
|
||||||
"title" $element.Title
|
"title" $element.Title
|
||||||
"href" $element.RelPermalink
|
"href" $element.RelPermalink
|
||||||
"description" (partial "utilities/GetDescription.html" (dict "page" $element "raw" true))
|
"description" (partial "utilities/GetDescription.html" (dict "page" $element "raw" true))
|
||||||
"thumbnail" $thumbnail
|
"thumbnail" $thumbnail
|
||||||
|
"anchor" $anchor
|
||||||
"icon" $element.Params.icon
|
"icon" $element.Params.icon
|
||||||
) -}}
|
) -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
@@ -79,13 +92,10 @@
|
|||||||
{{- $max := $count -}}
|
{{- $max := $count -}}
|
||||||
{{- $max = math.Min (.max | default $count) $count -}}
|
{{- $max = math.Min (.max | default $count) $count -}}
|
||||||
{{- $responsive := .responsive | default true -}}
|
{{- $responsive := .responsive | default true -}}
|
||||||
{{- $cols := string .cols | default "3" -}}
|
|
||||||
|
|
||||||
{{- $sizes := "100vw" }}
|
{{- $sizes := "100vw" }}
|
||||||
{{- $colGrid := "" -}}
|
{{- $colGrid := "" -}}
|
||||||
{{ if $scroll }}
|
{{ if not $scroll }}
|
||||||
{{- $colGrid = (printf "card-block-%d" $cols) -}}
|
|
||||||
{{ else }}
|
|
||||||
{{ $colGrid = printf "row-cols-%s" $cols }}
|
{{ $colGrid = printf "row-cols-%s" $cols }}
|
||||||
{{- if eq $cols "1" }}
|
{{- if eq $cols "1" }}
|
||||||
{{ $colGrid = "row-cols-1" -}}
|
{{ $colGrid = "row-cols-1" -}}
|
||||||
@@ -110,6 +120,10 @@
|
|||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ $sizes = printf "(min-width: %s) 20vw, (min-width: %s) 33.3vw, 100vw" $breakpoint.currentSize $breakpoint.prevSize }}
|
{{ $sizes = printf "(min-width: %s) 20vw, (min-width: %s) 33.3vw, 100vw" $breakpoint.currentSize $breakpoint.prevSize }}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
{{ else }}
|
||||||
|
{{ if in (slice "2" "3" "4" "5") $cols }}
|
||||||
|
{{ $sizes = replace (printf "%.1fvw" (div 100.0 (int $cols))) ".0" "" }}
|
||||||
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{- if not $paginate -}}
|
{{- if not $paginate -}}
|
||||||
@@ -119,19 +133,21 @@
|
|||||||
{{- if and (eq $cols "1") (eq $orientation "horizontal") }}{{ $orientation = "horizontal-sm" }}{{ end -}}
|
{{- if and (eq $cols "1") (eq $orientation "horizontal") }}{{ $orientation = "horizontal-sm" }}{{ end -}}
|
||||||
|
|
||||||
<!-- Main code -->
|
<!-- Main code -->
|
||||||
<div class="container {{ $wrapper }} {{ if $scroll }}card-container-wrapper{{ end }}">
|
<div class="container-fluid {{ $wrapper }} {{ if $scroll }}card-container-wrapper{{ end }}">
|
||||||
<div class="row g-{{ $gutter }} {{ if $scroll }}d-flex flex-row flex-nowrap card-container scrollbar-horizontal pb-4 w-100{{ else }}{{ $colGrid }}{{ end }}">
|
<div class="row g-{{ $gutter }} {{ if $scroll }}d-flex flex-row flex-nowrap card-container scrollbar-horizontal pb-4 w-100 {{ end }} {{ $colGrid }}">
|
||||||
{{ range $index, $element := $list }}
|
{{ range $index, $element := $list }}
|
||||||
{{- $params := (dict
|
{{- $params := (dict
|
||||||
"class" (printf "h-100 %s" $class)
|
"class" (printf " %s" $class)
|
||||||
"color" $color
|
"color" $color
|
||||||
"footer" $footer
|
"footer" $footer
|
||||||
|
"body" $body
|
||||||
"header" $header
|
"header" $header
|
||||||
"loading" $loading
|
"loading" $loading
|
||||||
"sizes" $sizes
|
"sizes" $sizes
|
||||||
"orientation" $orientation
|
"orientation" $orientation
|
||||||
"padding" $padding
|
"padding" $padding
|
||||||
"ratio" $ratio
|
"ratio" $ratio
|
||||||
|
"portrait" $portrait
|
||||||
"subtle" $subtle
|
"subtle" $subtle
|
||||||
"style" $style
|
"style" $style
|
||||||
"align" $align
|
"align" $align
|
||||||
@@ -142,7 +158,8 @@
|
|||||||
) -}}
|
) -}}
|
||||||
{{- $params = merge $element $params }}
|
{{- $params = merge $element $params }}
|
||||||
|
|
||||||
<div class="col">
|
<div class="{{ with $cardWrapper }}{{ . }}{{ else }}col{{ end }}">
|
||||||
|
{{ if $spacer }}<div class="spacer"></div>{{ end }}
|
||||||
{{- partial $hook $params -}}
|
{{- partial $hook $params -}}
|
||||||
</div>
|
</div>
|
||||||
{{- if and (lt $index (sub $max 1)) $separator -}}
|
{{- if and (lt $index (sub $max 1)) $separator -}}
|
||||||
|
@@ -15,6 +15,7 @@
|
|||||||
{{- $class := .class -}}
|
{{- $class := .class -}}
|
||||||
{{- $color := .color -}}
|
{{- $color := .color -}}
|
||||||
{{- $description := .description -}}
|
{{- $description := .description -}}
|
||||||
|
{{- $body := .body | default "full" -}}
|
||||||
{{- $footer := .footer | default "none" -}}
|
{{- $footer := .footer | default "none" -}}
|
||||||
{{- $gutter := .gutter | default "0" -}}
|
{{- $gutter := .gutter | default "0" -}}
|
||||||
{{- $header := .header | default "full" -}}
|
{{- $header := .header | default "full" -}}
|
||||||
@@ -29,7 +30,9 @@
|
|||||||
{{- $orientation := .orientation | default "stacked" -}}
|
{{- $orientation := .orientation | default "stacked" -}}
|
||||||
{{- $padding := (string .padding) | default "auto" -}}
|
{{- $padding := (string .padding) | default "auto" -}}
|
||||||
{{- $ratio := .ratio -}}
|
{{- $ratio := .ratio -}}
|
||||||
|
{{- $portrait := .portrait | default false -}}
|
||||||
{{- $thumbnail := .thumbnail -}}
|
{{- $thumbnail := .thumbnail -}}
|
||||||
|
{{- $anchor := .anchor | default "" -}}
|
||||||
{{- $title := .title -}}
|
{{- $title := .title -}}
|
||||||
{{- $subtle := .subtle -}}
|
{{- $subtle := .subtle -}}
|
||||||
{{- $button := .button -}}
|
{{- $button := .button -}}
|
||||||
@@ -48,17 +51,25 @@
|
|||||||
<!-- Override arguments -->
|
<!-- Override arguments -->
|
||||||
{{- $page := "" }}
|
{{- $page := "" }}
|
||||||
{{- if .path }}
|
{{- if .path }}
|
||||||
{{- $page = site.GetPage .path }}
|
{{ $page = partial "utilities/GetPage.html" (dict "url" .path "page" page) }}
|
||||||
{{- if not $page }}
|
{{- if not $page }}
|
||||||
{{- errorf "partial [assets/card.html] - Cannot find page: %s" .path -}}
|
{{ if page.File }}
|
||||||
|
{{- errorf "partial [assets/card.html] - Cannot find target page '%s', see '%s'" .path page.File.Path -}}
|
||||||
|
{{ else }}
|
||||||
|
{{- errorf "partial [assets/card.html] - Cannot find target page '%s'" .path -}}
|
||||||
|
{{ end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with $page -}}
|
{{- with $page -}}
|
||||||
{{- if not $title }}{{ $title = .Title }}{{ end -}}
|
{{- if not $title }}{{ $title = .Title }}{{ end -}}
|
||||||
{{- if not $href }}{{ $href = .RelPermalink }}{{ end -}}
|
{{- if not $href }}{{ $href = .RelPermalink }}{{ end -}}
|
||||||
{{- if not $description }}{{ $description = partial "utilities/GetDescription.html" (dict "page" .) }}{{ end -}}
|
{{- if not $description }}{{ $description = partial "utilities/GetDescription.html" (dict "page" .) }}{{ end -}}
|
||||||
{{- if not $thumbnail }}{{ $thumbnail = (or (and (reflect.IsMap .Params.Thumbnail) .Params.Thumbnail.url) .Params.Thumbnail) }}{{ end -}}
|
{{- if and (not $thumbnail) (not $icon) }}{{ $thumbnail = (or (and (reflect.IsMap .Params.Thumbnail) .Params.Thumbnail.url) .Params.Thumbnail) }}{{ end -}}
|
||||||
|
{{ if not $ratio }}
|
||||||
|
{{- if and (reflect.IsMap .Params.Thumbnail) .Params.Thumbnail.ratio }}{{ $ratio = .Params.Thumbnail.ratio }}{{ end -}}
|
||||||
|
{{ end }}
|
||||||
{{- if not $icon }}{{ $icon = .Params.icon }}{{ end -}}
|
{{- if not $icon }}{{ $icon = .Params.icon }}{{ end -}}
|
||||||
|
{{- if not $anchor }}{{ $anchor = (or (and (reflect.IsMap .Params.Thumbnail) .Params.Thumbnail.anchor) "") }}{{ end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{ if (hasPrefix $orientation "horizontal") }}
|
{{ if (hasPrefix $orientation "horizontal") }}
|
||||||
@@ -69,6 +80,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{- if eq $orientation "none" }}{{ $thumbnail = "" }}{{ $icon = "" }}{{ end -}}
|
{{- if eq $orientation "none" }}{{ $thumbnail = "" }}{{ $icon = "" }}{{ end -}}
|
||||||
|
{{- if eq $body "none" }}{{ $description = "" }}{{ end -}}
|
||||||
|
|
||||||
<!-- Inline partial to render the card's body -->
|
<!-- Inline partial to render the card's body -->
|
||||||
{{- define "partials/card-body.html" -}}
|
{{- define "partials/card-body.html" -}}
|
||||||
@@ -80,7 +92,7 @@
|
|||||||
|
|
||||||
{{- if $href -}}
|
{{- if $href -}}
|
||||||
<a href="{{ $href }}" class="{{ if $color }}link-bg-{{ $color }}{{ else }}card-body-link{{ end }} stretched-link">
|
<a href="{{ $href }}" class="{{ if $color }}link-bg-{{ $color }}{{ else }}card-body-link{{ end }} stretched-link">
|
||||||
<p class="card-title fs-5 fw-bold">{{ $title }}</p>
|
<p class="card-title fs-lg-5 fs-6 fw-bold">{{ $title }}</p>
|
||||||
{{ with $description }}
|
{{ with $description }}
|
||||||
<div class="card-text {{ if $color }}link-bg-{{ $color }}{{ else }}card-body-link{{ end }}">
|
<div class="card-text {{ if $color }}link-bg-{{ $color }}{{ else }}card-body-link{{ end }}">
|
||||||
{{ . | safeHTML }}
|
{{ . | safeHTML }}
|
||||||
@@ -89,7 +101,7 @@
|
|||||||
</a>
|
</a>
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
<div>
|
<div>
|
||||||
{{ with $title }}<p class="card-title fs-5 fw-bold">{{ . }}</p>{{ end -}}
|
{{ with $title }}<p class="card-title fs-lg-5 fs-6 fw-bold">{{ . }}</p>{{ end -}}
|
||||||
{{ with $description }}<div class="card-text">{{ . | safeHTML }}</div>{{ end -}}
|
{{ with $description }}<div class="card-text">{{ . | safeHTML }}</div>{{ end -}}
|
||||||
</div>
|
</div>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
@@ -108,7 +120,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 -}}
|
||||||
{{- partial "utilities/date.html" (dict "date" $page.Date "format" "long") -}} •
|
{{ 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 -}}
|
||||||
|
|
||||||
@@ -161,7 +173,7 @@
|
|||||||
<div class="row g-0 row-cols-2 h-100{{ if $button }} pb-5{{ end }}">
|
<div class="row g-0 row-cols-2 h-100{{ if $button }} pb-5{{ end }}">
|
||||||
{{- if $thumbnail -}}
|
{{- if $thumbnail -}}
|
||||||
<div class="{{ $col1 }}">
|
<div class="{{ $col1 }}">
|
||||||
{{- partial $hook (dict "url" $thumbnail "ratio" (or $ratio "1x1") "sizes" $sizes "wrapper" "h-100 card-img-wrap" "class" "rounded-start card-img-h100 card-img-bg" "title" $title "loading" $loading) -}}
|
{{- partial $hook (dict "url" $thumbnail "ratio" (or $ratio "1x1") "portrait" $portrait "sizes" $sizes "anchor" $anchor "wrapper" "h-100 card-img-wrap" "class" "rounded-start card-img-h100 card-img-bg" "title" $title "loading" $loading) -}}
|
||||||
</div>
|
</div>
|
||||||
{{- else if $icon -}}
|
{{- else if $icon -}}
|
||||||
<div class="{{ $col1 }} p-{{ $padding }}">
|
<div class="{{ $col1 }} p-{{ $padding }}">
|
||||||
@@ -206,7 +218,7 @@
|
|||||||
<!-- Render stacked / default card -->
|
<!-- Render stacked / default card -->
|
||||||
<div class="card {{ $colorStyle }} {{ $class }} text-{{ $align }}">
|
<div class="card {{ $colorStyle }} {{ $class }} text-{{ $align }}">
|
||||||
{{- if $thumbnail -}}
|
{{- if $thumbnail -}}
|
||||||
{{- partial $hook (dict "url" $thumbnail "ratio" (or $ratio "16x9") "sizes" $sizes "wrapper" "card-img-wrap" "class" "card-img-top card-img-bg" "title" (or $alt $title) "loading" $loading) -}}
|
{{- partial $hook (dict "url" $thumbnail "ratio" (or $ratio "16x9") "portrait" $portrait "anchor" $anchor "sizes" $sizes "wrapper" "card-img-wrap" "class" "card-img-top card-img-bg" "title" (or $alt $title) "loading" $loading) -}}
|
||||||
{{- else if $icon -}}
|
{{- else if $icon -}}
|
||||||
<div class="card-icon p-{{ $padding }} {{ $iconStyle }} text-{{ $align }} {{ if $iconRounded }}fa-stack {{ $stack }}{{ end }} w-100">
|
<div class="card-icon p-{{ $padding }} {{ $iconStyle }} text-{{ $align }} {{ if $iconRounded }}fa-stack {{ $stack }}{{ end }} w-100">
|
||||||
{{ if $iconRounded }}
|
{{ if $iconRounded }}
|
||||||
|
@@ -15,15 +15,16 @@
|
|||||||
{{- $mode := .mode -}}
|
{{- $mode := .mode -}}
|
||||||
{{- $modes := .modes -}}
|
{{- $modes := .modes -}}
|
||||||
{{- $plain := .plain | default false }}
|
{{- $plain := .plain | default false }}
|
||||||
|
{{- $anchor := .anchor }}
|
||||||
|
|
||||||
<!-- Split url into base and anchor when applicable (only relevant for vector images) -->
|
<!-- Split url into base and anchor when applicable (only relevant for vector images) -->
|
||||||
{{- $anchor := "" -}}
|
{{- $fileAnchor := "" -}}
|
||||||
{{- $segments := split $url "#" -}}
|
{{- $segments := split $url "#" -}}
|
||||||
{{- if gt (len $segments) 2 -}}
|
{{- if gt (len $segments) 2 -}}
|
||||||
{{- errorf "Invalid path or url: %q" $url -}}
|
{{- errorf "Invalid path or url: %q" $url -}}
|
||||||
{{- else if eq (len $segments) 2 }}
|
{{- else if eq (len $segments) 2 }}
|
||||||
{{- $url = index $segments 0 -}}
|
{{- $url = index $segments 0 -}}
|
||||||
{{- $anchor = index $segments 1 -}}
|
{{- $fileAnchor = index $segments 1 -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
<!-- Obtain fallback URL and imageset definition -->
|
<!-- Obtain fallback URL and imageset definition -->
|
||||||
@@ -31,13 +32,16 @@
|
|||||||
"page" $page
|
"page" $page
|
||||||
"url" .url
|
"url" .url
|
||||||
"ratio" $ratio
|
"ratio" $ratio
|
||||||
|
"portrait" $portrait
|
||||||
"plain" $plain
|
"plain" $plain
|
||||||
"imageset" true
|
"imageset" true
|
||||||
|
"anchor" $anchor
|
||||||
) }}
|
) }}
|
||||||
{{ $fallbackURL := index $target "target" }}
|
{{ $fallbackURL := index $target "target" }}
|
||||||
{{ $imgset := index $target "set" }}
|
{{ $imgset := index $target "set" }}
|
||||||
{{ $height := index $target "height" }}
|
{{ $height := index $target "height" }}
|
||||||
{{ $width := index $target "width" }}
|
{{ $width := index $target "width" }}
|
||||||
|
{{ $data := index $target "data" }}
|
||||||
|
|
||||||
<!-- Add color modes -->
|
<!-- Add color modes -->
|
||||||
{{- range $none := $modes -}}
|
{{- range $none := $modes -}}
|
||||||
@@ -49,9 +53,17 @@
|
|||||||
<!-- Generate image definition -->
|
<!-- Generate image definition -->
|
||||||
{{- if $caption -}}
|
{{- if $caption -}}
|
||||||
<figure {{ with $wrapper }}class="{{ . }}"{{ end }}>
|
<figure {{ with $wrapper }}class="{{ . }}"{{ end }}>
|
||||||
|
{{ else }}
|
||||||
|
{{ with $wrapper }}<div class="{{ . }}">{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div class="{{ if not $caption }}{{ $wrapper }}{{ end }}">
|
|
||||||
{{- if not $anchor -}}
|
{{ if $data }}
|
||||||
|
{{- if site.Params.debugging.includeSVGOrigin }}
|
||||||
|
{{ printf "<!-- <svg src=\"%s\"> -->" $.url | safeHTML }}
|
||||||
|
{{ end -}}
|
||||||
|
{{- $data = replace $data "<svg" (printf "<svg class=\"%s\"" $class) -}}
|
||||||
|
{{- $data | safeHTML -}}
|
||||||
|
{{- else if not $fileAnchor -}}
|
||||||
<img class="img-fluid {{ $class }}"
|
<img class="img-fluid {{ $class }}"
|
||||||
src="{{ $fallbackURL }}"
|
src="{{ $fallbackURL }}"
|
||||||
{{ if $lazy }}loading="lazy"{{ end }}
|
{{ if $lazy }}loading="lazy"{{ end }}
|
||||||
@@ -62,11 +74,12 @@
|
|||||||
{{ with (or $title $caption) }}alt="{{ . }}"{{ end }}>
|
{{ with (or $title $caption) }}alt="{{ . }}"{{ end }}>
|
||||||
{{- else }}
|
{{- else }}
|
||||||
<svg class="{{ $class }}">
|
<svg class="{{ $class }}">
|
||||||
<use href="{{ $fallbackURL }}#{{ $anchor }}"></use>
|
<use href="{{ $fallbackURL }}#{{ $fileAnchor }}"></use>
|
||||||
</svg>
|
</svg>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
|
||||||
{{- if $caption -}}
|
{{- if $caption -}}
|
||||||
<figcaption class="figure-caption{{ with $figclass }} {{ . }}{{ end }}">{{ $caption | safeHTML }}</figcaption>
|
<figcaption class="figure-caption{{ with $figclass }} {{ . }}{{ end }}">{{ $caption | safeHTML }}</figcaption>
|
||||||
</figure>
|
</figure>
|
||||||
|
{{ else if $wrapper }}
|
||||||
|
</div>
|
||||||
{{- end -}}
|
{{- end -}}
|
@@ -2,12 +2,14 @@
|
|||||||
{{- $page := .page -}}
|
{{- $page := .page -}}
|
||||||
{{- $url := .url -}}
|
{{- $url := .url -}}
|
||||||
{{- $ratio := .ratio -}}
|
{{- $ratio := .ratio -}}
|
||||||
|
{{- $portrait := .portrait -}}
|
||||||
{{- $height := .height -}}
|
{{- $height := .height -}}
|
||||||
{{- $width := .width -}}
|
{{- $width := .width -}}
|
||||||
{{- $plain := .plain | default false }}
|
{{- $plain := .plain | default false }}
|
||||||
{{- $targetURL := "" -}}
|
{{- $targetURL := "" -}}
|
||||||
{{- $set := "" -}}
|
{{- $set := "" -}}
|
||||||
{{- $imageset := .imageset | default false }}
|
{{- $imageset := .imageset | default false }}
|
||||||
|
{{- $anchor := .anchor | default "" -}}
|
||||||
|
|
||||||
<!-- Split url into base and anchor when applicable (only relevant for vector images) -->
|
<!-- Split url into base and anchor when applicable (only relevant for vector images) -->
|
||||||
{{- $segments := split $url "#" -}}
|
{{- $segments := split $url "#" -}}
|
||||||
@@ -45,6 +47,7 @@
|
|||||||
{{ $dims := slice }}
|
{{ $dims := slice }}
|
||||||
{{- $res := "" -}}
|
{{- $res := "" -}}
|
||||||
{{- $img := "" -}}
|
{{- $img := "" -}}
|
||||||
|
{{- $data := "" -}}
|
||||||
{{ $transform := "" }}
|
{{ $transform := "" }}
|
||||||
{{- if hasSuffix $url "svg" -}}
|
{{- if hasSuffix $url "svg" -}}
|
||||||
{{- $res = partial "utilities/GetResource.html" (dict "url" $url "page" $page) -}}
|
{{- $res = partial "utilities/GetResource.html" (dict "url" $url "page" $page) -}}
|
||||||
@@ -59,6 +62,10 @@
|
|||||||
{{ $dims = $dims | append "500" }}
|
{{ $dims = $dims | append "500" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ else if eq (string $res.MediaType) "image/svg+xml" }}
|
||||||
|
{{ $data = $res.Content }}
|
||||||
|
{{ else }}
|
||||||
|
{{ warnf "Unsupported media type '%s': %q" (string $res.MediaType) $url -}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ else if $ratio }}
|
{{ else if $ratio }}
|
||||||
{{ $transform = "fill" }}
|
{{ $transform = "fill" }}
|
||||||
@@ -84,6 +91,22 @@
|
|||||||
|
|
||||||
<!-- Derive image width and height -->
|
<!-- Derive image width and height -->
|
||||||
{{ if not $plain }}
|
{{ if not $plain }}
|
||||||
|
{{ if $portrait }}
|
||||||
|
{{ with $dims }}
|
||||||
|
{{ $newDims := slice }}
|
||||||
|
{{ range $dim := . }}
|
||||||
|
{{ $width = (int (index (split $dim "x") 1)) }}
|
||||||
|
{{ $height = (int (index (split $dim "x") 0)) }}
|
||||||
|
{{- $newDims = $newDims | append (printf "%dx%d" (int $width) $height ) -}}
|
||||||
|
{{ end }}
|
||||||
|
{{ $dims = $newDims }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ $newWidth := $height }}
|
||||||
|
{{ $newHeight := $width }}
|
||||||
|
{{ $width = $newWidth }}
|
||||||
|
{{ $height = $newHeight }}
|
||||||
|
{{ else }}
|
||||||
{{ with $dims }}
|
{{ with $dims }}
|
||||||
{{ range $dim := (. | last 1) }}
|
{{ range $dim := (. | last 1) }}
|
||||||
{{ $width = (int (index (split $dim "x") 0)) }}
|
{{ $width = (int (index (split $dim "x") 0)) }}
|
||||||
@@ -91,6 +114,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
<!-- Generate image url -->
|
<!-- Generate image url -->
|
||||||
{{ if or (hasSuffix $url "svg") $plain }}
|
{{ if or (hasSuffix $url "svg") $plain }}
|
||||||
@@ -100,14 +124,22 @@
|
|||||||
"url" $url
|
"url" $url
|
||||||
"img" $img
|
"img" $img
|
||||||
"dims" ($dims | last 1)
|
"dims" ($dims | last 1)
|
||||||
|
"anchor" $anchor
|
||||||
"transform" $transform
|
"transform" $transform
|
||||||
"hook" $hook
|
"hook" $hook
|
||||||
"format" "jpg"
|
"format" "png"
|
||||||
"includeWidth" false
|
"includeWidth" false
|
||||||
)}}
|
)}}
|
||||||
{{ if $imageset }}
|
{{ if $imageset }}
|
||||||
{{- $set = partial "assets/helpers/image-set.html" (dict "url" $url "img" $img "dims" $dims "transform" $transform "hook" $hook) -}}
|
{{- $set = partial "assets/helpers/image-set.html" (dict
|
||||||
|
"url" $url
|
||||||
|
"img" $img
|
||||||
|
"dims" $dims
|
||||||
|
"anchor" $anchor
|
||||||
|
"transform" $transform
|
||||||
|
"hook" $hook
|
||||||
|
) -}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ return (dict "target" $targetURL "set" $set "height" $height "width" $width) }}
|
{{ return (dict "target" $targetURL "set" $set "height" $height "width" $width "data" $data) }}
|
@@ -7,6 +7,7 @@
|
|||||||
{{ $transform := .transform }}
|
{{ $transform := .transform }}
|
||||||
{{ $format := .format }}
|
{{ $format := .format }}
|
||||||
{{ $includeWidth := .includeWidth | default true }}
|
{{ $includeWidth := .includeWidth | default true }}
|
||||||
|
{{ $anchor := .anchor | default "" }}
|
||||||
|
|
||||||
{{ $host := (urls.Parse $url).Hostname }}
|
{{ $host := (urls.Parse $url).Hostname }}
|
||||||
{{ $dir := (urls.Parse $url).Path }}
|
{{ $dir := (urls.Parse $url).Path }}
|
||||||
@@ -35,6 +36,7 @@
|
|||||||
"width" $width
|
"width" $width
|
||||||
"height" $height
|
"height" $height
|
||||||
"format" $format
|
"format" $format
|
||||||
|
"anchor" $anchor
|
||||||
)}}
|
)}}
|
||||||
{{ if $includeWidth }}
|
{{ if $includeWidth }}
|
||||||
{{ $imgset = $imgset | append (printf "%s %dw" $element $width) }}
|
{{ $imgset = $imgset | append (printf "%s %dw" $element $width) }}
|
||||||
|
@@ -27,6 +27,7 @@
|
|||||||
{{- if eq $priority "auto" }}{{ $priority = "" }}{{ end -}}
|
{{- if eq $priority "auto" }}{{ $priority = "" }}{{ end -}}
|
||||||
{{- $sizes := .sizes | default "100vw" -}}
|
{{- $sizes := .sizes | default "100vw" -}}
|
||||||
{{- $plain := .plain | default false -}}
|
{{- $plain := .plain | default false -}}
|
||||||
|
{{- $anchor := .anchor | default "" -}}
|
||||||
|
|
||||||
{{- $absoluteURL := site.Params.main.canonifyAssetsURLs | default false -}}
|
{{- $absoluteURL := site.Params.main.canonifyAssetsURLs | default false -}}
|
||||||
{{- $url := .url -}}
|
{{- $url := .url -}}
|
||||||
@@ -49,6 +50,7 @@
|
|||||||
"sizes" $sizes
|
"sizes" $sizes
|
||||||
"absoluteURL" $absoluteURL
|
"absoluteURL" $absoluteURL
|
||||||
"plain" $plain
|
"plain" $plain
|
||||||
|
"anchor" $anchor
|
||||||
)
|
)
|
||||||
-}}
|
-}}
|
||||||
|
|
||||||
|
@@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
<!-- Initialize arguments -->
|
<!-- Initialize arguments -->
|
||||||
{{ $destination := strings.TrimPrefix (strings.TrimSuffix "/" site.BaseURL) .destination }}
|
{{ $destination := strings.TrimPrefix (strings.TrimSuffix "/" site.BaseURL) .destination }}
|
||||||
|
{{ if not $destination }}{{ $destination = "/" }}{{ end }}
|
||||||
|
|
||||||
{{- $target := "" -}}
|
{{- $target := "" -}}
|
||||||
{{- $rel := "" -}}
|
{{- $rel := "" -}}
|
||||||
@@ -22,9 +23,11 @@
|
|||||||
{{- $cue := .cue | default site.Params.main.externalLinks.cue -}}
|
{{- $cue := .cue | default site.Params.main.externalLinks.cue -}}
|
||||||
{{- $tab := .tab | default site.Params.main.externalLinks.tab -}}
|
{{- $tab := .tab | default site.Params.main.externalLinks.tab -}}
|
||||||
{{- $isExternal := or (ne (urls.Parse (absURL $destination)).Host (urls.Parse site.BaseURL).Host) $external -}}
|
{{- $isExternal := or (ne (urls.Parse (absURL $destination)).Host (urls.Parse site.BaseURL).Host) $external -}}
|
||||||
|
{{- $isLocal := hasPrefix $destination "#" -}}
|
||||||
{{- $page := .page -}}
|
{{- $page := .page -}}
|
||||||
{{- $anchor := "" -}}
|
{{- $anchor := "" -}}
|
||||||
{{- $text := .text -}}
|
{{- $text := .text -}}
|
||||||
|
{{- $title := .title -}}
|
||||||
{{- $class := .class -}}
|
{{- $class := .class -}}
|
||||||
|
|
||||||
<!-- Main code -->
|
<!-- Main code -->
|
||||||
@@ -53,24 +56,50 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if not $isLocal }}
|
||||||
{{ $ref := partial "utilities/GetPage.html" (dict "url" $destination "page" $page) }}
|
{{ $ref := partial "utilities/GetPage.html" (dict "url" $destination "page" $page) }}
|
||||||
{{- if not $ref -}}
|
{{- if not $ref -}}
|
||||||
{{- errorf "partial [assets/link.html] - Cannot find page: %s" $destination -}}
|
{{ $pageContext := "" }}
|
||||||
|
{{ with $page.File }}{{ $pageContext = path.Join "/content" .Dir }}{{ end }}
|
||||||
|
{{ $isPageRes := fileExists (path.Join $pageContext $destination) }}
|
||||||
|
{{ $isStatic := fileExists (path.Join "static" $destination) }}
|
||||||
|
{{ if and (not $isPageRes) (not $isStatic) }}
|
||||||
|
{{- errorf "partial [assets/link.html] - Cannot find page or asset: '%s' at '%s'" $destination $page.File.Path -}}
|
||||||
{{- $error = true -}}
|
{{- $error = true -}}
|
||||||
{{- else -}}
|
{{ else if $isPageRes }}
|
||||||
|
{{ $destination = urls.JoinPath "/" (strings.TrimPrefix "/content" $pageContext) $destination }}
|
||||||
|
{{ else if $isStatic }}
|
||||||
|
{{ $destination = urls.JoinPath "/" $destination }}
|
||||||
|
{{ end }}
|
||||||
|
{{- with $anchor }}{{ $destination = printf "%s#%s" (strings.TrimSuffix "/" $destination) . -}}{{ end -}}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{- if and $ref (not $error) -}}
|
||||||
{{- $destination = $ref.RelPermalink -}}
|
{{- $destination = $ref.RelPermalink -}}
|
||||||
{{- with $anchor }}{{ $destination = printf "%s#%s" (strings.TrimSuffix "/" $destination) . -}}{{ end -}}
|
{{- with $anchor }}{{ $destination = printf "%s#%s" (strings.TrimSuffix "/" $destination) . -}}{{ end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
{{- if not $text -}}
|
{{- if not $text -}}
|
||||||
{{- if $anchor -}}
|
{{ if $anchor }}{{ $text = $anchor }}{{ else }}{{ $text = $ref.LinkTitle }}{{ end }}
|
||||||
{{- $text = $anchor -}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- $text = $ref.LinkTitle -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
{{ else }}
|
||||||
|
{{ with $anchor }}
|
||||||
|
{{ $destination = printf "#%s" . }}
|
||||||
|
{{ if not $text }}{{ $text = . }}{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{- if not $case }}{{ $text = lower $text }}{{ end -}}
|
{{- if not $case }}{{ $text = lower $text }}{{ end -}}
|
||||||
{{- end -}}
|
{{- 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
|
||||||
{{- end }}
|
{{- with $destination }} href="{{ . | safeURL }}"{{ end -}}
|
||||||
|
{{ with $class }} class="{{ . }}" {{ end -}}
|
||||||
|
{{ with $target }} target="{{ . }}"{{ end -}}
|
||||||
|
{{ with $rel }} rel="{{ . }}"{{ end -}}
|
||||||
|
{{ with $title }} title="{{ . }}"{{ end -}}
|
||||||
|
>
|
||||||
|
{{- $text | safeHTML -}}
|
||||||
|
</a>
|
||||||
|
{{- end -}}
|
@@ -24,11 +24,12 @@
|
|||||||
{{- $menuURL := "" -}}
|
{{- $menuURL := "" -}}
|
||||||
{{ if or (strings.HasPrefix $menu.PageRef "http") (strings.HasPrefix $menu.URL "http") }}
|
{{ if or (strings.HasPrefix $menu.PageRef "http") (strings.HasPrefix $menu.URL "http") }}
|
||||||
{{ $menuURL = or $menu.PageRef $menu.URL }}
|
{{ $menuURL = or $menu.PageRef $menu.URL }}
|
||||||
{{ else }}
|
{{ else if (or $menu.PageRef $menu.URL) }}
|
||||||
{{- $menuURL = urls.JoinPath $baseURL ((or $menu.PageRef $menu.URL) | relLangURL) -}}
|
{{- $menuURL = urls.JoinPath $baseURL ((or $menu.PageRef $menu.URL) | relLangURL) -}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{- $pageURL := $page.RelPermalink -}}
|
{{- $pageURL := $page.RelPermalink -}}
|
||||||
{{- $isActive := or (and (hasPrefix $pageURL $menuURL) (ne $menuURL ("/" | relLangURL))) (eq $pageURL $menuURL) -}}
|
{{- $isActive := or (and (hasPrefix $pageURL $menuURL) (ne $menuURL ("/" | relLangURL))) (eq $pageURL $menuURL) -}}
|
||||||
|
{{ if not $menu.PageRef }}{{ $isActive = false }}{{ end }}
|
||||||
{{- $isAlias := $menu.Params.alias -}}
|
{{- $isAlias := $menu.Params.alias -}}
|
||||||
{{- $isIcon := $menu.Params.icon -}}
|
{{- $isIcon := $menu.Params.icon -}}
|
||||||
|
|
||||||
@@ -47,6 +48,11 @@
|
|||||||
{{- if $cue -}}
|
{{- if $cue -}}
|
||||||
{{ $suffix = partial "assets/icon.html" (dict "icon" "fas up-right-from-square fa-2xs") }}
|
{{ $suffix = partial "assets/icon.html" (dict "icon" "fas up-right-from-square fa-2xs") }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{ else if $menuURL }}
|
||||||
|
{{ $ref := partial "utilities/GetPage.html" (dict "url" $url.Path "page" $page) }}
|
||||||
|
{{- if not $ref -}}
|
||||||
|
{{- warnf "partial [assets/navbar-item.html] - Cannot find page of menu item '%s': %s" $menu.Name $url -}}
|
||||||
|
{{ end }}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
{{- $mainNav := urlize (lower $menu.Name) -}}
|
{{- $mainNav := urlize (lower $menu.Name) -}}
|
||||||
@@ -82,7 +88,7 @@
|
|||||||
<a class="{{ $anchorClass }}{{ if $isActive }} active{{ end }}{{ with $class }} {{ . }}{{ end }}"
|
<a class="{{ $anchorClass }}{{ if $isActive }} active{{ end }}{{ with $class }} {{ . }}{{ end }}"
|
||||||
{{ if $isIcon }}aria-label="{{ $menu.Name }}"{{ end }}
|
{{ if $isIcon }}aria-label="{{ $menu.Name }}"{{ end }}
|
||||||
data-nav="main" data-nav-main="{{ $mainNav }}"{{ with $childNav }} data-nav-child="{{ . }}"{{ end }}
|
data-nav="main" data-nav-main="{{ $mainNav }}"{{ with $childNav }} data-nav-child="{{ . }}"{{ end }}
|
||||||
href="{{ $menuURL }}{{ $params | safeHTMLAttr }}"{{ with $externalHref }} {{ . | safeHTMLAttr }}{{ end }} {{ $button | safeHTMLAttr }}>
|
{{ if $menuURL }} href="{{ $menuURL }}{{ $params | safeHTMLAttr }}"{{ with $externalHref }} {{ . | safeHTMLAttr }}{{ end }}{{ end }} {{ $button | safeHTMLAttr }}>
|
||||||
|
|
||||||
{{- with $menu.Pre }}
|
{{- with $menu.Pre }}
|
||||||
{{ if hasPrefix . "<i" }}
|
{{ if hasPrefix . "<i" }}
|
||||||
|
@@ -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 -}}
|
||||||
@@ -170,7 +165,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<!-- Main code -->
|
<!-- Main code -->
|
||||||
<div class="container-fluid {{ if $fixed }}fixed-top{{ end }} p-0{{ with $class }} {{ . }}{{ end }}">
|
<div class="container-fluid {{ if $fixed }}fixed-top{{ else if $overlay }}navbar-overlay{{ end }} p-0{{ with $class }} {{ . }}{{ end }}">
|
||||||
{{- partial "assets/page-alert.html" (dict "page" $page) -}}
|
{{- partial "assets/page-alert.html" (dict "page" $page) -}}
|
||||||
<nav class="navbar p-4
|
<nav class="navbar p-4
|
||||||
{{- if not $overlay }}{{ with $color }} bg-{{ . }}{{ end }}{{ end -}}
|
{{- if not $overlay }}{{ with $color }} bg-{{ . }}{{ end }}{{ end -}}
|
||||||
@@ -178,9 +173,9 @@
|
|||||||
{{ if $contrast }} navbar-contrast{{ end }}"
|
{{ if $contrast }} navbar-contrast{{ end }}"
|
||||||
{{ if $overlay }}
|
{{ if $overlay }}
|
||||||
data-bs-theme="{{ $overlayMode }}"
|
data-bs-theme="{{ $overlayMode }}"
|
||||||
data-bs-overlay="{{ $overlayMode }}"
|
{{ if $fixed }}data-bs-overlay="{{ $overlayMode }}"{{ end }}
|
||||||
{{ else }}{{ with $theme }}data-bs-theme="{{ . }}"{{ end }}{{ end }}
|
{{ if $color }}data-navbar-color="{{ $color }}"{{ end }}
|
||||||
{{ if $overlay }}data-navbar-color="{{ $color }}"{{ end }}
|
{{ end }}
|
||||||
>
|
>
|
||||||
<div class="container-xxl p-0">
|
<div class="container-xxl p-0">
|
||||||
<div class="d-flex navbar-container justify-content-center">
|
<div class="d-flex navbar-container justify-content-center">
|
||||||
@@ -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>
|
||||||
|
@@ -64,11 +64,11 @@
|
|||||||
{{- with index . "layout" }}{{ $layout = . }}{{ end -}}
|
{{- with index . "layout" }}{{ $layout = . }}{{ end -}}
|
||||||
{{- with index . "pane" }}{{ $pane = . }}{{ end -}}
|
{{- with index . "pane" }}{{ $pane = . }}{{ end -}}
|
||||||
{{- with index . "type" }}{{ $type = . }}{{ end -}}
|
{{- with index . "type" }}{{ $type = . }}{{ end -}}
|
||||||
{{- with index . "vertical" }}{{ $vertical = partial "utilities/CastBool.html" . }}{{ end -}}
|
{{- if (isset . "vertical") }}{{ $vertical = partial "utilities/CastBool.html" (index . "vertical") }}{{ end -}}
|
||||||
{{- with index . "width" }}{{ $width = . }}{{ end -}}
|
{{- with index . "width" }}{{ $width = . }}{{ end -}}
|
||||||
{{- with index . "kind" }}{{ $kind = . }}{{ end -}}
|
{{- with index . "kind" }}{{ $kind = . }}{{ end -}}
|
||||||
{{- with index . "ratio" }}{{ $ratio = . }}{{ end -}}
|
{{- with index . "ratio" }}{{ $ratio = . }}{{ end -}}
|
||||||
{{- with index . "wrap" }}{{ $wrap = partial "utilities/CastBool.html" . }}{{ end -}}
|
{{- if (isset . "wrap") }}{{ $wrap = partial "utilities/CastBool.html" (index . "wrap") }}{{ end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{ if isset $page.Params "nested" }}
|
{{ if isset $page.Params "nested" }}
|
||||||
|
@@ -7,6 +7,9 @@
|
|||||||
{{ $page := .page }}
|
{{ $page := .page }}
|
||||||
{{ $input := .input }}
|
{{ $input := .input }}
|
||||||
{{ $args := .args }}
|
{{ $args := .args }}
|
||||||
|
{{ $sortable := .sortable | default false }}
|
||||||
|
{{ $paging := .paging | default false }}
|
||||||
|
{{ $searchable := .searchable | default false }}
|
||||||
|
|
||||||
{{- $responsiveVals := slice "table-responsive" "table-responsive-none" "table-responsive-sm" "table-responsive-md" "table-responsive-lg" "table-responsive-xl" "table-responsive-xxl" -}}
|
{{- $responsiveVals := slice "table-responsive" "table-responsive-none" "table-responsive-sm" "table-responsive-md" "table-responsive-lg" "table-responsive-xl" "table-responsive-xxl" -}}
|
||||||
{{- $responsive := intersect $args $responsiveVals -}}
|
{{- $responsive := intersect $args $responsiveVals -}}
|
||||||
@@ -18,13 +21,21 @@
|
|||||||
{{ $responsive = (slice "table-responsive") -}}
|
{{ $responsive = (slice "table-responsive") -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- $class := delimit $main " " -}}
|
||||||
|
{{ if or $sortable $paging $searchable }}{{ $class = trim (printf "%s data-table" $class) " " }}{{ end }}
|
||||||
{{- $input := $input | $page.RenderString }}
|
{{- $input := $input | $page.RenderString }}
|
||||||
{{- $input = replace $input "style=\"text-align:left\"" "class=\"text-start\"" -}}
|
{{- $input = replace $input "style=\"text-align:left\"" "class=\"text-start\"" -}}
|
||||||
{{- $input = replace $input "style=\"text-align:center\"" "class=\"text-center\"" -}}
|
{{- $input = replace $input "style=\"text-align:center\"" "class=\"text-center\"" -}}
|
||||||
{{- $input = replace $input "style=\"text-align:right\"" "class=\"text-end\"" -}}
|
{{- $input = replace $input "style=\"text-align:right\"" "class=\"text-end\"" -}}
|
||||||
{{- $class := delimit $main " " -}}
|
|
||||||
|
{{ $attributes := "" }}
|
||||||
|
{{ if $sortable }}{{ $attributes = printf "%s data-table-sortable=true" $attributes }}{{ end }}
|
||||||
|
{{ if $paging }}{{ $attributes = printf "%s data-table-paging=true" $attributes }}{{ end }}
|
||||||
|
{{ if $searchable }}{{ $attributes = printf "%s data-table-searchable=true" $attributes }}{{ end }}
|
||||||
|
|
||||||
{{- $old := "<table>" -}}
|
{{- $old := "<table>" -}}
|
||||||
{{- $new := printf "<table class=\"table %s\">" $class -}}
|
{{- $new := printf "<table class=\"table %s\" %s>" $class (trim $attributes " ") -}}
|
||||||
|
|
||||||
{{ $input := replace $input $old $new -}}
|
{{ $input := replace $input $old $new -}}
|
||||||
{{- with $responsive }}<div class="{{ delimit . " " }}">{{ end -}}
|
{{- with $responsive }}<div class="{{ delimit . " " }}">{{ end -}}
|
||||||
{{ $input | safeHTML }}
|
{{ $input | safeHTML }}
|
||||||
|
@@ -4,6 +4,7 @@
|
|||||||
{{ else }}
|
{{ else }}
|
||||||
{{ $page_modules = $page_modules | append .Params.modules }}
|
{{ $page_modules = $page_modules | append .Params.modules }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ with .Scratch.Get "dependencies" }}{{ $page_modules = append $page_modules . | uniq }}{{ end }}
|
||||||
|
|
||||||
{{ $config := page.Scratch.Get "modules" }}
|
{{ $config := page.Scratch.Get "modules" }}
|
||||||
{{ if not $config }}
|
{{ if not $config }}
|
||||||
@@ -26,5 +27,20 @@
|
|||||||
{{- with index . "state" }}{{ $state = . }}{{ end -}}
|
{{- with index . "state" }}{{ $state = . }}{{ end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- partial "footer/scripts.html" (dict "filename" $filename "match" $match "header" false "skipTemplate" $skipTemplate "state" $state "page" .) }}
|
{{ $localize := false }}
|
||||||
|
{{- if reflect.IsSlice $config.localize -}}
|
||||||
|
{{- if in $config.localize $mod}}
|
||||||
|
{{- $localize = true -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- partial "footer/scripts.html" (dict
|
||||||
|
"filename" $filename
|
||||||
|
"match" $match
|
||||||
|
"header" false
|
||||||
|
"skipTemplate" $skipTemplate
|
||||||
|
"state" $state
|
||||||
|
"localize" $localize
|
||||||
|
"page" page
|
||||||
|
) }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
@@ -1,3 +1,18 @@
|
|||||||
|
<!--
|
||||||
|
Copyright © 2024 The Hinode Team / Mark Dumay. All rights reserved.
|
||||||
|
Use of this source code is governed by The MIT License (MIT) that can be found in the LICENSE file.
|
||||||
|
Visit gethinode.com/license for more details.
|
||||||
|
-->
|
||||||
|
|
||||||
|
{{ $error := false }}
|
||||||
|
|
||||||
|
<!-- Validate arguments -->
|
||||||
|
{{ if partial "utilities/IsInvalidArgs.html" (dict "structure" "scripts" "args" . "group" "partial") }}
|
||||||
|
{{- errorf "partial [footer/scripts.html] - Invalid arguments" -}}
|
||||||
|
{{ $error = true }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<!-- Initialize arguments -->
|
||||||
{{- $absoluteURL := site.Params.main.canonifyAssetsURLs | default false -}}
|
{{- $absoluteURL := site.Params.main.canonifyAssetsURLs | default false -}}
|
||||||
{{- $filename := .filename | default "js/main.bundle.js" -}}
|
{{- $filename := .filename | default "js/main.bundle.js" -}}
|
||||||
{{- $match := .match | default "{js/*.js,js/vendor/**.js}" -}}
|
{{- $match := .match | default "{js/*.js,js/vendor/**.js}" -}}
|
||||||
@@ -5,26 +20,41 @@
|
|||||||
{{- $header := .header -}}
|
{{- $header := .header -}}
|
||||||
{{- $core := .core | default false -}}
|
{{- $core := .core | default false -}}
|
||||||
{{- $skipTemplate := .skipTemplate | default false -}}
|
{{- $skipTemplate := .skipTemplate | default false -}}
|
||||||
|
{{- $localize := .localize | default false }}
|
||||||
|
|
||||||
{{- $state := "async" -}}
|
{{- $state := .state | default "async" -}}
|
||||||
{{- with .state }}{{ $state = . }}{{ end -}}
|
|
||||||
{{- if or $header (eq $state "immediate") }}{{ $state = "" }}{{ end -}}
|
{{- if or $header (eq $state "immediate") }}{{ $state = "" }}{{ end -}}
|
||||||
{{- $supportedStates := slice "defer" "async" "immediate" -}}
|
|
||||||
{{- if and $state (not (in $supportedStates $state)) -}}
|
|
||||||
{{- errorf "partial [footer/script.html] - Invalid value for param 'processing': %s" $state -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{ $config := page.Scratch.Get "modules" }}
|
{{- $modules := "" -}}
|
||||||
|
{{ if $core }}
|
||||||
|
{{ $config := $page.Scratch.Get "modules" }}
|
||||||
{{ if not $config }}
|
{{ if not $config }}
|
||||||
{{ errorf "partial [footer/scripts.html] - Cannot initialize module configuration" }}
|
{{ errorf "partial [footer/scripts.html] - Cannot initialize module configuration" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{- $modules := "" -}}
|
|
||||||
{{ if $core }}
|
|
||||||
{{- $modules = $config.core -}}
|
{{- $modules = $config.core -}}
|
||||||
|
{{- if reflect.IsSlice $config.localize -}}
|
||||||
|
{{- range $index, $mod := $modules -}}
|
||||||
|
{{- if in $config.localize $mod}}
|
||||||
|
{{- $localize = true -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- $bundle := partial "utilities/bundle" (dict "match" $match "filename" $filename "modules" $modules "basepath" "js/modules" "all" true "debugging" site.Params.debugging.showJS) -}}
|
{{ if $localize }}
|
||||||
|
{{ $filename = path.Join (path.Dir $filename) (printf "%s.%s%s" (path.BaseName $filename) $page.Language.Lang (path.Ext $filename)) }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<!-- Main code -->
|
||||||
|
{{- $bundle := partial "utilities/bundle" (dict
|
||||||
|
"match" $match
|
||||||
|
"filename" $filename
|
||||||
|
"modules" $modules
|
||||||
|
"basepath" "js/modules"
|
||||||
|
"all" true
|
||||||
|
"debugging" site.Params.debugging.showJS
|
||||||
|
) -}}
|
||||||
{{- $js := $bundle -}}
|
{{- $js := $bundle -}}
|
||||||
{{- if not $skipTemplate -}}
|
{{- if not $skipTemplate -}}
|
||||||
{{- $js = $bundle | resources.ExecuteAsTemplate $filename $page -}}
|
{{- $js = $bundle | resources.ExecuteAsTemplate $filename $page -}}
|
||||||
|
@@ -14,6 +14,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ $page_modules := slice | append .Page.Params.modules }}
|
{{ $page_modules := slice | append .Page.Params.modules }}
|
||||||
|
{{ with .Scratch.Get "dependencies" }}{{ $page_modules = append $page_modules . | uniq }}{{ end }}
|
||||||
{{- $modules := $config.optional | intersect $page_modules -}}
|
{{- $modules := $config.optional | intersect $page_modules -}}
|
||||||
{{- range $index, $mod := $modules -}}
|
{{- range $index, $mod := $modules -}}
|
||||||
{{- $source := printf "scss/%s.scss" $mod -}}
|
{{- $source := printf "scss/%s.scss" $mod -}}
|
||||||
|
@@ -17,6 +17,8 @@
|
|||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
|
{{ $alt := slice .Site.Params.schema.twitter .Site.Params.schema.linkedin .Site.Params.schema.github }}
|
||||||
|
|
||||||
<script type="application/ld+json">
|
<script type="application/ld+json">
|
||||||
{
|
{
|
||||||
"@context": "https://schema.org",
|
"@context": "https://schema.org",
|
||||||
@@ -31,17 +33,7 @@
|
|||||||
{{ end -}}
|
{{ end -}}
|
||||||
"name": "{{ .Site.Params.schema.name }}",
|
"name": "{{ .Site.Params.schema.name }}",
|
||||||
"url": {{ print $baseURL }},
|
"url": {{ print $baseURL }},
|
||||||
"sameAs": [
|
"sameAs": {{ $alt | uniq | complement (slice "") }},
|
||||||
{{ with .Site.Params.schema.twitter -}}
|
|
||||||
{{ . }}
|
|
||||||
{{ end -}}
|
|
||||||
{{ with .Site.Params.schema.linkedin -}}
|
|
||||||
, {{ . }}
|
|
||||||
{{ end -}}
|
|
||||||
{{ with .Site.Params.schema.github -}}
|
|
||||||
, {{ . }}
|
|
||||||
{{ end -}}
|
|
||||||
],
|
|
||||||
{{ if eq .Site.Params.schemaType "Organization" -}}
|
{{ if eq .Site.Params.schemaType "Organization" -}}
|
||||||
"logo": {
|
"logo": {
|
||||||
"@type": "ImageObject",
|
"@type": "ImageObject",
|
||||||
@@ -103,8 +95,8 @@
|
|||||||
"@id": {{ print $baseURL "#/schema/person/1" }}
|
"@id": {{ print $baseURL "#/schema/person/1" }}
|
||||||
},
|
},
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
"datePublished": "{{ .Date.Format "2006-01-02T15:04:05CET" }}",
|
{{ with .Date }}"datePublished": "{{ .Format "2006-01-02T15:04:05CET" }}",{{ end -}}
|
||||||
"dateModified": "{{ .Lastmod.Format "2006-01-02T15:04:05CET" }}",
|
{{ with .Lastmod }}"dateModified": "{{ .Format "2006-01-02T15:04:05CET" }}",{{ end -}}
|
||||||
"breadcrumb": {
|
"breadcrumb": {
|
||||||
"@id": {{ print .Permalink "#/schema/breadcrumb/1" }}
|
"@id": {{ print .Permalink "#/schema/breadcrumb/1" }}
|
||||||
},
|
},
|
||||||
@@ -151,8 +143,8 @@
|
|||||||
"mainEntityOfPage": {
|
"mainEntityOfPage": {
|
||||||
"@id": {{ .Permalink }}
|
"@id": {{ .Permalink }}
|
||||||
},
|
},
|
||||||
"datePublished": "{{ .Date.Format "2006-01-02T15:04:05CET" }}",
|
{{ with .Date }}"datePublished": "{{ .Format "2006-01-02T15:04:05CET" }}",{{ end -}}
|
||||||
"dateModified": "{{ .Lastmod.Format "2006-01-02T15:04:05CET" }}",
|
{{ with .Lastmod }}"dateModified": "{{ .Format "2006-01-02T15:04:05CET" }}",{{ end -}}
|
||||||
"author": {
|
"author": {
|
||||||
"@id": {{ print $baseURL "#/schema/person/2" }}
|
"@id": {{ print $baseURL "#/schema/person/2" }}
|
||||||
},
|
},
|
||||||
|
@@ -40,7 +40,7 @@
|
|||||||
{{- $actions = sort $actions "weight" "asc" -}}
|
{{- $actions = sort $actions "weight" "asc" -}}
|
||||||
<div class="hstack{{ if gt (len $actions) 1 }} gap-1{{ end }} justify-content-{{ $align}} pt-5 pt-md-3">
|
<div class="hstack{{ if gt (len $actions) 1 }} gap-1{{ end }} justify-content-{{ $align}} pt-5 pt-md-3">
|
||||||
{{ range $actions }}
|
{{ range $actions }}
|
||||||
{{ partial "assets/button.html" (dict "href" .url "icon" .icon "title" .title "outline" .outline "order" "last" "justify" "start") }}
|
{{ partial "assets/button.html" (dict "href" .url "icon" .icon "label" .label "title" .title "outline" .outline "order" "last" "justify" "start") }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
9
layouts/partials/utilities/AddModule.html
Normal file
9
layouts/partials/utilities/AddModule.html
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{{ with .module }}
|
||||||
|
{{- $dependencies := page.Scratch.Get "dependencies" -}}
|
||||||
|
{{- if reflect.IsSlice $dependencies -}}
|
||||||
|
{{- $dependencies = complement $dependencies . -}}
|
||||||
|
{{ else }}
|
||||||
|
{{- $dependencies = slice . -}}
|
||||||
|
{{ end }}
|
||||||
|
{{- page.Scratch.Set "dependencies" $dependencies -}}
|
||||||
|
{{ end }}
|
@@ -4,6 +4,7 @@
|
|||||||
{{ $optional := slice }}
|
{{ $optional := slice }}
|
||||||
{{ $excludeSCSS := slice }}
|
{{ $excludeSCSS := slice }}
|
||||||
{{ $disableTemplate := slice }}
|
{{ $disableTemplate := slice }}
|
||||||
|
{{ $localize := slice }}
|
||||||
{{ $modules := dict }}
|
{{ $modules := dict }}
|
||||||
|
|
||||||
{{ range $key, $mod := $page.Site.Params.modules }}
|
{{ range $key, $mod := $page.Site.Params.modules }}
|
||||||
@@ -37,13 +38,24 @@
|
|||||||
{{ $disableTemplate = $disableTemplate | append $key }}
|
{{ $disableTemplate = $disableTemplate | append $key }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if eq (index $mod "localize") true }}
|
||||||
|
{{ $localize = $localize | append $key }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ $modules = merge $modules (dict $key $mod) }}
|
{{ $modules = merge $modules (dict $key $mod) }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ warnf "Unsupported module parameter: %s" $key }}
|
{{ warnf "Unsupported module parameter: %s" $key }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ $modules := dict "modules" $modules "core" $core "optional" $optional "excludeSCSS" $excludeSCSS "disableTemplate" $disableTemplate }}
|
{{ $modules := dict
|
||||||
|
"modules" $modules
|
||||||
|
"core" $core
|
||||||
|
"optional" $optional
|
||||||
|
"excludeSCSS" $excludeSCSS
|
||||||
|
"disableTemplate" $disableTemplate
|
||||||
|
"localize" $localize
|
||||||
|
}}
|
||||||
|
|
||||||
{{- if and $page.IsPage (not (in $core "bootstrap")) -}}
|
{{- if and $page.IsPage (not (in $core "bootstrap")) -}}
|
||||||
{{- errorf "Bootstrap is a required module, please add it to 'modules.core' in your site parameters" -}}
|
{{- errorf "Bootstrap is a required module, please add it to 'modules.core' in your site parameters" -}}
|
||||||
|
@@ -1,5 +1,3 @@
|
|||||||
{{ $lastmodstr := (partial "utilities/date.html" (dict "date" .Lastmod "format" "long")) -}}
|
|
||||||
{{ $lastmodstr | i18n "lastModified" -}}
|
|
||||||
{{ with .GitInfo }}
|
{{ with .GitInfo }}
|
||||||
• <a href="{{ site.Params.docs.github | default site.Params.schema.github }}/commit/{{ .Hash }}">{{ .Subject }} ({{ .AbbreviatedHash }})</a>
|
• <a href="{{ site.Params.docs.github | default site.Params.schema.github }}/commit/{{ .Hash }}">{{ .Subject }} ({{ .AbbreviatedHash }})</a>
|
||||||
{{ end -}}
|
{{ end -}}
|
@@ -49,7 +49,7 @@
|
|||||||
<!-- Main code -->
|
<!-- Main code -->
|
||||||
{{ $show := false -}}
|
{{ $show := false -}}
|
||||||
{{ if not $error }}
|
{{ if not $error }}
|
||||||
{{ with .Get "show" }}{{ $show = partial "utilities/CastBool.html" . }}{{ end -}}
|
{{ if isset .Params "show" }}{{ $show = partial "utilities/CastBool.html" (.Get "show") }}{{ end -}}
|
||||||
|
|
||||||
<div class="accordion-item">
|
<div class="accordion-item">
|
||||||
{{- with $header -}}
|
{{- with $header -}}
|
||||||
|
@@ -12,19 +12,25 @@
|
|||||||
{{ $error = true }}
|
{{ $error = true }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<!-- Main code -->
|
<!-- Initialize arguments and default values -->
|
||||||
{{ if not $error }}
|
|
||||||
{{- $id := printf "accordion-%d" .Ordinal -}}
|
{{- $id := printf "accordion-%d" .Ordinal -}}
|
||||||
{{ with .Get "id" }}{{ $id = . }}{{ end }}
|
{{- $class := "" -}}
|
||||||
{{- $class := .Get "class" | default "" -}}
|
|
||||||
{{- $open := false -}}
|
{{- $open := false -}}
|
||||||
{{ with .Get "always-open" }}{{ $open = partial "utilities/CastBool.html" . }}{{ end -}}
|
|
||||||
{{- $body := .Inner -}}
|
{{- $body := .Inner -}}
|
||||||
|
|
||||||
|
{{ if .IsNamedParams }}
|
||||||
|
{{ with .Get "id" }}{{ $id = . }}{{ end }}
|
||||||
|
{{ with .Get "class" }}{{ $class = . }}{{ end }}
|
||||||
|
{{ if isset .Params "always-open" }}{{ $open = partial "utilities/CastBool.html" (.Get "always-open") }}{{ end -}}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{- if $open -}}
|
{{- if $open -}}
|
||||||
{{- $pattern := printf "data-bs-parent=\"#%s\"" $id -}}
|
{{- $pattern := printf "data-bs-parent=\"#%s\"" $id -}}
|
||||||
{{- $body = (replace .Inner $pattern "") }}
|
{{- $body = (replace .Inner $pattern "") }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
<!-- Main code -->
|
||||||
|
{{ if not $error }}
|
||||||
<div id="{{ $id }}" class="accordion mb-3{{ with $class }} {{ . }}{{ end }}">
|
<div id="{{ $id }}" class="accordion mb-3{{ with $class }} {{ . }}{{ end }}">
|
||||||
{{- $body | safeHTML -}}
|
{{- $body | safeHTML -}}
|
||||||
</div>
|
</div>
|
||||||
|
@@ -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 -}}
|
||||||
{{ with .Get "dismissible" }}{{ $dismissible = partial "utilities/CastBool.html" . }}{{ 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" -}}
|
||||||
|
@@ -28,7 +28,9 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ $parent := false -}}
|
{{ $parent := false -}}
|
||||||
{{ with .Get "parent" }}{{ $parent = partial "utilities/CastBool.html" . }}{{ end -}}
|
{{- if .IsNamedParams }}
|
||||||
|
{{ if isset .Params "parent" }}{{ $parent = partial "utilities/CastBool.html" (.Get "parent") }}{{ end -}}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
<!-- Main code -->
|
<!-- Main code -->
|
||||||
{{ if not $error }}
|
{{ if not $error }}
|
||||||
|
@@ -26,7 +26,7 @@
|
|||||||
{{ $size := .Get "size" | default "md" -}}
|
{{ $size := .Get "size" | default "md" -}}
|
||||||
{{ $color := .Get "color" | default "primary" -}}
|
{{ $color := .Get "color" | default "primary" -}}
|
||||||
{{ $outline := false -}}
|
{{ $outline := false -}}
|
||||||
{{ with .Get "outline" }}{{ $outline = partial "utilities/CastBool.html" . }}{{ end -}}
|
{{ if isset .Params "outline" }}{{ $outline = partial "utilities/CastBool.html" (.Get "outline") }}{{ end -}}
|
||||||
{{ $badge := .Get "badge" | default "" -}}
|
{{ $badge := .Get "badge" | default "" -}}
|
||||||
{{ $label := or (.Get "label") (.Get "aria-label") | default "" -}}
|
{{ $label := or (.Get "label") (.Get "aria-label") | default "" -}}
|
||||||
{{ $tooltip := .Get "tooltip" | default "" -}}
|
{{ $tooltip := .Get "tooltip" | default "" -}}
|
||||||
@@ -43,11 +43,11 @@
|
|||||||
{{- $order := .Get "order" | default "last" -}}
|
{{- $order := .Get "order" | default "last" -}}
|
||||||
{{- $justify := .Get "justify" | default "center" -}}
|
{{- $justify := .Get "justify" | default "center" -}}
|
||||||
{{- $cue := site.Params.main.externalLinks.cue -}}
|
{{- $cue := site.Params.main.externalLinks.cue -}}
|
||||||
{{ with .Get "cue" }}{{ $show = partial "utilities/CastBool.html" . }}{{ end -}}
|
{{ if isset .Params "cue" }}{{ $cue = partial "utilities/CastBool.html" (.Get "cue") }}{{ end -}}
|
||||||
{{- $tab := default site.Params.main.externalLinks.tab -}}
|
{{- $tab := default site.Params.main.externalLinks.tab -}}
|
||||||
{{ with .Get "tab" }}{{ $show = partial "utilities/CastBool.html" . }}{{ end -}}
|
{{ if isset .Params "tab" }}{{ $tab = partial "utilities/CastBool.html" (.Get "tab") }}{{ end -}}
|
||||||
{{- $spacing := default (not .Parent) -}}
|
{{- $spacing := default (not .Parent) -}}
|
||||||
{{ with .Get "spacing" }}{{ $show = partial "utilities/CastBool.html" . }}{{ end -}}
|
{{ if isset .Params "spacing" }}{{ $spacing = partial "utilities/CastBool.html" (.Get "spacing") }}{{ end -}}
|
||||||
|
|
||||||
<!-- Main code -->
|
<!-- Main code -->
|
||||||
{{ if not $error }}
|
{{ if not $error }}
|
||||||
|
@@ -32,6 +32,7 @@
|
|||||||
{{- $page := .Page -}}
|
{{- $page := .Page -}}
|
||||||
{{- $path := .Get "path" -}}
|
{{- $path := .Get "path" -}}
|
||||||
{{- $thumbnail := .Get "thumbnail" -}}
|
{{- $thumbnail := .Get "thumbnail" -}}
|
||||||
|
{{- $anchor := .Get "anchor" -}}
|
||||||
{{- $title := .Get "title" -}}
|
{{- $title := .Get "title" -}}
|
||||||
{{- $button := partial "utilities/GetArgParent" (dict "page" . "arg" "button") | default false -}}
|
{{- $button := partial "utilities/GetArgParent" (dict "page" . "arg" "button") | default false -}}
|
||||||
{{- $buttonType := partial "utilities/GetArgParent" (dict "page" . "arg" "buttonType") | default "" -}}
|
{{- $buttonType := partial "utilities/GetArgParent" (dict "page" . "arg" "buttonType") | default "" -}}
|
||||||
@@ -81,6 +82,7 @@
|
|||||||
"wrapper" $wrapper
|
"wrapper" $wrapper
|
||||||
"thumbnail" $thumbnail
|
"thumbnail" $thumbnail
|
||||||
"loading" $loading
|
"loading" $loading
|
||||||
|
"anchor" $anchor
|
||||||
"alt" $alt
|
"alt" $alt
|
||||||
"button" $button
|
"button" $button
|
||||||
"buttonType" $buttonType
|
"buttonType" $buttonType
|
||||||
|
@@ -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 -->
|
||||||
|
@@ -33,8 +33,10 @@
|
|||||||
{{- $extension := strings.TrimLeft "." (path.Ext $file) }}
|
{{- $extension := strings.TrimLeft "." (path.Ext $file) }}
|
||||||
{{- $lang := .Get "lang" | default $extension -}}
|
{{- $lang := .Get "lang" | default $extension -}}
|
||||||
{{- $id := .Get "id" | default (printf "file-collapse-%d" .Ordinal) -}}
|
{{- $id := .Get "id" | default (printf "file-collapse-%d" .Ordinal) -}}
|
||||||
{{ $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 -->
|
||||||
|
@@ -25,6 +25,7 @@
|
|||||||
{{- $loading := "" -}}
|
{{- $loading := "" -}}
|
||||||
{{- $error := false -}}
|
{{- $error := false -}}
|
||||||
{{- $plain := false -}}
|
{{- $plain := false -}}
|
||||||
|
{{- $anchor := "" -}}
|
||||||
|
|
||||||
{{- if .IsNamedParams -}}
|
{{- if .IsNamedParams -}}
|
||||||
{{ $url = .Get "src" | default "" -}}
|
{{ $url = .Get "src" | default "" -}}
|
||||||
@@ -36,9 +37,10 @@
|
|||||||
{{ $title = .Get "title" | default "" -}}
|
{{ $title = .Get "title" | default "" -}}
|
||||||
{{ $caption = .Get "caption" | default "" -}}
|
{{ $caption = .Get "caption" | default "" -}}
|
||||||
{{ $figclass = .Get "figclass" | default "" -}}
|
{{ $figclass = .Get "figclass" | default "" -}}
|
||||||
{{ with .Get "mode" }}{{ $mode = partial "utilities/CastBool.html" . }}{{ end -}}
|
{{ if isset .Params "mode" }}{{ $mode = partial "utilities/CastBool.html" (.Get "mode") }}{{ end -}}
|
||||||
{{ with .Get "portrait" }}{{ $portrait = partial "utilities/CastBool.html" . }}{{ end -}}
|
{{ if isset .Params "portrait" }}{{ $portrait = partial "utilities/CastBool.html" (.Get "portrait") }}{{ end -}}
|
||||||
{{ with .Get "plain" }}{{ $plain = partial "utilities/CastBool.html" . }}{{ end -}}
|
{{ if isset .Params "plain" }}{{ $plain = partial "utilities/CastBool.html" (.Get "plain") }}{{ end -}}
|
||||||
|
{{ $anchor = .Get "anchor" | default "" -}}
|
||||||
{{ else -}}
|
{{ else -}}
|
||||||
{{ $url = .Get 0 }}
|
{{ $url = .Get 0 }}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
@@ -61,6 +63,7 @@
|
|||||||
"mode" $mode
|
"mode" $mode
|
||||||
"portrait" $portrait
|
"portrait" $portrait
|
||||||
"plain" $plain
|
"plain" $plain
|
||||||
|
"anchor" $anchor
|
||||||
"loading" $loading
|
"loading" $loading
|
||||||
"page" .Page)
|
"page" .Page)
|
||||||
-}}
|
-}}
|
||||||
|
@@ -80,8 +80,14 @@
|
|||||||
{{- if not $isExternal -}}
|
{{- if not $isExternal -}}
|
||||||
{{ $ref := partial "utilities/GetPage.html" (dict "url" $url "page" .Page) }}
|
{{ $ref := partial "utilities/GetPage.html" (dict "url" $url "page" .Page) }}
|
||||||
{{- if not $ref -}}
|
{{- if not $ref -}}
|
||||||
{{- errorf "Cannot find page: '%s' at %s" $url .Position -}}
|
{{ $pageContext := "" }}
|
||||||
|
{{ with .Page.File }}{{ $pageContext = path.Join "/content" .Dir }}{{ end }}
|
||||||
|
{{ $isPageRes := fileExists (path.Join $pageContext $url) }}
|
||||||
|
{{ $isStatic := fileExists (path.Join "/static" $url) }}
|
||||||
|
{{ if and (not $isPageRes) (not $isStatic) }}
|
||||||
|
{{- errorf "Cannot find page or asset: '%s' at %s" $url .Position -}}
|
||||||
{{- $error = true -}}
|
{{- $error = true -}}
|
||||||
|
{{ end }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
@@ -24,9 +24,9 @@
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- $fade := false -}}
|
{{- $fade := false -}}
|
||||||
{{ with .Get "fade" }}{{ $fade = partial "utilities/CastBool.html" . }}{{ end -}}
|
{{ if isset .Params "fade" }}{{ $fade = partial "utilities/CastBool.html" (.Get "fade") }}{{ end -}}
|
||||||
{{- $parentFade := false }}
|
{{- $parentFade := false }}
|
||||||
{{ with .Parent.Get "fade" }}{{ $parentFade = partial "utilities/CastBool.html" . }}{{ end -}}
|
{{ if isset .Parent.Params "fade" }}{{ $parentFade = partial "utilities/CastBool.html" (.Parent.Get "fade") }}{{ end -}}
|
||||||
{{ $fade = or $fade $parentFade }}
|
{{ $fade = or $fade $parentFade }}
|
||||||
{{- $header := .Get "header" | default "" -}}
|
{{- $header := .Get "header" | default "" -}}
|
||||||
{{- $class := .Get "class" | default "" -}}
|
{{- $class := .Get "class" | default "" -}}
|
||||||
|
@@ -19,9 +19,9 @@
|
|||||||
{{ $supportedNavTypes := slice "tabs" "pills" "underline" "callout" -}}
|
{{ $supportedNavTypes := slice "tabs" "pills" "underline" "callout" -}}
|
||||||
|
|
||||||
{{ $vertical := false -}}
|
{{ $vertical := false -}}
|
||||||
{{ with .Get "vertical" }}{{ $vertical = partial "utilities/CastBool.html" . }}{{ end -}}
|
{{ if isset .Params "vertical" }}{{ $vertical = partial "utilities/CastBool.html" (.Get "vertical") }}{{ end -}}
|
||||||
{{ $wrap := false -}}
|
{{ $wrap := false -}}
|
||||||
{{ with .Get "wrap" }}{{ $wrap = partial "utilities/CastBool.html" . }}{{ end -}}
|
{{ if isset .Params "wrap" }}{{ $wrap = partial "utilities/CastBool.html" (.Get "wrap") }}{{ end -}}
|
||||||
|
|
||||||
{{- if and (eq $type "tabs") $vertical -}}
|
{{- if and (eq $type "tabs") $vertical -}}
|
||||||
{{- errorf "Tabs do not support vertical layout" -}}
|
{{- errorf "Tabs do not support vertical layout" -}}
|
||||||
|
@@ -29,9 +29,9 @@
|
|||||||
{{ if eq $style "light" }}{{ $inverseStyle = "dark" }}{{ end -}}
|
{{ if eq $style "light" }}{{ $inverseStyle = "dark" }}{{ end -}}
|
||||||
{{ $color := .Get "color" | default "" -}}
|
{{ $color := .Get "color" | default "" -}}
|
||||||
{{ $searchParam := true -}}
|
{{ $searchParam := true -}}
|
||||||
{{ with .Get "search" }}{{ $searchParam = partial "utilities/CastBool.html" . }}{{ end -}}
|
{{ if isset .Params "search" }}{{ $searchParam = partial "utilities/CastBool.html" (.Get "search") }}{{ end -}}
|
||||||
{{ $modeParam := true -}}
|
{{ $modeParam := true -}}
|
||||||
{{ with .Get "mode" }}{{ $modeParam = partial "utilities/CastBool.html" . }}{{ end -}}
|
{{ if isset .Params "mode" }}{{ $modeParam = partial "utilities/CastBool.html" (.Get "mode") }}{{ end -}}
|
||||||
{{ $logo := .Get "logo" | default "" -}}
|
{{ $logo := .Get "logo" | default "" -}}
|
||||||
{{ $title := .Get "title" | default "" -}}
|
{{ $title := .Get "title" | default "" -}}
|
||||||
{{- $class := .Get "class" | default "" -}}
|
{{- $class := .Get "class" | default "" -}}
|
||||||
|
@@ -16,9 +16,9 @@
|
|||||||
{{- $version := .Get "version" | default "" -}}
|
{{- $version := .Get "version" | default "" -}}
|
||||||
{{- $state := .Get "state" | default "new" -}}
|
{{- $state := .Get "state" | default "new" -}}
|
||||||
{{- $short := false -}}
|
{{- $short := false -}}
|
||||||
{{ with .Get "short" }}{{ $short = partial "utilities/CastBool.html" . }}{{ end -}}
|
{{ if isset .Params "short" }}{{ $short = partial "utilities/CastBool.html" (.Get "short") }}{{ end -}}
|
||||||
{{- $inline := false -}}
|
{{- $inline := false -}}
|
||||||
{{ with .Get "inline" }}{{ $inline = partial "utilities/CastBool.html" . }}{{ end -}}
|
{{ if isset .Params "inline" }}{{ $inline = partial "utilities/CastBool.html" (.Get "inline") }}{{ end -}}
|
||||||
{{- $title := $version -}}
|
{{- $title := $version -}}
|
||||||
{{- $color := "primary" -}}
|
{{- $color := "primary" -}}
|
||||||
{{- if eq $state "deprecated" -}}
|
{{- if eq $state "deprecated" -}}
|
||||||
@@ -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,10 +56,14 @@
|
|||||||
|
|
||||||
<!-- Main code -->
|
<!-- Main code -->
|
||||||
{{- if not $error -}}
|
{{- if not $error -}}
|
||||||
|
{{ $href := partial "partials/utilities/URLJoin.html" (dict "base" site.Params.docs.release "path" $version) }}
|
||||||
|
{{ if eq $type "link" }}
|
||||||
|
{{ partial "assets/link.html" (dict "destination" $href "text" $title "page" .Page) }}
|
||||||
|
{{ else }}
|
||||||
{{- if not $inline }}<div class="pb-3">{{ end -}}
|
{{- if not $inline }}<div class="pb-3">{{ end -}}
|
||||||
{{- partial "assets/button.html" (dict
|
{{- partial "assets/button.html" (dict
|
||||||
"title" $title
|
"title" $title
|
||||||
"href" (partial "partials/utilities/URLJoin.html" (dict "base" site.Params.docs.release "path" $version))
|
"href" $href
|
||||||
"size" "sm"
|
"size" "sm"
|
||||||
"color" $color
|
"color" $color
|
||||||
"outline" "true"
|
"outline" "true"
|
||||||
@@ -70,4 +75,5 @@
|
|||||||
"spacing" $inline)
|
"spacing" $inline)
|
||||||
-}}
|
-}}
|
||||||
{{- if not $inline }}</div>{{ end -}}
|
{{- if not $inline }}</div>{{ end -}}
|
||||||
|
{{ end }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
<!-- Initialize arguments -->
|
<!-- Initialize arguments -->
|
||||||
{{ $color := .Get "color" | default "primary" -}}
|
{{ $color := .Get "color" | default "primary" -}}
|
||||||
{{ $grow := false -}}
|
{{ $grow := false -}}
|
||||||
{{ with .Get "grow" }}{{ $grow = partial "utilities/CastBool.html" . }}{{ end -}}
|
{{ if isset .Params "grow" }}{{ $grow = partial "utilities/CastBool.html" (.Get "grow") }}{{ end -}}
|
||||||
{{ $class := .Get "class" | default "" -}}
|
{{ $class := .Get "class" | default "" -}}
|
||||||
|
|
||||||
<!-- Main code -->
|
<!-- Main code -->
|
||||||
|
@@ -15,22 +15,35 @@
|
|||||||
<!-- Initialize arguments -->
|
<!-- Initialize arguments -->
|
||||||
{{ $breakpoint := "" }}
|
{{ $breakpoint := "" }}
|
||||||
{{ $class := "" }}
|
{{ $class := "" }}
|
||||||
|
{{ $sortable := false }}
|
||||||
|
{{ $paging := false }}
|
||||||
|
{{ $searchable := false }}
|
||||||
|
|
||||||
{{- if .IsNamedParams -}}
|
{{- if .IsNamedParams -}}
|
||||||
{{ $breakpoint = .Get "breakpoint" }}
|
{{ $breakpoint = .Get "breakpoint" }}
|
||||||
{{ $class = .Get "class" | default "" }}
|
{{ $class = .Get "class" | default "" }}
|
||||||
|
{{ if isset .Params "sortable" }}{{ $sortable = partial "utilities/CastBool.html" (.Get "sortable") }}{{ end }}
|
||||||
|
{{ if isset .Params "paging" }}{{ $paging = partial "utilities/CastBool.html" (.Get "paging") }}{{ end }}
|
||||||
|
{{ if isset .Params "searchable" }}{{ $searchable = partial "utilities/CastBool.html" (.Get "searchable") }}{{ end }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ $breakpoint = .Get 0 }}
|
{{ $breakpoint = .Get 0 }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<!-- Main code -->
|
<!-- Main code -->
|
||||||
|
{{ if or $sortable $paging $searchable }}{{ $class = trim (printf "%s data-table" $class) " " }}{{ end }}
|
||||||
{{- $input := .Inner | .Page.RenderString }}
|
{{- $input := .Inner | .Page.RenderString }}
|
||||||
{{- $input = replace $input "style=\"text-align:left\"" "class=\"text-start\"" -}}
|
{{- $input = replace $input "style=\"text-align:left\"" "class=\"text-start\"" -}}
|
||||||
{{- $input = replace $input "style=\"text-align:center\"" "class=\"text-center\"" -}}
|
{{- $input = replace $input "style=\"text-align:center\"" "class=\"text-center\"" -}}
|
||||||
{{- $input = replace $input "style=\"text-align:right\"" "class=\"text-end\"" -}}
|
{{- $input = replace $input "style=\"text-align:right\"" "class=\"text-end\"" -}}
|
||||||
{{- $old := "<table>" -}}
|
|
||||||
{{- $new := printf "<table class=\"table %s\">" $class -}}
|
|
||||||
{{ $input := replace $input $old $new -}}
|
|
||||||
|
|
||||||
|
{{ $attributes := "" }}
|
||||||
|
{{ if $sortable }}{{ $attributes = printf "%s data-table-sortable=true" $attributes }}{{ end }}
|
||||||
|
{{ if $paging }}{{ $attributes = printf "%s data-table-paging=true" $attributes }}{{ end }}
|
||||||
|
{{ if $searchable }}{{ $attributes = printf "%s data-table-searchable=true" $attributes }}{{ end }}
|
||||||
|
|
||||||
|
{{- $old := "<table>" -}}
|
||||||
|
{{- $new := printf "<table class=\"table %s\" %s>" $class (trim $attributes " ") -}}
|
||||||
|
{{ $input := replace $input $old $new -}}
|
||||||
{{ if not $error }}
|
{{ if not $error }}
|
||||||
{{ if eq $breakpoint "none" }}
|
{{ if eq $breakpoint "none" }}
|
||||||
{{ $input | safeHTML }}
|
{{ $input | safeHTML }}
|
||||||
|
@@ -7,6 +7,8 @@
|
|||||||
following modifications:
|
following modifications:
|
||||||
- Isolated the styles to comply with the Content Security Policy
|
- Isolated the styles to comply with the Content Security Policy
|
||||||
- Added validation of shortcode arguments
|
- Added validation of shortcode arguments
|
||||||
|
- Added support to retrieve the title from the video metadata
|
||||||
|
- Adjusted autoplay configuration
|
||||||
- Modified the layout
|
- Modified the layout
|
||||||
|
|
||||||
The original source code is available on:
|
The original source code is available on:
|
||||||
@@ -25,17 +27,44 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<!-- Initialize arguments -->
|
<!-- Initialize arguments -->
|
||||||
{{- $id := .Get "id" | default (.Get 0) -}}
|
{{- $id := "" -}}
|
||||||
{{- $class := .Get "class" | default (.Get 1) -}}
|
{{- $class := "" -}}
|
||||||
{{- $title := .Get "title" | default "YouTube Video" }}
|
{{- $title := "YouTube Video" }}
|
||||||
{{- $autoplay := false }}
|
{{- $autoplay := false }}
|
||||||
{{ with .Get "autoplay" }}{{ $autoplay = partial "utilities/CastBool.html" . }}{{ end -}}
|
{{- $autotitle := false }}
|
||||||
{{- $host := cond $pc.PrivacyEnhanced "www.youtube-nocookie.com" "www.youtube.com" -}}
|
{{- $host := cond $pc.PrivacyEnhanced "www.youtube-nocookie.com" "www.youtube.com" -}}
|
||||||
|
|
||||||
|
{{- if .IsNamedParams }}
|
||||||
|
{{ with .Get "id" }}{{ $id = . }}{{ end }}
|
||||||
|
{{ with .Get "class" }}{{ $class = . }}{{ end }}
|
||||||
|
{{ with .Get "title" }}{{ $title = . }}{{ end }}
|
||||||
|
{{ if isset .Params "autoplay" }}{{ $autoplay = partial "utilities/CastBool.html" (.Get "autoplay") }}{{ end -}}
|
||||||
|
{{ if isset .Params "autotitle" }}{{ $autotitle = partial "utilities/CastBool.html" (.Get "autotitle") }}{{ end -}}
|
||||||
|
{{ else }}
|
||||||
|
{{- $id = .Get 0 -}}
|
||||||
|
{{- $class = .Get 1 -}}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ $url := printf "https://%s/embed/%s?origin=%s" $host $id .Site.BaseURL }}
|
||||||
|
{{ $api := printf "https://www.youtube.com/oembed?format=json&url=%s" (printf "https://www.youtube.com/watch?v=%s" $id) }}
|
||||||
|
|
||||||
|
{{ if $autotitle }}
|
||||||
|
{{ with resources.GetRemote $api }}
|
||||||
|
{{ with .Err }}
|
||||||
|
{{ errorf "Unable to parse video metadata '%q': %s\n %s" $api .Position . }}
|
||||||
|
{{ else }}
|
||||||
|
{{ $data := . | transform.Unmarshal }}
|
||||||
|
{{ with $data.title }}{{ $title = . }}{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
{{ else }}
|
||||||
|
{{ errorf "Unable to get video metadata '%q': %s" $api .Position }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
<!-- Main code -->
|
<!-- Main code -->
|
||||||
<div class="youtube-embedded {{ $class }}">
|
<div class="youtube-embedded {{ $class }}">
|
||||||
<iframe src="https://{{ $host }}/embed/{{ $id }}?origin={{ .Site.BaseURL }}{{ if $autoplay }}&autoplay=1{{ end }}"
|
<iframe src="{{ $url }}{{ if $autoplay }}&autoplay=1&mute=1{{ end }}"
|
||||||
allowfullscreen title="{{ $title }}">
|
allowfullscreen title="{{ $title }}" {{ if $autoplay }}allow="autoplay"{{ end }}>
|
||||||
</iframe>
|
</iframe>
|
||||||
</div>
|
</div>
|
||||||
{{ end -}}
|
{{ end -}}
|
@@ -39,9 +39,13 @@
|
|||||||
{{ $lastYear := $.Scratch.Get "lastYear"}}
|
{{ $lastYear := $.Scratch.Get "lastYear"}}
|
||||||
<div class="row mt-2">
|
<div class="row mt-2">
|
||||||
<div class="d-none d-{{ $breakpoint.prev }}-block col-{{ $breakpoint.prev }}-3 mt-auto text-right">
|
<div class="d-none d-{{ $breakpoint.prev }}-block col-{{ $breakpoint.prev }}-3 mt-auto text-right">
|
||||||
<time class="post-date" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">
|
{{ with .Date }}
|
||||||
{{ (partial "utilities/date.html" (dict "date" .Date "format" "medium")) }}
|
<time class="post-date" datetime="{{ .Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">
|
||||||
|
{{ (partial "utilities/date.html" (dict "date" . "format" "medium")) }}
|
||||||
</time>
|
</time>
|
||||||
|
{{ else }}
|
||||||
|
-
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
<div class="col">
|
<div class="col">
|
||||||
{{ if ne $year $lastYear }}
|
{{ if ne $year $lastYear }}
|
||||||
|
@@ -4,12 +4,12 @@
|
|||||||
command = "npm run build:example"
|
command = "npm run build:example"
|
||||||
|
|
||||||
[build.environment]
|
[build.environment]
|
||||||
DART_SASS_VERSION = "1.77.0"
|
DART_SASS_VERSION = "1.77.5"
|
||||||
HUGO_VERSION = "0.125.7"
|
HUGO_VERSION = "0.131.0"
|
||||||
HUGO_ENV = "production"
|
HUGO_ENV = "production"
|
||||||
HUGO_ENABLEGITINFO = "true"
|
HUGO_ENABLEGITINFO = "true"
|
||||||
NODE_VERSION = "18.20.2"
|
NODE_VERSION = "20.16.0"
|
||||||
NPM_VERSION = "10.5.0"
|
NPM_VERSION = "10.8.1"
|
||||||
# toml-docs-end netlify
|
# toml-docs-end netlify
|
||||||
|
|
||||||
[[headers]]
|
[[headers]]
|
||||||
|
553
package-lock.json
generated
553
package-lock.json
generated
@@ -1,19 +1,19 @@
|
|||||||
{
|
{
|
||||||
"name": "@gethinode/hinode",
|
"name": "@gethinode/hinode",
|
||||||
"version": "0.24.12",
|
"version": "0.26.4",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@gethinode/hinode",
|
"name": "@gethinode/hinode",
|
||||||
"version": "0.24.12",
|
"version": "0.26.4",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fullhuman/postcss-purgecss": "^6.0.0",
|
"@fullhuman/postcss-purgecss": "^6.0.0",
|
||||||
"autoprefixer": "^10.4.19",
|
"autoprefixer": "^10.4.20",
|
||||||
"cssnano": "^7.0.3",
|
"cssnano": "^7.0.5",
|
||||||
"cssnano-preset-advanced": "^7.0.3",
|
"cssnano-preset-advanced": "^7.0.5",
|
||||||
"hugo-bin": "0.125.0",
|
"hugo-bin": "0.129.2",
|
||||||
"purgecss-whitelister": "^2.4.0"
|
"purgecss-whitelister": "^2.4.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@@ -22,15 +22,15 @@
|
|||||||
"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.4.0",
|
"eslint-plugin-promise": "^6.6.0",
|
||||||
"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",
|
||||||
"replace-in-files-cli": "^3.0.0",
|
"replace-in-files-cli": "^3.0.0",
|
||||||
"rimraf": "^5.0.7",
|
"rimraf": "^6.0.1",
|
||||||
"shx": "^0.3.4",
|
"shx": "^0.3.4",
|
||||||
"stylelint": "^16.6.1",
|
"stylelint": "^16.8.2",
|
||||||
"stylelint-config-standard-scss": "^13.1.0"
|
"stylelint-config-standard-scss": "^13.1.0"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
@@ -227,9 +227,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@csstools/css-parser-algorithms": {
|
"node_modules/@csstools/css-parser-algorithms": {
|
||||||
"version": "2.6.3",
|
"version": "3.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/@csstools/css-parser-algorithms/-/css-parser-algorithms-2.6.3.tgz",
|
"resolved": "https://registry.npmjs.org/@csstools/css-parser-algorithms/-/css-parser-algorithms-3.0.0.tgz",
|
||||||
"integrity": "sha512-xI/tL2zxzEbESvnSxwFgwvy5HS00oCXxL4MLs6HUiDcYfwowsoQaABKxUElp1ARITrINzBnsECOc1q0eg2GOrA==",
|
"integrity": "sha512-20hEErXV9GEx15qRbsJVzB91ryayx1F2duHPBrfZXQAHz/dJG0u/611URpr28+sFjm3EI7U17Pj9SVA9NSAGJA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -242,16 +242,16 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^14 || ^16 || >=18"
|
"node": ">=18"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@csstools/css-tokenizer": "^2.3.1"
|
"@csstools/css-tokenizer": "^3.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@csstools/css-tokenizer": {
|
"node_modules/@csstools/css-tokenizer": {
|
||||||
"version": "2.3.1",
|
"version": "3.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/@csstools/css-tokenizer/-/css-tokenizer-2.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/@csstools/css-tokenizer/-/css-tokenizer-3.0.0.tgz",
|
||||||
"integrity": "sha512-iMNHTyxLbBlWIfGtabT157LH9DUx9X8+Y3oymFEuMj8HNc+rpE3dPFGFgHjpKfjeFDjLjYIAIhXPGvS2lKxL9g==",
|
"integrity": "sha512-efZvfJyYrqH9hPCKtOBywlTsCXnEzAI9sLHFzUsDpBb+1bQ+bxJnwL9V2bRKv9w4cpIp75yxGeZRaVKoMQnsEg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -264,13 +264,13 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^14 || ^16 || >=18"
|
"node": ">=18"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@csstools/media-query-list-parser": {
|
"node_modules/@csstools/media-query-list-parser": {
|
||||||
"version": "2.1.11",
|
"version": "3.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/@csstools/media-query-list-parser/-/media-query-list-parser-2.1.11.tgz",
|
"resolved": "https://registry.npmjs.org/@csstools/media-query-list-parser/-/media-query-list-parser-3.0.0.tgz",
|
||||||
"integrity": "sha512-uox5MVhvNHqitPP+SynrB1o8oPxPMt2JLgp5ghJOWf54WGQ5OKu47efne49r1SWqs3wRP8xSWjnO9MBKxhB1dA==",
|
"integrity": "sha512-W0JlkUFwXjo703wt06AcaWuUcS+6x6IEDyxV6W65Sw+vLCYp+uPsrps+PXTiIfN0V1Pqj5snPzN7EYLmbz1zjg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -283,17 +283,17 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^14 || ^16 || >=18"
|
"node": ">=18"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@csstools/css-parser-algorithms": "^2.6.3",
|
"@csstools/css-parser-algorithms": "^3.0.0",
|
||||||
"@csstools/css-tokenizer": "^2.3.1"
|
"@csstools/css-tokenizer": "^3.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@csstools/selector-specificity": {
|
"node_modules/@csstools/selector-specificity": {
|
||||||
"version": "3.1.1",
|
"version": "4.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-3.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-4.0.0.tgz",
|
||||||
"integrity": "sha512-a7cxGcJ2wIlMFLlh8z2ONm+715QkPHiyJcxwQlKOz/03GPw1COpfhcmC9wm4xlZfp//jWHNNMwzjtqHXVWU9KA==",
|
"integrity": "sha512-189nelqtPd8++phaHNwYovKZI0FOzH1vQEE3QhHHkNIGrg5fSs9CbYP3RvfEH5geztnIA9Jwq91wyOIwAW5JIQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -306,10 +306,10 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^14 || ^16 || >=18"
|
"node": ">=18"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"postcss-selector-parser": "^6.0.13"
|
"postcss-selector-parser": "^6.1.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@dual-bundle/import-meta-resolve": {
|
"node_modules/@dual-bundle/import-meta-resolve": {
|
||||||
@@ -369,29 +369,6 @@
|
|||||||
"url": "https://opencollective.com/eslint"
|
"url": "https://opencollective.com/eslint"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@eslint/eslintrc/node_modules/debug": {
|
|
||||||
"version": "4.3.4",
|
|
||||||
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
|
|
||||||
"integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"ms": "2.1.2"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=6.0"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"supports-color": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@eslint/eslintrc/node_modules/ms": {
|
|
||||||
"version": "2.1.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
|
|
||||||
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"node_modules/@eslint/js": {
|
"node_modules/@eslint/js": {
|
||||||
"version": "8.57.0",
|
"version": "8.57.0",
|
||||||
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz",
|
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz",
|
||||||
@@ -432,29 +409,6 @@
|
|||||||
"node": ">=10.10.0"
|
"node": ">=10.10.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@humanwhocodes/config-array/node_modules/debug": {
|
|
||||||
"version": "4.3.4",
|
|
||||||
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
|
|
||||||
"integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"ms": "2.1.2"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=6.0"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"supports-color": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@humanwhocodes/config-array/node_modules/ms": {
|
|
||||||
"version": "2.1.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
|
|
||||||
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"node_modules/@humanwhocodes/module-importer": {
|
"node_modules/@humanwhocodes/module-importer": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",
|
||||||
@@ -1036,9 +990,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/autoprefixer": {
|
"node_modules/autoprefixer": {
|
||||||
"version": "10.4.19",
|
"version": "10.4.20",
|
||||||
"resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.19.tgz",
|
"resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.20.tgz",
|
||||||
"integrity": "sha512-BaENR2+zBZ8xXhM4pUaKUxlVdxZ0EZhjvbopwnXmxRUfqDmwSpC2lAi/QXvx7NRdPCo1WKEcEF6mV64si1z4Ew==",
|
"integrity": "sha512-XY25y5xSv/wEoqzDyXXME4AFfkZI0P23z6Fs3YgymDnKJkCGOnkL0iTxCa85UTqaSgfcqyf3UA6+c7wUvx/16g==",
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
"type": "opencollective",
|
"type": "opencollective",
|
||||||
@@ -1054,11 +1008,11 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"browserslist": "^4.23.0",
|
"browserslist": "^4.23.3",
|
||||||
"caniuse-lite": "^1.0.30001599",
|
"caniuse-lite": "^1.0.30001646",
|
||||||
"fraction.js": "^4.3.7",
|
"fraction.js": "^4.3.7",
|
||||||
"normalize-range": "^0.1.2",
|
"normalize-range": "^0.1.2",
|
||||||
"picocolors": "^1.0.0",
|
"picocolors": "^1.0.1",
|
||||||
"postcss-value-parser": "^4.2.0"
|
"postcss-value-parser": "^4.2.0"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
@@ -1196,9 +1150,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/browserslist": {
|
"node_modules/browserslist": {
|
||||||
"version": "4.23.1",
|
"version": "4.23.3",
|
||||||
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.23.1.tgz",
|
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.23.3.tgz",
|
||||||
"integrity": "sha512-TUfofFo/KsK/bWZ9TWQ5O26tsWW4Uhmt8IYklbnUa70udB6P2wA7w7o4PY4muaEPBQaAX+CEnmmIA41NVHtPVw==",
|
"integrity": "sha512-btwCFJVjI4YWDNfau8RhZ+B1Q/VLoUITrm3RlP6y1tYGWIOa+InuYiRGXUBXo8nA1qKmHMyLB/iVQg5TT4eFoA==",
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
"type": "opencollective",
|
"type": "opencollective",
|
||||||
@@ -1214,10 +1168,10 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"caniuse-lite": "^1.0.30001629",
|
"caniuse-lite": "^1.0.30001646",
|
||||||
"electron-to-chromium": "^1.4.796",
|
"electron-to-chromium": "^1.5.4",
|
||||||
"node-releases": "^2.0.14",
|
"node-releases": "^2.0.18",
|
||||||
"update-browserslist-db": "^1.0.16"
|
"update-browserslist-db": "^1.1.0"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"browserslist": "cli.js"
|
"browserslist": "cli.js"
|
||||||
@@ -1353,9 +1307,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/caniuse-lite": {
|
"node_modules/caniuse-lite": {
|
||||||
"version": "1.0.30001636",
|
"version": "1.0.30001649",
|
||||||
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001636.tgz",
|
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001649.tgz",
|
||||||
"integrity": "sha512-bMg2vmr8XBsbL6Lr0UHXy/21m84FTxDLWn2FSqMd5PrlbMxwJlQnC2YWYxVgp66PZE+BBNF2jYQUBKCo1FDeZg==",
|
"integrity": "sha512-fJegqZZ0ZX8HOWr6rcafGr72+xcgJKI9oWfDW5DrD7ExUtgZC7a7R7ZYmZqplh7XDocFdGeIFn7roAxhOeYrPQ==",
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
"type": "opencollective",
|
"type": "opencollective",
|
||||||
@@ -1605,11 +1559,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/cssnano": {
|
"node_modules/cssnano": {
|
||||||
"version": "7.0.3",
|
"version": "7.0.5",
|
||||||
"resolved": "https://registry.npmjs.org/cssnano/-/cssnano-7.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/cssnano/-/cssnano-7.0.5.tgz",
|
||||||
"integrity": "sha512-lsekJctOTqdCn4cNrtrSwsuMR/fHC+oiVMHkp/OugBWtwjH8XJag1/OtGaYJGtz0un1fQcRy4ryfYTQsfh+KSQ==",
|
"integrity": "sha512-Aq0vqBLtpTT5Yxj+hLlLfNPFuRQCDIjx5JQAhhaedQKLNDvDGeVziF24PS+S1f0Z5KCxWvw0QVI3VNHNBITxVQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"cssnano-preset-default": "^7.0.3",
|
"cssnano-preset-default": "^7.0.5",
|
||||||
"lilconfig": "^3.1.2"
|
"lilconfig": "^3.1.2"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
@@ -1624,14 +1578,14 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/cssnano-preset-advanced": {
|
"node_modules/cssnano-preset-advanced": {
|
||||||
"version": "7.0.3",
|
"version": "7.0.5",
|
||||||
"resolved": "https://registry.npmjs.org/cssnano-preset-advanced/-/cssnano-preset-advanced-7.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/cssnano-preset-advanced/-/cssnano-preset-advanced-7.0.5.tgz",
|
||||||
"integrity": "sha512-LTANZ+wI1k0h8C5QCRbAuQ5VRnkBk/Bs+eGaOXCkiyxLutub8S1xwtCX32FeUvFMXK4HPZ9/3k5ucqO3q/wFXw==",
|
"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.3",
|
"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"
|
||||||
@@ -1644,40 +1598,40 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/cssnano-preset-default": {
|
"node_modules/cssnano-preset-default": {
|
||||||
"version": "7.0.3",
|
"version": "7.0.5",
|
||||||
"resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-7.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-7.0.5.tgz",
|
||||||
"integrity": "sha512-dQ3Ba1p/oewICp/szF1XjFFgql8OlOBrI2YNBUUwhHQnJNoMOcQTa+Bi7jSJN8r/eM1egW0Ud1se/S7qlduWKA==",
|
"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.1",
|
"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"
|
||||||
@@ -1727,6 +1681,23 @@
|
|||||||
"resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.28.tgz",
|
"resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.28.tgz",
|
||||||
"integrity": "sha512-aylIc7Z9y4yzHYAJNuESG3hfhC+0Ibp/MAMiaOZgNv4pmEdFyfZhhhny4MNiAfWdBQ1RQ2mfDWmM1x8SvGyp8g=="
|
"integrity": "sha512-aylIc7Z9y4yzHYAJNuESG3hfhC+0Ibp/MAMiaOZgNv4pmEdFyfZhhhny4MNiAfWdBQ1RQ2mfDWmM1x8SvGyp8g=="
|
||||||
},
|
},
|
||||||
|
"node_modules/debug": {
|
||||||
|
"version": "4.3.6",
|
||||||
|
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz",
|
||||||
|
"integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"ms": "2.1.2"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=6.0"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"supports-color": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/decompress-response": {
|
"node_modules/decompress-response": {
|
||||||
"version": "6.0.0",
|
"version": "6.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz",
|
||||||
@@ -1898,9 +1869,9 @@
|
|||||||
"integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA=="
|
"integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA=="
|
||||||
},
|
},
|
||||||
"node_modules/electron-to-chromium": {
|
"node_modules/electron-to-chromium": {
|
||||||
"version": "1.4.806",
|
"version": "1.5.4",
|
||||||
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.806.tgz",
|
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.4.tgz",
|
||||||
"integrity": "sha512-nkoEX2QIB8kwCOtvtgwhXWy2IHVcOLQZu9Qo36uaGB835mdX/h8uLRlosL6QIhLVUnAiicXRW00PwaPZC74Nrg=="
|
"integrity": "sha512-orzA81VqLyIGUEA77YkVA1D+N+nNfl2isJVjjmOyrlxuooZ19ynb+dOlaDTqd/idKRS9lDCSBmtzM+kyCsMnkA=="
|
||||||
},
|
},
|
||||||
"node_modules/emoji-regex": {
|
"node_modules/emoji-regex": {
|
||||||
"version": "8.0.0",
|
"version": "8.0.0",
|
||||||
@@ -2325,9 +2296,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/eslint-plugin-promise": {
|
"node_modules/eslint-plugin-promise": {
|
||||||
"version": "6.4.0",
|
"version": "6.6.0",
|
||||||
"resolved": "https://registry.npmjs.org/eslint-plugin-promise/-/eslint-plugin-promise-6.4.0.tgz",
|
"resolved": "https://registry.npmjs.org/eslint-plugin-promise/-/eslint-plugin-promise-6.6.0.tgz",
|
||||||
"integrity": "sha512-/KWWRaD3fGkVCZsdR0RU53PSthFmoHVhZl+y9+6DqeDLSikLdlUVpVEAmI6iCRR5QyOjBYBqHZV/bdv4DJ4Gtw==",
|
"integrity": "sha512-57Zzfw8G6+Gq7axm2Pdo3gW/Rx3h9Yywgn61uE/3elTCOePEHVrn2i5CdfBwA1BLK0Q0WqctICIUSqXZW/VprQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
||||||
@@ -2367,29 +2338,6 @@
|
|||||||
"url": "https://opencollective.com/eslint"
|
"url": "https://opencollective.com/eslint"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/eslint/node_modules/debug": {
|
|
||||||
"version": "4.3.4",
|
|
||||||
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
|
|
||||||
"integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"ms": "2.1.2"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=6.0"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"supports-color": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/eslint/node_modules/ms": {
|
|
||||||
"version": "2.1.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
|
|
||||||
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"node_modules/espree": {
|
"node_modules/espree": {
|
||||||
"version": "9.6.1",
|
"version": "9.6.1",
|
||||||
"resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz",
|
"resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz",
|
||||||
@@ -3365,9 +3313,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/hugo-bin": {
|
"node_modules/hugo-bin": {
|
||||||
"version": "0.125.0",
|
"version": "0.129.2",
|
||||||
"resolved": "https://registry.npmjs.org/hugo-bin/-/hugo-bin-0.125.0.tgz",
|
"resolved": "https://registry.npmjs.org/hugo-bin/-/hugo-bin-0.129.2.tgz",
|
||||||
"integrity": "sha512-cTvHzQdK04KrBaW3jPdd/JAQXCOdXT1GiPHaMxe0YtLTVCV0ElgxkvXn6eQJUDl4QqM8+IlsFg/b2ofz6XS//A==",
|
"integrity": "sha512-OpfKbO8nkopEt8MBYPWQOgcL6IcotiskI+U1YRprAtw+ySUJHIDHfxMIcWeNmo66N/Reqm4RbDxFMDgKPUXGeQ==",
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
"type": "github",
|
"type": "github",
|
||||||
@@ -3414,9 +3362,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/ignore": {
|
"node_modules/ignore": {
|
||||||
"version": "5.3.1",
|
"version": "5.3.2",
|
||||||
"resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",
|
||||||
"integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==",
|
"integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 4"
|
"node": ">= 4"
|
||||||
@@ -4277,13 +4225,19 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/minipass": {
|
"node_modules/minipass": {
|
||||||
"version": "7.0.4",
|
"version": "7.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.4.tgz",
|
"resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz",
|
||||||
"integrity": "sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==",
|
"integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16 || 14 >=14.17"
|
"node": ">=16 || 14 >=14.17"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/ms": {
|
||||||
|
"version": "2.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
|
||||||
|
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"node_modules/nanoid": {
|
"node_modules/nanoid": {
|
||||||
"version": "3.3.7",
|
"version": "3.3.7",
|
||||||
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz",
|
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz",
|
||||||
@@ -4323,9 +4277,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/node-releases": {
|
"node_modules/node-releases": {
|
||||||
"version": "2.0.14",
|
"version": "2.0.18",
|
||||||
"resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz",
|
"resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.18.tgz",
|
||||||
"integrity": "sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw=="
|
"integrity": "sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g=="
|
||||||
},
|
},
|
||||||
"node_modules/normalize-package-data": {
|
"node_modules/normalize-package-data": {
|
||||||
"version": "2.5.0",
|
"version": "2.5.0",
|
||||||
@@ -4381,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",
|
||||||
@@ -4743,6 +4698,12 @@
|
|||||||
"url": "https://github.com/sponsors/sindresorhus"
|
"url": "https://github.com/sponsors/sindresorhus"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/package-json-from-dist": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.0.tgz",
|
||||||
|
"integrity": "sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"node_modules/parent-module": {
|
"node_modules/parent-module": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
|
||||||
@@ -4891,9 +4852,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/postcss": {
|
"node_modules/postcss": {
|
||||||
"version": "8.4.38",
|
"version": "8.4.41",
|
||||||
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.38.tgz",
|
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.41.tgz",
|
||||||
"integrity": "sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A==",
|
"integrity": "sha512-TesUflQ0WKZqAvg52PWL6kHgLKP6xB6heTOdoYM0Wt2UHyxNa4K25EZZMgKns3BH1RLVbZCREPpLY0rhnNoHVQ==",
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
"type": "opencollective",
|
"type": "opencollective",
|
||||||
@@ -4910,7 +4871,7 @@
|
|||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nanoid": "^3.3.7",
|
"nanoid": "^3.3.7",
|
||||||
"picocolors": "^1.0.0",
|
"picocolors": "^1.0.1",
|
||||||
"source-map-js": "^1.2.0"
|
"source-map-js": "^1.2.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
@@ -4918,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": {
|
||||||
@@ -4974,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"
|
||||||
@@ -4991,11 +4952,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/postcss-convert-values": {
|
"node_modules/postcss-convert-values": {
|
||||||
"version": "7.0.1",
|
"version": "7.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-7.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-7.0.3.tgz",
|
||||||
"integrity": "sha512-9x2ofb+hYPwHWMlWAzyWys2yMDZYGfkX9LodbaVTmLdlupmtH2AGvj8Up95wzzNPRDEzPIxQIkUaPJew3bT6xA==",
|
"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": {
|
||||||
@@ -5006,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"
|
||||||
@@ -5020,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"
|
||||||
},
|
},
|
||||||
@@ -5053,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"
|
||||||
@@ -5123,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"
|
||||||
@@ -5138,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"
|
||||||
@@ -5185,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"
|
||||||
},
|
},
|
||||||
@@ -5201,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"
|
||||||
@@ -5297,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": {
|
||||||
@@ -5369,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": {
|
||||||
@@ -5418,9 +5379,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/postcss-resolve-nested-selector": {
|
"node_modules/postcss-resolve-nested-selector": {
|
||||||
"version": "0.1.1",
|
"version": "0.1.6",
|
||||||
"resolved": "https://registry.npmjs.org/postcss-resolve-nested-selector/-/postcss-resolve-nested-selector-0.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/postcss-resolve-nested-selector/-/postcss-resolve-nested-selector-0.1.6.tgz",
|
||||||
"integrity": "sha512-HvExULSwLqHLgUy1rl3ANIqCsvMS0WHss2UOsXhXnQaZ9VCc2oBvIpXrl00IUFT5ZDITME0o6oiXeiHr2SAIfw==",
|
"integrity": "sha512-0sglIs9Wmkzbr8lQwEyIzlDOOC9bGmfVKcJTaxv3vMmd3uo4o4DerC3En0bnmgceeql9BfC8hRkp7cg0fjdVqw==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/postcss-safe-parser": {
|
"node_modules/postcss-safe-parser": {
|
||||||
@@ -5476,9 +5437,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/postcss-selector-parser": {
|
"node_modules/postcss-selector-parser": {
|
||||||
"version": "6.1.0",
|
"version": "6.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz",
|
||||||
"integrity": "sha512-UMz42UD0UY0EApS0ZL9o1XnLhSTtvvvLe5Dc2H2O56fvRZi+KulDyf5ctDhhtYJBGKStV2FL1fy6253cmLgqVQ==",
|
"integrity": "sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"cssesc": "^3.0.0",
|
"cssesc": "^3.0.0",
|
||||||
"util-deprecate": "^1.0.2"
|
"util-deprecate": "^1.0.2"
|
||||||
@@ -5503,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"
|
||||||
@@ -5941,18 +5902,19 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/rimraf": {
|
"node_modules/rimraf": {
|
||||||
"version": "5.0.7",
|
"version": "6.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.7.tgz",
|
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-6.0.1.tgz",
|
||||||
"integrity": "sha512-nV6YcJo5wbLW77m+8KjH8aB/7/rxQy9SZ0HY5shnwULfS+9nmTtVXAJET5NdZmCzA4fPI/Hm1wo/Po/4mopOdg==",
|
"integrity": "sha512-9dkvaxAsk/xNXSJzMgFqqMCuFgt2+KsOFek3TMLfo8NCPfWpBmqwyNn5Y+NX56QUYfCtsyhF3ayiboEoUmJk/A==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"glob": "^10.3.7"
|
"glob": "^11.0.0",
|
||||||
|
"package-json-from-dist": "^1.0.0"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"rimraf": "dist/esm/bin.mjs"
|
"rimraf": "dist/esm/bin.mjs"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=14.18"
|
"node": "20 || >=22"
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/sponsors/isaacs"
|
"url": "https://github.com/sponsors/isaacs"
|
||||||
@@ -5968,37 +5930,81 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/rimraf/node_modules/glob": {
|
"node_modules/rimraf/node_modules/glob": {
|
||||||
"version": "10.3.10",
|
"version": "11.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz",
|
"resolved": "https://registry.npmjs.org/glob/-/glob-11.0.0.tgz",
|
||||||
"integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==",
|
"integrity": "sha512-9UiX/Bl6J2yaBbxKoEBRm4Cipxgok8kQYcOPEhScPwebu2I0HoQOuYdIO6S3hLuWoZgpDpwQZMzTFxgpkyT76g==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"foreground-child": "^3.1.0",
|
"foreground-child": "^3.1.0",
|
||||||
"jackspeak": "^2.3.5",
|
"jackspeak": "^4.0.1",
|
||||||
"minimatch": "^9.0.1",
|
"minimatch": "^10.0.0",
|
||||||
"minipass": "^5.0.0 || ^6.0.2 || ^7.0.0",
|
"minipass": "^7.1.2",
|
||||||
"path-scurry": "^1.10.1"
|
"package-json-from-dist": "^1.0.0",
|
||||||
|
"path-scurry": "^2.0.0"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"glob": "dist/esm/bin.mjs"
|
"glob": "dist/esm/bin.mjs"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16 || 14 >=14.17"
|
"node": "20 || >=22"
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/sponsors/isaacs"
|
"url": "https://github.com/sponsors/isaacs"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/rimraf/node_modules/jackspeak": {
|
||||||
|
"version": "4.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.0.1.tgz",
|
||||||
|
"integrity": "sha512-cub8rahkh0Q/bw1+GxP7aeSe29hHHn2V4m29nnDlvCdlgU+3UGxkZp7Z53jLUdpX3jdTO0nJZUDl3xvbWc2Xog==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"@isaacs/cliui": "^8.0.2"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": "20 || >=22"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/isaacs"
|
||||||
|
},
|
||||||
|
"optionalDependencies": {
|
||||||
|
"@pkgjs/parseargs": "^0.11.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/rimraf/node_modules/lru-cache": {
|
||||||
|
"version": "11.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.0.0.tgz",
|
||||||
|
"integrity": "sha512-Qv32eSV1RSCfhY3fpPE2GNZ8jgM9X7rdAfemLWqTUxwiyIC4jJ6Sy0fZ8H+oLWevO6i4/bizg7c8d8i6bxrzbA==",
|
||||||
|
"dev": true,
|
||||||
|
"engines": {
|
||||||
|
"node": "20 || >=22"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/rimraf/node_modules/minimatch": {
|
"node_modules/rimraf/node_modules/minimatch": {
|
||||||
"version": "9.0.3",
|
"version": "10.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.1.tgz",
|
||||||
"integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==",
|
"integrity": "sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"brace-expansion": "^2.0.1"
|
"brace-expansion": "^2.0.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16 || 14 >=14.17"
|
"node": "20 || >=22"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/isaacs"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/rimraf/node_modules/path-scurry": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.0.tgz",
|
||||||
|
"integrity": "sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"lru-cache": "^11.0.0",
|
||||||
|
"minipass": "^7.1.2"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": "20 || >=22"
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/sponsors/isaacs"
|
"url": "https://github.com/sponsors/isaacs"
|
||||||
@@ -6535,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"
|
||||||
@@ -6550,9 +6556,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/stylelint": {
|
"node_modules/stylelint": {
|
||||||
"version": "16.6.1",
|
"version": "16.8.2",
|
||||||
"resolved": "https://registry.npmjs.org/stylelint/-/stylelint-16.6.1.tgz",
|
"resolved": "https://registry.npmjs.org/stylelint/-/stylelint-16.8.2.tgz",
|
||||||
"integrity": "sha512-yNgz2PqWLkhH2hw6X9AweV9YvoafbAD5ZsFdKN9BvSDVwGvPh+AUIrn7lYwy1S7IHmtFin75LLfX1m0D2tHu8Q==",
|
"integrity": "sha512-fInKATippQhcSm7AB+T32GpI+626yohrg33GkFT/5jzliUw5qhlwZq2UQQwgl3HsHrf09oeARi0ZwgY/UWEv9A==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -6565,17 +6571,17 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@csstools/css-parser-algorithms": "^2.6.3",
|
"@csstools/css-parser-algorithms": "^3.0.0",
|
||||||
"@csstools/css-tokenizer": "^2.3.1",
|
"@csstools/css-tokenizer": "^3.0.0",
|
||||||
"@csstools/media-query-list-parser": "^2.1.11",
|
"@csstools/media-query-list-parser": "^3.0.0",
|
||||||
"@csstools/selector-specificity": "^3.1.1",
|
"@csstools/selector-specificity": "^4.0.0",
|
||||||
"@dual-bundle/import-meta-resolve": "^4.1.0",
|
"@dual-bundle/import-meta-resolve": "^4.1.0",
|
||||||
"balanced-match": "^2.0.0",
|
"balanced-match": "^2.0.0",
|
||||||
"colord": "^2.9.3",
|
"colord": "^2.9.3",
|
||||||
"cosmiconfig": "^9.0.0",
|
"cosmiconfig": "^9.0.0",
|
||||||
"css-functions-list": "^3.2.2",
|
"css-functions-list": "^3.2.2",
|
||||||
"css-tree": "^2.3.1",
|
"css-tree": "^2.3.1",
|
||||||
"debug": "^4.3.4",
|
"debug": "^4.3.6",
|
||||||
"fast-glob": "^3.3.2",
|
"fast-glob": "^3.3.2",
|
||||||
"fastest-levenshtein": "^1.0.16",
|
"fastest-levenshtein": "^1.0.16",
|
||||||
"file-entry-cache": "^9.0.0",
|
"file-entry-cache": "^9.0.0",
|
||||||
@@ -6583,19 +6589,19 @@
|
|||||||
"globby": "^11.1.0",
|
"globby": "^11.1.0",
|
||||||
"globjoin": "^0.1.4",
|
"globjoin": "^0.1.4",
|
||||||
"html-tags": "^3.3.1",
|
"html-tags": "^3.3.1",
|
||||||
"ignore": "^5.3.1",
|
"ignore": "^5.3.2",
|
||||||
"imurmurhash": "^0.1.4",
|
"imurmurhash": "^0.1.4",
|
||||||
"is-plain-object": "^5.0.0",
|
"is-plain-object": "^5.0.0",
|
||||||
"known-css-properties": "^0.31.0",
|
"known-css-properties": "^0.34.0",
|
||||||
"mathml-tag-names": "^2.1.3",
|
"mathml-tag-names": "^2.1.3",
|
||||||
"meow": "^13.2.0",
|
"meow": "^13.2.0",
|
||||||
"micromatch": "^4.0.7",
|
"micromatch": "^4.0.7",
|
||||||
"normalize-path": "^3.0.0",
|
"normalize-path": "^3.0.0",
|
||||||
"picocolors": "^1.0.1",
|
"picocolors": "^1.0.1",
|
||||||
"postcss": "^8.4.38",
|
"postcss": "^8.4.41",
|
||||||
"postcss-resolve-nested-selector": "^0.1.1",
|
"postcss-resolve-nested-selector": "^0.1.6",
|
||||||
"postcss-safe-parser": "^7.0.0",
|
"postcss-safe-parser": "^7.0.0",
|
||||||
"postcss-selector-parser": "^6.1.0",
|
"postcss-selector-parser": "^6.1.2",
|
||||||
"postcss-value-parser": "^4.2.0",
|
"postcss-value-parser": "^4.2.0",
|
||||||
"resolve-from": "^5.0.0",
|
"resolve-from": "^5.0.0",
|
||||||
"string-width": "^4.2.3",
|
"string-width": "^4.2.3",
|
||||||
@@ -6730,23 +6736,6 @@
|
|||||||
"integrity": "sha512-1ugUSr8BHXRnK23KfuYS+gVMC3LB8QGH9W1iGtDPsNWoQbgtXSExkBu2aDR4epiGWZOjZsj6lDl/N/AqqTC3UA==",
|
"integrity": "sha512-1ugUSr8BHXRnK23KfuYS+gVMC3LB8QGH9W1iGtDPsNWoQbgtXSExkBu2aDR4epiGWZOjZsj6lDl/N/AqqTC3UA==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/stylelint/node_modules/debug": {
|
|
||||||
"version": "4.3.4",
|
|
||||||
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
|
|
||||||
"integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"ms": "2.1.2"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=6.0"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"supports-color": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/stylelint/node_modules/file-entry-cache": {
|
"node_modules/stylelint/node_modules/file-entry-cache": {
|
||||||
"version": "9.0.0",
|
"version": "9.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-9.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-9.0.0.tgz",
|
||||||
@@ -6793,9 +6782,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/stylelint/node_modules/known-css-properties": {
|
"node_modules/stylelint/node_modules/known-css-properties": {
|
||||||
"version": "0.31.0",
|
"version": "0.34.0",
|
||||||
"resolved": "https://registry.npmjs.org/known-css-properties/-/known-css-properties-0.31.0.tgz",
|
"resolved": "https://registry.npmjs.org/known-css-properties/-/known-css-properties-0.34.0.tgz",
|
||||||
"integrity": "sha512-sBPIUGTNF0czz0mwGGUoKKJC8Q7On1GPbCSFPfyEsfHb2DyBG0Y4QtV+EVWpINSaiGKZblDNuF5AezxSgOhesQ==",
|
"integrity": "sha512-tBECoUqNFbyAY4RrbqsBQqDFpGXAEbdD5QKr8kACx3+rnArmuuR22nKQWKazvp07N9yjTyDZaw/20UIH8tL9DQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/stylelint/node_modules/micromatch": {
|
"node_modules/stylelint/node_modules/micromatch": {
|
||||||
@@ -6811,12 +6800,6 @@
|
|||||||
"node": ">=8.6"
|
"node": ">=8.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/stylelint/node_modules/ms": {
|
|
||||||
"version": "2.1.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
|
|
||||||
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"node_modules/stylelint/node_modules/resolve-from": {
|
"node_modules/stylelint/node_modules/resolve-from": {
|
||||||
"version": "5.0.0",
|
"version": "5.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz",
|
||||||
@@ -7171,9 +7154,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/update-browserslist-db": {
|
"node_modules/update-browserslist-db": {
|
||||||
"version": "1.0.16",
|
"version": "1.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.16.tgz",
|
"resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz",
|
||||||
"integrity": "sha512-KVbTxlBYlckhF5wgfyZXTWnMn7MMZjMu9XG8bPlliUOP9ThaF4QnhP8qrjrH7DRzHfSk0oQv1wToW+iA5GajEQ==",
|
"integrity": "sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ==",
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
"type": "opencollective",
|
"type": "opencollective",
|
||||||
|
16
package.json
16
package.json
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@gethinode/hinode",
|
"name": "@gethinode/hinode",
|
||||||
"version": "0.24.12",
|
"version": "0.26.4",
|
||||||
"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",
|
||||||
@@ -68,10 +68,10 @@
|
|||||||
"homepage": "https://gethinode.com",
|
"homepage": "https://gethinode.com",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fullhuman/postcss-purgecss": "^6.0.0",
|
"@fullhuman/postcss-purgecss": "^6.0.0",
|
||||||
"autoprefixer": "^10.4.19",
|
"autoprefixer": "^10.4.20",
|
||||||
"cssnano": "^7.0.3",
|
"cssnano": "^7.0.5",
|
||||||
"cssnano-preset-advanced": "^7.0.3",
|
"cssnano-preset-advanced": "^7.0.5",
|
||||||
"hugo-bin": "0.125.0",
|
"hugo-bin": "0.129.2",
|
||||||
"purgecss-whitelister": "^2.4.0"
|
"purgecss-whitelister": "^2.4.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@@ -80,15 +80,15 @@
|
|||||||
"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.4.0",
|
"eslint-plugin-promise": "^6.6.0",
|
||||||
"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",
|
||||||
"replace-in-files-cli": "^3.0.0",
|
"replace-in-files-cli": "^3.0.0",
|
||||||
"rimraf": "^5.0.7",
|
"rimraf": "^6.0.1",
|
||||||
"shx": "^0.3.4",
|
"shx": "^0.3.4",
|
||||||
"stylelint": "^16.6.1",
|
"stylelint": "^16.8.2",
|
||||||
"stylelint-config-standard-scss": "^13.1.0"
|
"stylelint-config-standard-scss": "^13.1.0"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
|
@@ -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