mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-07 18:14:28 +00:00
Compare commits
34 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
3c6a533236 | ||
![]() |
69a9108655 | ||
![]() |
4fdc7bb7d3 | ||
![]() |
170bd7034a | ||
![]() |
2bc99753d6 | ||
![]() |
3ae1671b46 | ||
![]() |
4b9f137d41 | ||
![]() |
651f733622 | ||
![]() |
a2b0c2c05f | ||
![]() |
21476927ef | ||
![]() |
8c86081271 | ||
![]() |
fe5e94d277 | ||
![]() |
585db8094e | ||
![]() |
4bcc536d42 | ||
![]() |
b22c2e5ca5 | ||
![]() |
715b714781 | ||
![]() |
1d4b95a827 | ||
![]() |
0530a01445 | ||
![]() |
2a29eba66e | ||
![]() |
e93b66f4b8 | ||
![]() |
44bb9d7f12 | ||
![]() |
4f58f20b94 | ||
![]() |
cd047ea6fe | ||
![]() |
7d6526f291 | ||
![]() |
ede17bdae8 | ||
![]() |
876315613e | ||
![]() |
b2c5efb4bd | ||
![]() |
74047866e5 | ||
![]() |
6fb25c2111 | ||
![]() |
db3fc0014e | ||
![]() |
7105f8e719 | ||
![]() |
96ab7df306 | ||
![]() |
1a964adabb | ||
![]() |
9f4adc0777 |
@@ -14,3 +14,8 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mirrorred {
|
||||||
|
-webkit-transform: scaleX(-1);
|
||||||
|
transform: scaleX(-1);
|
||||||
|
}
|
||||||
|
@@ -32,6 +32,8 @@ github.com/gethinode/mod-fontawesome v1.4.0 h1:JfmVYwQl19jmZxgxY64yvGqJAAEiFkKf2
|
|||||||
github.com/gethinode/mod-fontawesome v1.4.0/go.mod h1:Ki1qkWEOiF0hQpCgWeZRw+HkpL6nd1DxKFptU0O2feI=
|
github.com/gethinode/mod-fontawesome v1.4.0/go.mod h1:Ki1qkWEOiF0hQpCgWeZRw+HkpL6nd1DxKFptU0O2feI=
|
||||||
github.com/gethinode/mod-fontawesome v1.5.0 h1:3mW5dnWauuF9wSWXNIY+PPgTNPlc/xQOQoG7XGic1Yk=
|
github.com/gethinode/mod-fontawesome v1.5.0 h1:3mW5dnWauuF9wSWXNIY+PPgTNPlc/xQOQoG7XGic1Yk=
|
||||||
github.com/gethinode/mod-fontawesome v1.5.0/go.mod h1:Ki1qkWEOiF0hQpCgWeZRw+HkpL6nd1DxKFptU0O2feI=
|
github.com/gethinode/mod-fontawesome v1.5.0/go.mod h1:Ki1qkWEOiF0hQpCgWeZRw+HkpL6nd1DxKFptU0O2feI=
|
||||||
|
github.com/gethinode/mod-fontawesome v1.5.1 h1:C7goQY4HrEua/lpjC++laydNKBuYo1+307ngn5tyXeM=
|
||||||
|
github.com/gethinode/mod-fontawesome v1.5.1/go.mod h1:Ki1qkWEOiF0hQpCgWeZRw+HkpL6nd1DxKFptU0O2feI=
|
||||||
github.com/gethinode/mod-katex v1.0.1/go.mod h1:byAfpI3wuqNJIooTGVEGc1cjBhhCy4+CcK1H6495MYg=
|
github.com/gethinode/mod-katex v1.0.1/go.mod h1:byAfpI3wuqNJIooTGVEGc1cjBhhCy4+CcK1H6495MYg=
|
||||||
github.com/gethinode/mod-katex v1.0.2 h1:pIG4n3qLl/IVe7BEiwn+GL8r5lOCtF6FDxlcrPKdAXk=
|
github.com/gethinode/mod-katex v1.0.2 h1:pIG4n3qLl/IVe7BEiwn+GL8r5lOCtF6FDxlcrPKdAXk=
|
||||||
github.com/gethinode/mod-katex v1.0.2/go.mod h1:byAfpI3wuqNJIooTGVEGc1cjBhhCy4+CcK1H6495MYg=
|
github.com/gethinode/mod-katex v1.0.2/go.mod h1:byAfpI3wuqNJIooTGVEGc1cjBhhCy4+CcK1H6495MYg=
|
||||||
|
2
go.mod
2
go.mod
@@ -6,7 +6,7 @@ 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.2.2 // indirect
|
github.com/gethinode/mod-bootstrap v1.2.2 // indirect
|
||||||
github.com/gethinode/mod-flexsearch v1.6.0 // indirect
|
github.com/gethinode/mod-flexsearch v1.6.0 // indirect
|
||||||
github.com/gethinode/mod-fontawesome v1.5.0 // indirect
|
github.com/gethinode/mod-fontawesome v1.5.1 // indirect
|
||||||
github.com/gethinode/mod-katex v1.0.4 // indirect
|
github.com/gethinode/mod-katex v1.0.4 // indirect
|
||||||
github.com/gethinode/mod-leaflet v0.3.5 // indirect
|
github.com/gethinode/mod-leaflet v0.3.5 // indirect
|
||||||
github.com/gethinode/mod-lottie v1.3.0 // indirect
|
github.com/gethinode/mod-lottie v1.3.0 // indirect
|
||||||
|
2
go.sum
2
go.sum
@@ -62,6 +62,8 @@ github.com/gethinode/mod-fontawesome v1.4.0 h1:JfmVYwQl19jmZxgxY64yvGqJAAEiFkKf2
|
|||||||
github.com/gethinode/mod-fontawesome v1.4.0/go.mod h1:Ki1qkWEOiF0hQpCgWeZRw+HkpL6nd1DxKFptU0O2feI=
|
github.com/gethinode/mod-fontawesome v1.4.0/go.mod h1:Ki1qkWEOiF0hQpCgWeZRw+HkpL6nd1DxKFptU0O2feI=
|
||||||
github.com/gethinode/mod-fontawesome v1.5.0 h1:3mW5dnWauuF9wSWXNIY+PPgTNPlc/xQOQoG7XGic1Yk=
|
github.com/gethinode/mod-fontawesome v1.5.0 h1:3mW5dnWauuF9wSWXNIY+PPgTNPlc/xQOQoG7XGic1Yk=
|
||||||
github.com/gethinode/mod-fontawesome v1.5.0/go.mod h1:Ki1qkWEOiF0hQpCgWeZRw+HkpL6nd1DxKFptU0O2feI=
|
github.com/gethinode/mod-fontawesome v1.5.0/go.mod h1:Ki1qkWEOiF0hQpCgWeZRw+HkpL6nd1DxKFptU0O2feI=
|
||||||
|
github.com/gethinode/mod-fontawesome v1.5.1 h1:C7goQY4HrEua/lpjC++laydNKBuYo1+307ngn5tyXeM=
|
||||||
|
github.com/gethinode/mod-fontawesome v1.5.1/go.mod h1:Ki1qkWEOiF0hQpCgWeZRw+HkpL6nd1DxKFptU0O2feI=
|
||||||
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=
|
||||||
|
@@ -15,6 +15,7 @@
|
|||||||
"link",
|
"link",
|
||||||
"meta",
|
"meta",
|
||||||
"nav",
|
"nav",
|
||||||
|
"ol",
|
||||||
"p",
|
"p",
|
||||||
"path",
|
"path",
|
||||||
"script",
|
"script",
|
||||||
@@ -29,11 +30,14 @@
|
|||||||
"active",
|
"active",
|
||||||
"align-items-center",
|
"align-items-center",
|
||||||
"align-self-center",
|
"align-self-center",
|
||||||
|
"align-self-end",
|
||||||
"bg-body",
|
"bg-body",
|
||||||
"bg-opacity-10",
|
"bg-opacity-10",
|
||||||
"bg-primary",
|
"bg-primary",
|
||||||
"bottom-0",
|
"bottom-0",
|
||||||
"bottom-bar",
|
"bottom-bar",
|
||||||
|
"breadcrumb",
|
||||||
|
"breadcrumb-item",
|
||||||
"btn",
|
"btn",
|
||||||
"btn-close",
|
"btn-close",
|
||||||
"btn-primary",
|
"btn-primary",
|
||||||
@@ -85,7 +89,6 @@
|
|||||||
"form-control",
|
"form-control",
|
||||||
"fs-3",
|
"fs-3",
|
||||||
"fs-5",
|
"fs-5",
|
||||||
"fw-30",
|
|
||||||
"fw-bold",
|
"fw-bold",
|
||||||
"hstack",
|
"hstack",
|
||||||
"img-fluid",
|
"img-fluid",
|
||||||
|
@@ -27,6 +27,8 @@
|
|||||||
translation: "More {{ . }}"
|
translation: "More {{ . }}"
|
||||||
- id: emptyList
|
- id: emptyList
|
||||||
translation: "No articles found"
|
translation: "No articles found"
|
||||||
|
- id: emptyTags
|
||||||
|
translation: "No tags found"
|
||||||
|
|
||||||
# Sharing
|
# Sharing
|
||||||
- id: shareLink
|
- id: shareLink
|
||||||
|
@@ -25,6 +25,8 @@
|
|||||||
translation: "Meer {{ . }}"
|
translation: "Meer {{ . }}"
|
||||||
- id: emptyList
|
- id: emptyList
|
||||||
translation: "Geen artikelen gevonden"
|
translation: "Geen artikelen gevonden"
|
||||||
|
- id: emptyTags
|
||||||
|
translation: "Geen tags gevonden"
|
||||||
|
|
||||||
# Sharing
|
# Sharing
|
||||||
- id: shareLink
|
- id: shareLink
|
||||||
|
@@ -7,7 +7,6 @@
|
|||||||
<div class="d-md-none pb-5">{{ partial "assets/toc-dropdown.html" . }}</div>
|
<div class="d-md-none pb-5">{{ partial "assets/toc-dropdown.html" . }}</div>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{ .Render "single/body" }}
|
{{ .Render "single/body" }}
|
||||||
{{ partial "utilities/ProcessContent" (dict "page" .Page "raw" .RawContent) }}
|
|
||||||
|
|
||||||
{{ .Render "single/footer" }}
|
{{ .Render "single/footer" }}
|
||||||
{{- if and .Site.Params.comments.enabled .Params.showComments | default true -}}
|
{{- if and .Site.Params.comments.enabled .Params.showComments | default true -}}
|
||||||
@@ -17,11 +16,6 @@
|
|||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
{{ define "main" -}}
|
{{ define "main" -}}
|
||||||
{{- $download := .Params.download -}}
|
|
||||||
{{- if and $download (not (fileExists (path.Join "static" $download))) -}}
|
|
||||||
{{- errorf "Cannot find download file for page '%s': %s" .File.Path $download -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{- $menu := .Scratch.Get "sidebar" -}}
|
{{- $menu := .Scratch.Get "sidebar" -}}
|
||||||
{{- $version := .Scratch.Get "version" -}}
|
{{- $version := .Scratch.Get "version" -}}
|
||||||
|
|
||||||
@@ -29,9 +23,7 @@
|
|||||||
{{- $hasSidebar := .Site.Params.navigation.sidebar | default true -}}
|
{{- $hasSidebar := .Site.Params.navigation.sidebar | default true -}}
|
||||||
{{ if and $menu $hasSidebar }}{{ $sidebar = partial "assets/sidebar.html" (dict "page" . "menu" $menu "version" $version) }}{{ end }}
|
{{ if and $menu $hasSidebar }}{{ $sidebar = partial "assets/sidebar.html" (dict "page" . "menu" $menu "version" $version) }}{{ end }}
|
||||||
|
|
||||||
{{ $toc := "" }}
|
{{ $toc := .Render "single/panel-toc" }}
|
||||||
{{- $hasTOC := and .Site.Params.navigation.toc .Params.includeToc | default true -}}
|
|
||||||
{{ if $hasTOC }}{{ $toc = partial "assets/toc.html" (dict "page" . "download" $download) }}{{ end -}}
|
|
||||||
|
|
||||||
{{ with $sidebar -}}
|
{{ with $sidebar -}}
|
||||||
<div class="offcanvas offcanvas-start" tabindex="-1" id="offcanvass-sidebar" aria-inledby="offcanvas-label">
|
<div class="offcanvas offcanvas-start" tabindex="-1" id="offcanvass-sidebar" aria-inledby="offcanvas-label">
|
||||||
|
@@ -1,2 +1,3 @@
|
|||||||
{{- partial "single/thumbnail.html" (dict "page" . "class" "mb-5") -}}
|
{{- partial "single/thumbnail.html" (dict "page" . "class" "mb-5") -}}
|
||||||
|
|
||||||
|
{{ partial "utilities/ProcessContent" (dict "page" .Page "raw" .RawContent) }}
|
||||||
|
@@ -1,12 +1,31 @@
|
|||||||
{{ $lastmodstr := (partial "utilities/date.html" (dict "date" .Lastmod "format" "long")) -}}
|
{{- $metadata := "full" -}}
|
||||||
{{ $datestr := (partial "utilities/date.html" (dict "date" .Date "format" "long")) -}}
|
{{ if isset .Params "metadata" }}
|
||||||
|
{{ $metadata = .Params.metadata }}
|
||||||
|
{{ else }}
|
||||||
|
{{- with (index site.Params.pages .Type ) -}}
|
||||||
|
{{ if isset . "metadata" }}{{ $metadata = (index . "metadata") }}{{ end }}
|
||||||
|
{{- end -}}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{- $supportedStates := slice "full" "original" "none" -}}
|
||||||
|
{{- if not (in $supportedStates $metadata) -}}
|
||||||
|
{{- errorf "layout [_default/single/header.html] - Invalid value for param 'metadata': %s" $metadata -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
{{ with .Title }}<p class="display-4 mt-5">{{ . }}</p>{{ end }}
|
{{ with .Title }}<p class="display-4 mt-5">{{ . }}</p>{{ end }}
|
||||||
<small class="text-body-secondary text-uppercase">
|
{{ if ne $metadata "none" }}
|
||||||
{{ $datestr | i18n "postedOnDate" -}}
|
{{ $lastmodstr := (partial "utilities/date.html" (dict "date" .Lastmod "format" "long")) -}}
|
||||||
{{ if ne $datestr $lastmodstr -}} ({{ $lastmodstr | i18n "lastModified" }}){{ end }} •
|
{{ $datestr := (partial "utilities/date.html" (dict "date" .Date "format" "long")) -}}
|
||||||
{{ .ReadingTime | lang.FormatNumber 0 }} {{ i18n "minutesShort" }} {{ i18n "read" }} •
|
<small class="text-body-secondary text-uppercase">
|
||||||
{{ .WordCount | lang.FormatNumber 0 }} {{ i18n "words" }}
|
{{ $datestr | i18n "postedOnDate" -}}
|
||||||
</small>
|
{{ if eq $metadata "full" }}
|
||||||
|
{{ if ne $datestr $lastmodstr -}} ({{ $lastmodstr | i18n "lastModified" }}){{ end }}
|
||||||
|
{{ end }}
|
||||||
|
•
|
||||||
|
{{ .ReadingTime | lang.FormatNumber 0 }} {{ i18n "minutesShort" }} {{ i18n "read" }} •
|
||||||
|
{{ .WordCount | lang.FormatNumber 0 }} {{ i18n "words" }}
|
||||||
|
</small>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{- if gt (len (.GetTerms "tags")) 0 -}}
|
{{- if gt (len (.GetTerms "tags")) 0 -}}
|
||||||
<div class="mt-3">
|
<div class="mt-3">
|
||||||
|
33
layouts/_default/single/panel-toc.html
Normal file
33
layouts/_default/single/panel-toc.html
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
{{- $download := .Params.download -}}
|
||||||
|
{{- if and $download (not (fileExists (path.Join "static" $download))) -}}
|
||||||
|
{{- errorf "Cannot find download file for page '%s': %s" .File.Path $download -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- $toc := .Site.Params.navigation.toc -}}
|
||||||
|
{{ if $toc }}
|
||||||
|
{{ if isset .Params "includeToc" }}
|
||||||
|
{{ $toc = .Params.includeToc }}
|
||||||
|
{{ else }}
|
||||||
|
{{- with (index site.Params.pages .Type) -}}
|
||||||
|
{{ if isset . "includetoc" }}
|
||||||
|
{{ $toc = index . "includetoc" }}
|
||||||
|
{{ if ne (printf "%T" $toc) "bool" }}
|
||||||
|
{{ errorf "Expected bool value in site parameters: pages.%s.includeToc" $.Type }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
{{- end -}}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<div class="toc toc-sidebar mb-5 my-md-0 ps-xl-3 mb-lg-5 p-3 text-body-secondary sticky-top">
|
||||||
|
{{ with $download }}
|
||||||
|
<div class="mb-5 text-center">
|
||||||
|
{{ $attr := dict "download" (path.Base .) }}
|
||||||
|
{{ partial "assets/button.html" (dict "href" . "title" (T "download" ) "color" "primary" "outline" "true" "icon" "fas download" "size" "sm" "attributes" $attr) }}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if $toc }}
|
||||||
|
{{ partial "assets/toc.html" (dict "page" . "download" $download) }}
|
||||||
|
{{ end -}}
|
||||||
|
</div>
|
@@ -1 +1 @@
|
|||||||
{{/* Intentionally left blank to suppress thumbnail */}}
|
{{ partial "utilities/ProcessContent" (dict "page" .Page "raw" .RawContent) }}
|
||||||
|
@@ -1 +1 @@
|
|||||||
{{/* Intentionally left blank to suppress thumbnail */}}
|
{{ partial "utilities/ProcessContent" (dict "page" .Page "raw" .RawContent) }}
|
||||||
|
@@ -186,7 +186,7 @@
|
|||||||
<div class="pt-3">{{ partial "assets/pagination.html" (dict "page" $page "format" "terse") }}</div>
|
<div class="pt-3">{{ partial "assets/pagination.html" (dict "page" $page "format" "terse") }}</div>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ if gt $count $max }}
|
{{ if and (gt $count $max) $moreTitle }}
|
||||||
<a class="btn btn-outline-primary" href="{{ $moreURL| safeURL }}" role="button">{{ $moreTitle }}</a>
|
<a class="btn btn-outline-primary" href="{{ $moreURL| safeURL }}" role="button">{{ $moreTitle }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -210,7 +210,12 @@
|
|||||||
{{- $fallbackURL = $url -}}
|
{{- $fallbackURL = $url -}}
|
||||||
{{- $isVector = true -}}
|
{{- $isVector = true -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- $img := partial "utilities/GetImage.html" (dict "url" $url "page" $page) -}}
|
{{- $res := partial "utilities/GetImage.html" (dict "url" $url "page" $page) -}}
|
||||||
|
{{- $img := "" -}}
|
||||||
|
{{ with $res }}
|
||||||
|
{{ $img = $res.resource }}
|
||||||
|
{{ if $res.mirror }}{{ $innerClass = printf "%s mirrorred" $innerClass }}{{ end }}
|
||||||
|
{{ end }}
|
||||||
{{- if $img -}}
|
{{- if $img -}}
|
||||||
{{- $fallback := partial "partials/image-default.html" (dict "img" $img "ratio" $ratio "portrait" $portrait) -}}
|
{{- $fallback := partial "partials/image-default.html" (dict "img" $img "ratio" $ratio "portrait" $portrait) -}}
|
||||||
{{- if $absoluteURL -}}
|
{{- if $absoluteURL -}}
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
{{- $page := .page }}
|
{{- $page := .page }}
|
||||||
{{- $section := .section }}
|
{{- $section := .section }}
|
||||||
{{- if not $section }}{{ errorf "partial [assets/section-list.html] - Missing value for param 'section'" }}{{ end -}}
|
{{- if not $section }}{{ errorf "partial [assets/section-list.html] - Missing value for param 'section'" }}{{ end -}}
|
||||||
{{- $home := .home }}
|
{{- $home := .home | default false }}
|
||||||
{{ if ne (printf "%T" $home) "bool" }}
|
{{ if ne (printf "%T" $home) "bool" }}
|
||||||
{{ errorf "partial [assets/section-list.html] - Invalid value for param 'home'"}}
|
{{ errorf "partial [assets/section-list.html] - Invalid value for param 'home'"}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@@ -37,6 +37,7 @@
|
|||||||
{{- $ratio := "" -}}
|
{{- $ratio := "" -}}
|
||||||
{{- $wrap := false -}}
|
{{- $wrap := false -}}
|
||||||
{{- $loading := .loading -}}
|
{{- $loading := .loading -}}
|
||||||
|
{{- $wrapper := .wrapper | default "p-4 px-xxl-0 pb-5" -}}
|
||||||
|
|
||||||
{{- with (index site.Params.sections $section) -}}
|
{{- with (index site.Params.sections $section) -}}
|
||||||
{{- with index . "title" }}{{ $title = or $.title . }}{{ end -}}
|
{{- with index . "title" }}{{ $title = or $.title . }}{{ end -}}
|
||||||
@@ -77,6 +78,12 @@
|
|||||||
{{ else }}
|
{{ else }}
|
||||||
{{ $list = where site.Pages (printf ".Params.%s" $section) "!=" nil }}
|
{{ $list = where site.Pages (printf ".Params.%s" $section) "!=" nil }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ else if eq $kind "related" }}
|
||||||
|
{{ if $page.Keywords}}
|
||||||
|
{{ $keywords := keyVals "tags" $page.Keywords }}
|
||||||
|
{{ $opts := dict "namedSlices" (slice $keywords) }}
|
||||||
|
{{ $list = site.RegularPages.Related $opts }}
|
||||||
|
{{ end }}
|
||||||
{{ else if $nested }}
|
{{ else if $nested }}
|
||||||
{{ $list = where site.RegularPages "Type" "in" $section }}
|
{{ $list = where site.RegularPages "Type" "in" $section }}
|
||||||
{{ else if $home }}
|
{{ else if $home }}
|
||||||
@@ -100,7 +107,7 @@
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{ if gt $max 0 }}
|
{{ if gt $max 0 }}
|
||||||
{{- if $home -}}
|
{{- if or $home (eq $kind "related") -}}
|
||||||
{{- $paginate = false -}}
|
{{- $paginate = false -}}
|
||||||
{{- $max = int (math.Min $homepage $max) -}}
|
{{- $max = int (math.Min $homepage $max) -}}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
@@ -128,7 +135,7 @@
|
|||||||
{{- $partial := "" -}}
|
{{- $partial := "" -}}
|
||||||
|
|
||||||
<div class="container-fluid {{ with $background }} bg-{{ . }}{{ end }} p-0">
|
<div class="container-fluid {{ with $background }} bg-{{ . }}{{ end }} p-0">
|
||||||
<div class="container-xxl p-4 px-xxl-0 pb-5">
|
<div class="container-xxl {{ $wrapper }}">
|
||||||
{{- partial "assets/section-header.html" $params -}}
|
{{- partial "assets/section-header.html" $params -}}
|
||||||
|
|
||||||
{{ if eq $layout "card" }}
|
{{ if eq $layout "card" }}
|
||||||
|
@@ -1,11 +1,28 @@
|
|||||||
{{- if .Site.Params.sharing.enabled -}}
|
{{- if .Site.Params.sharing.enabled -}}
|
||||||
{{- if or .Params.sharing (not (isset .Params "sharing")) -}}
|
{{- $sharing := true -}}
|
||||||
|
{{ if isset .Params "sharing" }}
|
||||||
|
{{ $sharing = .Params.sharing }}
|
||||||
|
{{ else }}
|
||||||
|
{{- with (index site.Params.pages .Type ) -}}
|
||||||
|
{{ if isset . "sharing" }}
|
||||||
|
{{ $sharing = (index . "sharing") }}
|
||||||
|
{{ end }}
|
||||||
|
{{- end -}}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{- if $sharing -}}
|
||||||
{{- $page := . -}}
|
{{- $page := . -}}
|
||||||
{{- $order := "asc" -}}
|
{{- $order := "asc" -}}
|
||||||
{{- $list := .Site.Params.sharing.providers -}}
|
{{- $list := .Site.Params.sharing.providers -}}
|
||||||
{{- if .Site.Params.sharing.reverse }}{{ $order = "desc" }}{{ else }}{{ $order = "asc" }}{{ end -}}
|
{{- if .Site.Params.sharing.reverse }}{{ $order = "desc" }}{{ else }}{{ $order = "asc" }}{{ end -}}
|
||||||
{{- $sort := .Site.Params.sharing.sort | default "weight" -}}
|
{{- $sort := .Site.Params.sharing.sort | default "weight" -}}
|
||||||
{{- $list = sort $list $sort $order -}}
|
{{- $list = sort $list $sort $order -}}
|
||||||
|
|
||||||
|
{{- $download := .Params.download -}}
|
||||||
|
{{- if and $download (not (fileExists (path.Join "static" $download))) -}}
|
||||||
|
{{- errorf "Cannot find download file for page '%s': %s" .File.Path $download -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
<div class="py-3 text-body-secondary hstack gap-1">
|
<div class="py-3 text-body-secondary hstack gap-1">
|
||||||
{{ T "shareLink" "" }}
|
{{ T "shareLink" "" }}
|
||||||
{{- range $index, $item := $list -}}
|
{{- range $index, $item := $list -}}
|
||||||
@@ -27,6 +44,10 @@
|
|||||||
{{ $attr := dict "data-sharing-title" .Title "data-sharing-description" .Description "data-sharing-url" .Permalink }}
|
{{ $attr := dict "data-sharing-title" .Title "data-sharing-description" .Description "data-sharing-url" .Permalink }}
|
||||||
{{ partial "assets/button.html" (dict "href" "#!" "icon" "fas share-nodes fa-fw" "id" "btn-webshare" "class" "btn-social p-0" "attributes" $attr "label" (T "shareLink" (T "shareSystem")) "spacing" false) }}
|
{{ partial "assets/button.html" (dict "href" "#!" "icon" "fas share-nodes fa-fw" "id" "btn-webshare" "class" "btn-social p-0" "attributes" $attr "label" (T "shareLink" (T "shareSystem")) "spacing" false) }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{ with $download }}
|
||||||
|
{{ $attr := dict "download" (path.Base .) }}
|
||||||
|
{{ partial "assets/button.html" (dict "href" . "icon" "fas download fa-fw" "class" "btn-social p-0" "attributes" $attr "spacing" false) }}
|
||||||
|
{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
@@ -1,17 +1,7 @@
|
|||||||
{{- $page := .page -}}
|
{{- $page := .page -}}
|
||||||
{{- $download := .download -}}
|
|
||||||
|
|
||||||
{{ $items := len (findRE "<li.*?>(.|\n)*?</li>" $page.TableOfContents) -}}
|
{{ $items := len (findRE "<li.*?>(.|\n)*?</li>" $page.TableOfContents) -}}
|
||||||
{{ if or $download (gt $items 1) -}}
|
{{ if gt $items 1 -}}
|
||||||
<div class="toc toc-sidebar mb-5 my-md-0 ps-xl-3 mb-lg-5 p-3 text-body-secondary sticky-top">
|
<strong class="d-block h6 my-2 pb-2 border-bottom">{{ T "toc" }}</strong>
|
||||||
{{ with $download }}
|
{{ $page.TableOfContents }}
|
||||||
<div class="mb-5">
|
|
||||||
{{ $attr := dict "download" (path.Base .) }}
|
|
||||||
{{ partial "assets/button.html" (dict "href" . "title" (T "download" ) "color" "primary" "outline" "true" "icon" "fas download" "attributes" $attr) }}
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
<strong class="d-block h6 my-2 pb-2 border-bottom">{{ T "toc" }}</strong>
|
|
||||||
{{ $page.TableOfContents }}
|
|
||||||
</div>
|
|
||||||
{{ end -}}
|
{{ end -}}
|
@@ -12,8 +12,10 @@
|
|||||||
|
|
||||||
{{- $thumbnail := (or (and (reflect.IsMap .Params.Thumbnail) .Params.Thumbnail.url) .Params.Thumbnail) -}}
|
{{- $thumbnail := (or (and (reflect.IsMap .Params.Thumbnail) .Params.Thumbnail.url) .Params.Thumbnail) -}}
|
||||||
{{ with $thumbnail -}}
|
{{ with $thumbnail -}}
|
||||||
{{ $img := partial "utilities/GetImage.html" (dict "url" .) -}}
|
{{- $res := partial "utilities/GetImage.html" (dict "url" .) -}}
|
||||||
{{ with $img -}}
|
{{- $img := "" -}}
|
||||||
|
{{ with $res }}{{ $img = $res.resource }}{{ end }}
|
||||||
|
{{ with $img -}}
|
||||||
{{ $dim := "1280x640" -}}
|
{{ $dim := "1280x640" -}}
|
||||||
{{ $scaled := (.Fill (printf "%s jpg" $dim)) -}}
|
{{ $scaled := (.Fill (printf "%s jpg" $dim)) -}}
|
||||||
{{- $scaled = $scaled | resources.Copy (replace $img.RelPermalink ".jpg" (printf "-%s.jpg" $dim)) -}}
|
{{- $scaled = $scaled | resources.Copy (replace $img.RelPermalink ".jpg" (printf "-%s.jpg" $dim)) -}}
|
||||||
|
@@ -1,5 +1,7 @@
|
|||||||
{{- $page := .page -}}
|
{{- $page := .page -}}
|
||||||
{{- $class := printf "img-wrap %s" .class -}}
|
{{- $class := printf "img-wrap" -}}
|
||||||
|
{{- with .class }}{{ $class := printf "img-wrap %s" . }}{{ end -}}
|
||||||
|
{{- $ratio := .ratio | default "21x9" -}}
|
||||||
{{- $thumbnail := "" -}}
|
{{- $thumbnail := "" -}}
|
||||||
{{- $credits := "" -}}
|
{{- $credits := "" -}}
|
||||||
|
|
||||||
@@ -33,5 +35,5 @@
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{ if $thumbnail -}}
|
{{ if $thumbnail -}}
|
||||||
{{- partial "assets/image.html" (dict "url" $thumbnail "ratio" "21x9" "outerClass" $class "innerClass" "rounded" "title" $page.Params.title "caption" $credits) -}}
|
{{- partial "assets/image.html" (dict "url" $thumbnail "ratio" $ratio "outerClass" $class "innerClass" "rounded" "title" $page.Params.title "caption" $credits) -}}
|
||||||
{{ end -}}
|
{{ end -}}
|
@@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
{{ $url := .url -}}
|
{{ $url := .url -}}
|
||||||
{{ $page := .page -}}
|
{{ $page := .page -}}
|
||||||
|
{{ $mirror := false }}
|
||||||
|
|
||||||
{{ $supportedMediaTypes := slice "image/png" "image/jpeg" "image/gif" "image/tiff" "image/bmp" "image/webp" -}}
|
{{ $supportedMediaTypes := slice "image/png" "image/jpeg" "image/gif" "image/tiff" "image/bmp" "image/webp" -}}
|
||||||
{{ $img := "" }}
|
{{ $img := "" }}
|
||||||
@@ -38,6 +39,34 @@
|
|||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ $img = $img.Content | resources.FromString (printf "/img/%s" $filename) -}}
|
{{ $img = $img.Content | resources.FromString (printf "/img/%s" $filename) -}}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Rotate the image if needed based on EXIF orientation. EXIF defines the following values:
|
||||||
|
(source: https://sirv.com/help/articles/rotate-photos-to-be-upright/#EXIF_orientation_values)
|
||||||
|
1 = 0 degrees: the correct orientation, no adjustment is required.
|
||||||
|
2 = 0 degrees, mirrored: image has been flipped back-to-front.
|
||||||
|
3 = 180 degrees: image is upside down.
|
||||||
|
4 = 180 degrees, mirrored: image has been flipped back-to-front and is upside down.
|
||||||
|
5 = 90 degrees: image has been flipped back-to-front and is on its side.
|
||||||
|
6 = 90 degrees, mirrored: image is on its side.
|
||||||
|
7 = 270 degrees: image has been flipped back-to-front and is on its far side.
|
||||||
|
8 = 270 degrees, mirrored: image is on its far side.
|
||||||
|
-->
|
||||||
|
{{ with $img.Exif }}
|
||||||
|
{{ $filter := "" }}
|
||||||
|
{{ $orientation := .Tags.Orientation }}
|
||||||
|
{{ if or (eq $orientation 3) (eq $orientation 4) }}
|
||||||
|
{{ $filter = images.Process "r180" }}
|
||||||
|
{{ else if or (eq $orientation 5) (eq $orientation 6) }}
|
||||||
|
{{ $filter = images.Process "r270" }}
|
||||||
|
{{ else if or (eq $orientation 7) (eq $orientation 8) }}
|
||||||
|
{{ $filter = images.Process "r90" }}
|
||||||
|
{{ end }}
|
||||||
|
{{ with $filter }}{{ $img = $img.Filter . }}{{ end }}
|
||||||
|
|
||||||
|
{{- $isMirrored := slice 2 4 5 7 -}}
|
||||||
|
{{- if (in $isMirrored $orientation) }}{{ $mirror = true }}{{ end -}}
|
||||||
|
{{ end }}
|
||||||
{{ else -}}
|
{{ else -}}
|
||||||
{{ warnf "Image type '%s' is not supported: %s" $img.MediaType $url -}}
|
{{ warnf "Image type '%s' is not supported: %s" $img.MediaType $url -}}
|
||||||
{{ $img = "" -}}
|
{{ $img = "" -}}
|
||||||
@@ -46,4 +75,4 @@
|
|||||||
{{ warnf "Cannot find image resource: %q" $url -}}
|
{{ warnf "Cannot find image resource: %q" $url -}}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
{{ return $img -}}
|
{{ return (dict "resource" $img "mirror" $mirror) -}}
|
@@ -19,11 +19,22 @@
|
|||||||
"mode": Optional flag indicating if the image should support color modes.
|
"mode": Optional flag indicating if the image should support color modes.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
{{- if isset .Params "src" -}}
|
{{- $url := "" -}}
|
||||||
{{ $error := false -}}
|
{{- $ratio := "" -}}
|
||||||
{{ $url := .Get "src" | default "" -}}
|
{{- $wrapper := "" -}}
|
||||||
|
{{- $class := "" -}}
|
||||||
|
{{- $title := "" -}}
|
||||||
|
{{- $caption := "" -}}
|
||||||
|
{{- $mode := false -}}
|
||||||
|
{{- $portrait := false -}}
|
||||||
|
{{- $loading := "" -}}
|
||||||
|
{{- $error := false -}}
|
||||||
|
|
||||||
|
{{- if .IsNamedParams -}}
|
||||||
|
{{ $url = .Get "src" | default "" -}}
|
||||||
|
|
||||||
{{- $validRatios := slice "1x1" "3x2" "4x3" "16x9" "21x9" -}}
|
{{- $validRatios := slice "1x1" "3x2" "4x3" "16x9" "21x9" -}}
|
||||||
{{ $ratio := .Get "ratio" | default "" -}}
|
{{ $ratio = .Get "ratio" | default "" -}}
|
||||||
{{ if $ratio -}}
|
{{ if $ratio -}}
|
||||||
{{ if not (in $validRatios $ratio) -}}
|
{{ if not (in $validRatios $ratio) -}}
|
||||||
{{ errorf "Invalid value for param 'ratio': %s" .Position -}}
|
{{ errorf "Invalid value for param 'ratio': %s" .Position -}}
|
||||||
@@ -31,10 +42,10 @@
|
|||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
{{- $class := .Get "class" | default "" -}}
|
{{- $class = .Get "class" | default "" -}}
|
||||||
{{- $wrapper := .Get "wrapper" | default "" -}}
|
{{- $wrapper = .Get "wrapper" | default "" -}}
|
||||||
|
|
||||||
{{- $loading := .Get "loading" | default "" -}}
|
{{- $loading = .Get "loading" | default "" -}}
|
||||||
{{- $validSettings := slice "lazy" "eager" -}}
|
{{- $validSettings := slice "lazy" "eager" -}}
|
||||||
{{- if $loading -}}
|
{{- if $loading -}}
|
||||||
{{ if not (in $validSettings $loading) -}}
|
{{ if not (in $validSettings $loading) -}}
|
||||||
@@ -42,14 +53,12 @@
|
|||||||
{{ $error = true -}}
|
{{ $error = true -}}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- $lazy := eq $loading "lazy" -}}
|
|
||||||
|
|
||||||
{{ $title := .Get "title" | default "" -}}
|
{{ $title = .Get "title" | default "" -}}
|
||||||
{{ $caption := .Get "caption" | default "" -}}
|
{{ $caption = .Get "caption" | default "" -}}
|
||||||
|
|
||||||
{{ $supportedFlags := slice "true" "false" -}}
|
{{ $supportedFlags := slice "true" "false" -}}
|
||||||
{{ $modeParam := "false" -}}
|
{{ $modeParam := "false" -}}
|
||||||
{{ $mode := false -}}
|
|
||||||
{{ with .Get "mode" }}{{ $modeParam = . }}{{ end -}}
|
{{ with .Get "mode" }}{{ $modeParam = . }}{{ end -}}
|
||||||
{{ if in $supportedFlags $modeParam -}}
|
{{ if in $supportedFlags $modeParam -}}
|
||||||
{{ if eq $modeParam "true" }}{{ $mode = true }}{{ else }}{{ $mode = false }}{{ end -}}
|
{{ if eq $modeParam "true" }}{{ $mode = true }}{{ else }}{{ $mode = false }}{{ end -}}
|
||||||
@@ -59,7 +68,6 @@
|
|||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
{{ $portraitParam := "false" -}}
|
{{ $portraitParam := "false" -}}
|
||||||
{{ $portrait := false -}}
|
|
||||||
{{ with .Get "portrait" }}{{ $portraitParam = . }}{{ end -}}
|
{{ with .Get "portrait" }}{{ $portraitParam = . }}{{ end -}}
|
||||||
{{ if in $supportedFlags $portraitParam -}}
|
{{ if in $supportedFlags $portraitParam -}}
|
||||||
{{ if eq $portraitParam "true" }}{{ $portrait = true }}{{ else }}{{ $portrait = false }}{{ end -}}
|
{{ if eq $portraitParam "true" }}{{ $portrait = true }}{{ else }}{{ $portrait = false }}{{ end -}}
|
||||||
@@ -67,21 +75,26 @@
|
|||||||
{{ errorf "Invalid value for param 'portrait': %s" $portraitParam -}}
|
{{ errorf "Invalid value for param 'portrait': %s" $portraitParam -}}
|
||||||
{{ $error = true -}}
|
{{ $error = true -}}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
{{- if not $error -}}
|
|
||||||
{{- partial "assets/image.html" (dict
|
|
||||||
"url" $url
|
|
||||||
"ratio" $ratio
|
|
||||||
"outerClass" $wrapper
|
|
||||||
"innerClass" $class
|
|
||||||
"title" $title
|
|
||||||
"caption" $caption
|
|
||||||
"mode" $mode
|
|
||||||
"portrait" $portrait
|
|
||||||
"loading" $loading
|
|
||||||
"page" .Page)
|
|
||||||
-}}
|
|
||||||
{{- end -}}
|
|
||||||
{{ else -}}
|
{{ else -}}
|
||||||
|
{{ $url = .Get 0 }}
|
||||||
|
{{ end -}}
|
||||||
|
|
||||||
|
{{ if not $url }}
|
||||||
{{ errorf "Missing value for param 'src': %s" .Position -}}
|
{{ errorf "Missing value for param 'src': %s" .Position -}}
|
||||||
{{ end -}}
|
{{- $error = true -}}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{- if not $error -}}
|
||||||
|
{{- partial "assets/image.html" (dict
|
||||||
|
"url" $url
|
||||||
|
"ratio" $ratio
|
||||||
|
"outerClass" $wrapper
|
||||||
|
"innerClass" $class
|
||||||
|
"title" $title
|
||||||
|
"caption" $caption
|
||||||
|
"mode" $mode
|
||||||
|
"portrait" $portrait
|
||||||
|
"loading" $loading
|
||||||
|
"page" .Page)
|
||||||
|
-}}
|
||||||
|
{{- end -}}
|
||||||
|
@@ -12,20 +12,23 @@
|
|||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
<p class="display-4 mt-5">{{ .Name | humanize }}</p>
|
<p class="display-4 mt-5">{{ .Page.Title }}</p>
|
||||||
|
|
||||||
{{ if eq .Kind "taxonomy" }}
|
{{ if eq .Kind "taxonomy" }}
|
||||||
<div class="row mt-5"></div>
|
<div class="row mt-5"></div>
|
||||||
{{ range $.Site.Taxonomies.tags.ByCount }}
|
{{ range $.Site.Taxonomies.tags.ByCount }}
|
||||||
<div class="row mt-2">
|
<div class="row mt-2">
|
||||||
<div class="d-none d-sm-block col-sm-3 mt-auto text-right">
|
<div class="col-3 mt-auto text-right">
|
||||||
{{ .Count }} {{ if gt .Count 1 }} {{ T "articles" }} {{ else }} {{ T "article" }} {{ end }}
|
{{ .Count }} {{ if gt .Count 1 }} {{ T "articles" }} {{ else }} {{ T "article" }} {{ end }}
|
||||||
</div>
|
</div>
|
||||||
<div class="col">
|
<div class="col-9">
|
||||||
<a href="{{ (path.Join .Page.RelPermalink) | relLangURL }}">{{ .Name | .Page.RenderString }}</a>
|
<a href="{{ (path.Join .Page.RelPermalink) | relLangURL }}">{{ .Page.Title | .Page.RenderString }}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ if eq $.Site.Taxonomies.tags 0 }}
|
||||||
|
<p class="pt-4">{{- T "emptyTags" }}.</p>
|
||||||
|
{{ end }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ $dateFormat := default "Jan 2" (index .Site.Params "date_format") }}
|
{{ $dateFormat := default "Jan 2" (index .Site.Params "date_format") }}
|
||||||
{{ $.Scratch.Set "lastYear" ""}}
|
{{ $.Scratch.Set "lastYear" ""}}
|
||||||
|
@@ -4,8 +4,8 @@
|
|||||||
command = "npm run build:example"
|
command = "npm run build:example"
|
||||||
|
|
||||||
[build.environment]
|
[build.environment]
|
||||||
DART_SASS_VERSION = "1.69.0"
|
DART_SASS_VERSION = "1.69.5"
|
||||||
HUGO_VERSION = "0.119.0"
|
HUGO_VERSION = "0.120.3"
|
||||||
HUGO_ENV = "production"
|
HUGO_ENV = "production"
|
||||||
HUGO_ENABLEGITINFO = "true"
|
HUGO_ENABLEGITINFO = "true"
|
||||||
NODE_VERSION = "18.18.2"
|
NODE_VERSION = "18.18.2"
|
||||||
|
41
package-lock.json
generated
41
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@gethinode/hinode",
|
"name": "@gethinode/hinode",
|
||||||
"version": "0.21.0",
|
"version": "0.21.3",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@gethinode/hinode",
|
"name": "@gethinode/hinode",
|
||||||
"version": "0.21.0",
|
"version": "0.21.3",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@fullhuman/postcss-purgecss": "^5.0.0",
|
"@fullhuman/postcss-purgecss": "^5.0.0",
|
||||||
@@ -15,10 +15,10 @@
|
|||||||
"autoprefixer": "^10.4.16",
|
"autoprefixer": "^10.4.16",
|
||||||
"cssnano": "^6.0.1",
|
"cssnano": "^6.0.1",
|
||||||
"cssnano-preset-advanced": "^6.0.1",
|
"cssnano-preset-advanced": "^6.0.1",
|
||||||
"eslint": "^8.52.0",
|
"eslint": "^8.53.0",
|
||||||
"eslint-config-standard": "^17.1.0",
|
"eslint-config-standard": "^17.1.0",
|
||||||
"eslint-plugin-import": "^2.29.0",
|
"eslint-plugin-import": "^2.29.0",
|
||||||
"eslint-plugin-n": "^16.2.0",
|
"eslint-plugin-n": "^16.3.0",
|
||||||
"eslint-plugin-promise": "^6.1.1",
|
"eslint-plugin-promise": "^6.1.1",
|
||||||
"hugo-bin": "^0.116.3",
|
"hugo-bin": "^0.116.3",
|
||||||
"markdownlint-cli2": "^0.10.0",
|
"markdownlint-cli2": "^0.10.0",
|
||||||
@@ -33,7 +33,10 @@
|
|||||||
"stylelint-config-standard-scss": "^11.1.0"
|
"stylelint-config-standard-scss": "^11.1.0"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"fsevents": "*"
|
"@gethinode/netlify-plugin-dartsass": "^0.2.0",
|
||||||
|
"@netlify/plugin-lighthouse": "*",
|
||||||
|
"fsevents": "*",
|
||||||
|
"netlify-plugin-hugo-cache-resources": "^0.2.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@aashutoshrathi/word-wrap": {
|
"node_modules/@aashutoshrathi/word-wrap": {
|
||||||
@@ -334,9 +337,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@eslint/eslintrc": {
|
"node_modules/@eslint/eslintrc": {
|
||||||
"version": "2.1.2",
|
"version": "2.1.3",
|
||||||
"resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.3.tgz",
|
||||||
"integrity": "sha512-+wvgpDsrB1YqAMdEUCcnTlpfVBH7Vqn6A/NT3D8WVXFIaKMlErPIZT3oCIAVCOtarRpMtelZLqJeU3t7WY6X6g==",
|
"integrity": "sha512-yZzuIG+jnVu6hNSzFEN07e8BxF3uAzYtQb6uDkaYZLo6oYZDCq454c5kB8zxnzfCYyP4MIuyBn10L0DqwujTmA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ajv": "^6.12.4",
|
"ajv": "^6.12.4",
|
||||||
@@ -380,9 +383,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@eslint/js": {
|
"node_modules/@eslint/js": {
|
||||||
"version": "8.52.0",
|
"version": "8.53.0",
|
||||||
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.52.0.tgz",
|
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.53.0.tgz",
|
||||||
"integrity": "sha512-mjZVbpaeMZludF2fsWLD0Z9gCref1Tk4i9+wddjRvpUNqqcndPkBD09N/Mapey0b3jaXbLm2kICwFv2E64QinA==",
|
"integrity": "sha512-Kn7K8dx/5U6+cT1yEhpX1w4PCSg0M+XyRILPgvwcEBjerFWCwQj5sbr3/VmxqV0JGHCBCzyd6LxypEuehypY1w==",
|
||||||
"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"
|
||||||
@@ -2716,15 +2719,15 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/eslint": {
|
"node_modules/eslint": {
|
||||||
"version": "8.52.0",
|
"version": "8.53.0",
|
||||||
"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.52.0.tgz",
|
"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.53.0.tgz",
|
||||||
"integrity": "sha512-zh/JHnaixqHZsolRB/w9/02akBk9EPrOs9JwcTP2ek7yL5bVvXuRariiaAjjoJ5DvuwQ1WAE/HsMz+w17YgBCg==",
|
"integrity": "sha512-N4VuiPjXDUa4xVeV/GC/RV3hQW9Nw+Y463lkWaKKXKYMvmRiRDAtfpuPFLN+E1/6ZhyR8J2ig+eVREnYgUsiag==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@eslint-community/eslint-utils": "^4.2.0",
|
"@eslint-community/eslint-utils": "^4.2.0",
|
||||||
"@eslint-community/regexpp": "^4.6.1",
|
"@eslint-community/regexpp": "^4.6.1",
|
||||||
"@eslint/eslintrc": "^2.1.2",
|
"@eslint/eslintrc": "^2.1.3",
|
||||||
"@eslint/js": "8.52.0",
|
"@eslint/js": "8.53.0",
|
||||||
"@humanwhocodes/config-array": "^0.11.13",
|
"@humanwhocodes/config-array": "^0.11.13",
|
||||||
"@humanwhocodes/module-importer": "^1.0.1",
|
"@humanwhocodes/module-importer": "^1.0.1",
|
||||||
"@nodelib/fs.walk": "^1.2.8",
|
"@nodelib/fs.walk": "^1.2.8",
|
||||||
@@ -2935,9 +2938,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/eslint-plugin-n": {
|
"node_modules/eslint-plugin-n": {
|
||||||
"version": "16.2.0",
|
"version": "16.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/eslint-plugin-n/-/eslint-plugin-n-16.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/eslint-plugin-n/-/eslint-plugin-n-16.3.0.tgz",
|
||||||
"integrity": "sha512-AQER2jEyQOt1LG6JkGJCCIFotzmlcCZFur2wdKrp1JX2cNotC7Ae0BcD/4lLv3lUAArM9uNS8z/fsvXTd0L71g==",
|
"integrity": "sha512-/XZLH5CUXGK3laz3xYFNza8ZxLCq8ZNW6MsVw5z3d5hc2AwZzi0fPiySFZHQTdVDOHGs2cGv91aqzWmgBdq2gQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@eslint-community/eslint-utils": "^4.4.0",
|
"@eslint-community/eslint-utils": "^4.4.0",
|
||||||
|
11
package.json
11
package.json
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@gethinode/hinode",
|
"name": "@gethinode/hinode",
|
||||||
"version": "0.21.0",
|
"version": "0.21.3",
|
||||||
"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",
|
||||||
@@ -73,10 +73,10 @@
|
|||||||
"autoprefixer": "^10.4.16",
|
"autoprefixer": "^10.4.16",
|
||||||
"cssnano": "^6.0.1",
|
"cssnano": "^6.0.1",
|
||||||
"cssnano-preset-advanced": "^6.0.1",
|
"cssnano-preset-advanced": "^6.0.1",
|
||||||
"eslint": "^8.52.0",
|
"eslint": "^8.53.0",
|
||||||
"eslint-config-standard": "^17.1.0",
|
"eslint-config-standard": "^17.1.0",
|
||||||
"eslint-plugin-import": "^2.29.0",
|
"eslint-plugin-import": "^2.29.0",
|
||||||
"eslint-plugin-n": "^16.2.0",
|
"eslint-plugin-n": "^16.3.0",
|
||||||
"eslint-plugin-promise": "^6.1.1",
|
"eslint-plugin-promise": "^6.1.1",
|
||||||
"hugo-bin": "^0.116.3",
|
"hugo-bin": "^0.116.3",
|
||||||
"markdownlint-cli2": "^0.10.0",
|
"markdownlint-cli2": "^0.10.0",
|
||||||
@@ -91,7 +91,10 @@
|
|||||||
"stylelint-config-standard-scss": "^11.1.0"
|
"stylelint-config-standard-scss": "^11.1.0"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"fsevents": "*"
|
"@gethinode/netlify-plugin-dartsass": "^0.2.0",
|
||||||
|
"@netlify/plugin-lighthouse": "*",
|
||||||
|
"fsevents": "*",
|
||||||
|
"netlify-plugin-hugo-cache-resources": "^0.2.1"
|
||||||
},
|
},
|
||||||
"hugo-bin": {
|
"hugo-bin": {
|
||||||
"buildTags": "extended"
|
"buildTags": "extended"
|
||||||
|
Reference in New Issue
Block a user