mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-09 11:03:13 +00:00
Compare commits
17 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
ea8e851e45 | ||
![]() |
90e6c9869d | ||
![]() |
628eb99f62 | ||
![]() |
a0293cc081 | ||
![]() |
d37dcdd20c | ||
![]() |
f0ff631b0d | ||
![]() |
b84bd07073 | ||
![]() |
b800906956 | ||
![]() |
049b38d3c1 | ||
![]() |
27c2500c92 | ||
![]() |
a182b2a134 | ||
![]() |
43abf793b8 | ||
![]() |
e11fa8d377 | ||
![]() |
fb94544bb0 | ||
![]() |
67f687d6b9 | ||
![]() |
879efc07e8 | ||
![]() |
c5edb65550 |
@@ -2,6 +2,7 @@ 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
|
||||||
|
@@ -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')
|
||||||
@@ -20,7 +21,7 @@ function updateNavbar () {
|
|||||||
|
|
||||||
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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -32,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)
|
||||||
|
|
||||||
@@ -43,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
|
||||||
|
@@ -315,3 +315,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.navbar-overlay {
|
||||||
|
position: absolute;
|
||||||
|
z-index: $zindex-fixed;
|
||||||
|
}
|
||||||
|
@@ -172,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
|
||||||
|
@@ -165,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
|
||||||
|
@@ -15,7 +15,6 @@
|
|||||||
"form",
|
"form",
|
||||||
"h2",
|
"h2",
|
||||||
"h3",
|
"h3",
|
||||||
"h5",
|
|
||||||
"head",
|
"head",
|
||||||
"hr",
|
"hr",
|
||||||
"html",
|
"html",
|
||||||
@@ -238,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",
|
||||||
@@ -334,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",
|
||||||
@@ -594,8 +587,6 @@
|
|||||||
"navbar-sample-collapse",
|
"navbar-sample-collapse",
|
||||||
"navigation",
|
"navigation",
|
||||||
"notification",
|
"notification",
|
||||||
"offcanvas-label",
|
|
||||||
"offcanvass-sidebar",
|
|
||||||
"persona",
|
"persona",
|
||||||
"projecten",
|
"projecten",
|
||||||
"projects",
|
"projects",
|
||||||
|
16
i18n/de.yaml
16
i18n/de.yaml
@@ -23,6 +23,22 @@
|
|||||||
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
|
||||||
|
@@ -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 }}
|
||||||
|
@@ -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 -}}
|
||||||
|
@@ -29,6 +29,7 @@
|
|||||||
{{ 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 -}}
|
||||||
|
|
||||||
|
@@ -165,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 -}}
|
||||||
@@ -173,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 }}
|
||||||
{{ 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">
|
||||||
|
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@gethinode/hinode",
|
"name": "@gethinode/hinode",
|
||||||
"version": "0.26.3",
|
"version": "0.26.4",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@gethinode/hinode",
|
"name": "@gethinode/hinode",
|
||||||
"version": "0.26.3",
|
"version": "0.26.4",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fullhuman/postcss-purgecss": "^6.0.0",
|
"@fullhuman/postcss-purgecss": "^6.0.0",
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@gethinode/hinode",
|
"name": "@gethinode/hinode",
|
||||||
"version": "0.26.3",
|
"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",
|
||||||
|
Reference in New Issue
Block a user