Compare commits

...

15 Commits

Author SHA1 Message Date
Mark Dumay
67f1708691 Merge pull request #227 from gethinode/develop
Release v0.12.0
2023-04-25 16:48:00 +02:00
Mark Dumay
c5e5ec0f21 Merge branch 'main' into develop 2023-04-25 16:42:28 +02:00
mark
d461333738 Bump dependencies 2023-04-25 16:37:28 +02:00
mark
32c422a2a8 Bump release version 2023-04-25 16:36:49 +02:00
github-actions[bot]
b66660b557 Merge pull request #225 from gethinode/dependabot/npm_and_yarn/stylelint-config-standard-scss-9.0.0
Bump stylelint-config-standard-scss from 8.0.0 to 9.0.0
2023-04-25 14:09:00 +00:00
dependabot[bot]
be95c3cd68 Bump stylelint-config-standard-scss from 8.0.0 to 9.0.0
Bumps [stylelint-config-standard-scss](https://github.com/stylelint-scss/stylelint-config-standard-scss) from 8.0.0 to 9.0.0.
- [Release notes](https://github.com/stylelint-scss/stylelint-config-standard-scss/releases)
- [Changelog](https://github.com/stylelint-scss/stylelint-config-standard-scss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/stylelint-scss/stylelint-config-standard-scss/compare/v8.0.0...v9.0.0)

---
updated-dependencies:
- dependency-name: stylelint-config-standard-scss
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-25 14:04:29 +00:00
mark
74aa32e595 Move partials to assets folder 2023-04-25 15:58:45 +02:00
mark
4c305b38a5 Improve partial error messages 2023-04-25 15:31:36 +02:00
mark
63c609c1d3 Improve configurability of nav partial 2023-04-25 15:24:23 +02:00
mark
d7424d26eb Update i18n keywords 2023-04-25 13:22:57 +02:00
mark
1f66740c19 Refine minimal layout 2023-04-25 13:15:40 +02:00
github-actions[bot]
cb032b4fb8 Merge pull request #224 from gethinode/dependabot/npm_and_yarn/eslint-8.39.0
Bump eslint from 8.38.0 to 8.39.0
2023-04-24 14:21:22 +00:00
dependabot[bot]
3889382e19 Bump eslint from 8.38.0 to 8.39.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.38.0 to 8.39.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.38.0...v8.39.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-24 14:17:25 +00:00
github-actions[bot]
86addfd6dd Merge pull request #223 from gethinode/dependabot/npm_and_yarn/stylelint-15.6.0
Bump stylelint from 15.5.0 to 15.6.0
2023-04-24 14:16:22 +00:00
dependabot[bot]
9110fb5ab4 Bump stylelint from 15.5.0 to 15.6.0
Bumps [stylelint](https://github.com/stylelint/stylelint) from 15.5.0 to 15.6.0.
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/stylelint/stylelint/compare/15.5.0...15.6.0)

---
updated-dependencies:
- dependency-name: stylelint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-24 14:12:08 +00:00
23 changed files with 245 additions and 155 deletions

View File

@@ -27,8 +27,14 @@
translation: "Next Post" translation: "Next Post"
- id: recentProjects - id: recentProjects
translation: "Projects" translation: "Projects"
- id: moreFeatures
translation: "More Features"
- id: moreGuides
translation: "More Guides"
- id: moreProjects - id: moreProjects
translation: "More Projects" translation: "More Projects"
- id: moreUsers
translation: "More Users"
- id: read - id: read
translation: "read" translation: "read"
- id: minutesShort - id: minutesShort
@@ -65,6 +71,8 @@
translation: "Auto" translation: "Auto"
- id: toggleMainNav - id: toggleMainNav
translation: "Toggle main navigation" translation: "Toggle main navigation"
- id: demo
translation: "Demo"
# 404 page # 404 page
- id: pageNotFound - id: pageNotFound

View File

@@ -1,5 +1,5 @@
{{- define "partials/header.html" -}} {{- define "partials/header.html" -}}
{{ if site.Params.navigation.breadcrumb }}{{ partial "breadcrumb.html" . }}{{ end -}} {{ if site.Params.navigation.breadcrumb }}{{ partial "assets/breadcrumb.html" . }}{{ end -}}
{{ if in (slice "docs" "minimal") .Layout }} {{ if in (slice "docs" "minimal") .Layout }}
{{ with .Title }}<p class="display-4 mt-5">{{ . }}</p>{{ end }} {{ with .Title }}<p class="display-4 mt-5">{{ . }}</p>{{ end }}
{{ else }} {{ else }}
@@ -32,7 +32,7 @@
{{ end -}} {{ end -}}
{{ define "partials/body.html" -}} {{ define "partials/body.html" -}}
{{ if eq .Layout "docs"}} {{ if in (slice "docs" "minimal") .Layout }}
<p class="lead mb-5">{{ .Description }}</p> <p class="lead mb-5">{{ .Description }}</p>
{{ .Content }} {{ .Content }}
{{ else }} {{ else }}
@@ -40,18 +40,18 @@
{{ if .Params.thumbnail -}} {{ if .Params.thumbnail -}}
{{- $credits := "" -}} {{- $credits := "" -}}
{{- if .Params.photoCredits }}{{ if .Params.PhotoSource }}{{ $credits = printf "%s %s %s %s" (T "photoBy") .Params.photoCredits (T "photoOn") .Params.PhotoSource }}{{ end }}{{ end -}} {{- if .Params.photoCredits }}{{ if .Params.PhotoSource }}{{ $credits = printf "%s %s %s %s" (T "photoBy") .Params.photoCredits (T "photoOn") .Params.PhotoSource }}{{ end }}{{ end -}}
{{- partial "image.html" (dict "url" .Params.thumbnail "ratio" "21x9" "outerClass" "img-wrap" "innerClass" "rounded" "title" .Params.title "caption" $credits) -}} {{- partial "assets/image.html" (dict "url" .Params.thumbnail "ratio" "21x9" "outerClass" "img-wrap" "innerClass" "rounded" "title" .Params.title "caption" $credits) -}}
{{ end -}} {{ end -}}
{{ .Content }} {{ .Content }}
{{ end }} {{ end }}
{{ end -}} {{ end -}}
{{ define "partials/footer.html" -}} {{ define "partials/footer.html" -}}
{{ if eq .Layout "docs"}} {{ if eq .Layout "docs" }}
<div class="mt-5 small"> <div class="mt-5 small">
{{ partial "utilities/git.html" . }} {{ partial "utilities/git.html" . }}
</div> </div>
{{ else }} {{ else if ne .Layout "minimal" }}
<div class="row row-cols-2 mt-5 mb-3"> <div class="row row-cols-2 mt-5 mb-3">
<div class="col"> <div class="col">
{{ with .NextInSection -}} {{ with .NextInSection -}}

View File

@@ -19,7 +19,7 @@
{{ $title := trim .title " \r\n" -}} {{ $title := trim .title " \r\n" -}}
{{ if not $title -}} {{ if not $title -}}
{{ errorf "Missing element title" -}} {{ errorf "partial [assets/button.html] - Missing element title" -}}
{{ end -}} {{ end -}}
{{ $id := .id }} {{ $id := .id }}
@@ -28,21 +28,21 @@
{{ with .state }}{{ $state = . }}{{ end -}} {{ with .state }}{{ $state = . }}{{ end -}}
{{ $supportedStates := slice "enabled" "disabled" "active" "inactive" -}} {{ $supportedStates := slice "enabled" "disabled" "active" "inactive" -}}
{{ if not (in $supportedStates $state) -}} {{ if not (in $supportedStates $state) -}}
{{ errorf "Invalid value for param 'state': %s" $state -}} {{ errorf "partial [assets/button.html] - Invalid value for param 'state': %s" $state -}}
{{ end -}} {{ end -}}
{{ $size := "md" -}} {{ $size := "md" -}}
{{ with .size }}{{ $size = . }}{{ end -}} {{ with .size }}{{ $size = . }}{{ end -}}
{{ $supportedSizes := slice "sm" "md" "lg" -}} {{ $supportedSizes := slice "sm" "md" "lg" -}}
{{ if not (in $supportedSizes $size) -}} {{ if not (in $supportedSizes $size) -}}
{{ errorf "Invalid value for param 'size': %s" $size -}} {{ errorf "partial [assets/button.html] - Invalid value for param 'size': %s" $size -}}
{{ end -}} {{ end -}}
{{ $color := "primary" -}} {{ $color := "primary" -}}
{{ with .color }}{{ $color = . }}{{ end -}} {{ with .color }}{{ $color = . }}{{ end -}}
{{ $supportedColors := slice "primary" "secondary" "success" "danger" "warning" "info" "light" "dark" "white" "black" -}} {{ $supportedColors := slice "primary" "secondary" "success" "danger" "warning" "info" "light" "dark" "white" "black" -}}
{{ if not (in $supportedColors $color) -}} {{ if not (in $supportedColors $color) -}}
{{ errorf "Invalid value for param 'color': %s" $color -}} {{ errorf "partial [assets/button.html] - Invalid value for param 'color': %s" $color -}}
{{ end -}} {{ end -}}
{{ $outline := false -}} {{ $outline := false -}}
@@ -68,7 +68,7 @@
{{ if $tooltip -}} {{ if $tooltip -}}
{{ if $collapse -}} {{ if $collapse -}}
{{ errorf "Cannot use tooltip and collapse at the same time" -}} {{ errorf "partial [assets/button.html] - Cannot use tooltip and collapse at the same time" -}}
{{ end -}} {{ end -}}
{{ end -}} {{ end -}}
@@ -76,14 +76,14 @@
{{ with .type }}{{ $type = . }}{{ end -}} {{ with .type }}{{ $type = . }}{{ end -}}
{{ $supportedTypes := slice "button" "link" -}} {{ $supportedTypes := slice "button" "link" -}}
{{ if not (in $supportedTypes $type) -}} {{ if not (in $supportedTypes $type) -}}
{{ errorf "Invalid value for param 'type': %s" $type -}} {{ errorf "partial [assets/button.html] - Invalid value for param 'type': %s" $type -}}
{{ end -}} {{ end -}}
{{ $placement := "top" -}} {{ $placement := "top" -}}
{{ with .placement }}{{ $placement = . }}{{ end -}} {{ with .placement }}{{ $placement = . }}{{ end -}}
{{ $supportedPlacements := slice "top" "bottom" "left" "right" -}} {{ $supportedPlacements := slice "top" "bottom" "left" "right" -}}
{{ if not (in $supportedPlacements $placement) -}} {{ if not (in $supportedPlacements $placement) -}}
{{ errorf "Invalid value for param 'placement': %s" $placement -}} {{ errorf "partial [assets/button.html] - Invalid value for param 'placement': %s" $placement -}}
{{ end -}} {{ end -}}
<a {{ if ne $state "disabled" }}{{ with $href }}href="{{ . }}"{{ end }}{{ end }} <a {{ if ne $state "disabled" }}{{ with $href }}href="{{ . }}"{{ end }}{{ end }}

View File

@@ -31,26 +31,26 @@
{{- $page := .page -}} {{- $page := .page -}}
{{- if ne (printf "%T" $page) "*hugolib.pageState" -}} {{- if ne (printf "%T" $page) "*hugolib.pageState" -}}
{{- errorf "Invalid value for param 'page'" -}} {{- errorf "partial [assets/card-group.html] - Invalid value for param 'page'" -}}
{{- end -}} {{- end -}}
{{- $supportedTypes := slice "page.Pages" "resource.Resources" -}} {{- $supportedTypes := slice "page.Pages" "resource.Resources" -}}
{{ $list := .list }} {{ $list := .list }}
{{- if not (in $supportedTypes (printf "%T" $list)) -}} {{- if not (in $supportedTypes (printf "%T" $list)) -}}
{{ warnf "Type: %T" $list }} {{ warnf "Type: %T" $list }}
{{- errorf "Card-group - Invalid value for param 'list'" -}} {{- errorf "partial [assets/card-group.html] - Invalid value for param 'list'" -}}
{{- end -}} {{- end -}}
{{- $count := len $list -}} {{- $count := len $list -}}
{{- $max := .max -}} {{- $max := .max -}}
{{- if ne (printf "%T" $max) "int" -}} {{- if ne (printf "%T" $max) "int" -}}
{{- errorf "Invalid value for param 'max'" -}} {{- errorf "partial [assets/card-group.html] - Invalid value for param 'max'" -}}
{{- end -}} {{- end -}}
{{- $max = math.Min $max $count -}} {{- $max = math.Min $max $count -}}
{{- $cols := .cols -}} {{- $cols := .cols -}}
{{- if or (lt $cols 1) (gt $cols 5) -}} {{- if or (lt $cols 1) (gt $cols 5) -}}
{{- errorf "Invalid value for param 'cols': %d" $cols -}} {{- errorf "partial [assets/card-group.html] - Invalid value for param 'cols': %d" $cols -}}
{{- end -}} {{- end -}}
{{- $colGrid := "row-cols-1" -}} {{- $colGrid := "row-cols-1" -}}
{{- if eq $cols 2 }}{{ $colGrid = "row-cols-1 row-cols-sm-1 row-cols-md-2" -}} {{- if eq $cols 2 }}{{ $colGrid = "row-cols-1 row-cols-sm-1 row-cols-md-2" -}}
@@ -63,7 +63,7 @@
{{- $paginate := false -}} {{- $paginate := false -}}
{{- with .paginate -}} {{- with .paginate -}}
{{- if ne (printf "%T" .) "bool" -}} {{- if ne (printf "%T" .) "bool" -}}
{{- errorf "Invalid value for param 'paginate'" -}} {{- errorf "partial [assets/card-group.html] - Invalid value for param 'paginate'" -}}
{{- end -}} {{- end -}}
{{- $paginate = . -}} {{- $paginate = . -}}
{{- end -}} {{- end -}}
@@ -77,7 +77,7 @@
{{- $separator := false -}} {{- $separator := false -}}
{{- with .separator -}} {{- with .separator -}}
{{- if ne (printf "%T" .) "bool" -}} {{- if ne (printf "%T" .) "bool" -}}
{{- errorf "Invalid value for param 'separator'" -}} {{- errorf "partial [assets/card-group.html] - Invalid value for param 'separator'" -}}
{{- end -}} {{- end -}}
{{- $separator = . -}} {{- $separator = . -}}
{{- end -}} {{- end -}}

View File

@@ -69,7 +69,7 @@
{{- if .path }} {{- if .path }}
{{- $page = site.GetPage .path }} {{- $page = site.GetPage .path }}
{{- if not $page }} {{- if not $page }}
{{- errorf "Cannot find page: %s" .path -}} {{- errorf "partial [assets/card.html] - Cannot find page: %s" .path -}}
{{- end }} {{- end }}
{{- end }} {{- end }}
@@ -84,7 +84,7 @@
{{- if $color -}} {{- if $color -}}
{{- $supportedColors := slice "primary" "secondary" "success" "danger" "warning" "info" "light" "dark" "white" "black" "body" "body-tertiary" -}} {{- $supportedColors := slice "primary" "secondary" "success" "danger" "warning" "info" "light" "dark" "white" "black" "body" "body-tertiary" -}}
{{- if not (in $supportedColors $color) -}} {{- if not (in $supportedColors $color) -}}
{{- errorf "Invalid value for param 'color': %s" $color -}} {{- errorf "partial [assets/card.html] - Invalid value for param 'color': %s" $color -}}
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}
@@ -92,13 +92,13 @@
{{- with .header }}{{ $header = . }}{{ end -}} {{- with .header }}{{ $header = . }}{{ end -}}
{{- $supportedKeywords := slice "full" "publication" "tags" "none" -}} {{- $supportedKeywords := slice "full" "publication" "tags" "none" -}}
{{- if not (in $supportedKeywords $header) -}} {{- if not (in $supportedKeywords $header) -}}
{{- errorf "Invalid value for param 'header': %s" $header -}} {{- errorf "partial [assets/card.html] - Invalid value for param 'header': %s" $header -}}
{{- end -}} {{- end -}}
{{- $footer := "none" -}} {{- $footer := "none" -}}
{{- with .footer }}{{ $footer = . }}{{ end -}} {{- with .footer }}{{ $footer = . }}{{ end -}}
{{- if not (in $supportedKeywords $footer) -}} {{- if not (in $supportedKeywords $footer) -}}
{{- errorf "Invalid value for param 'footer': %s" $footer -}} {{- errorf "partial [assets/card.html] - Invalid value for param 'footer': %s" $footer -}}
{{- end -}} {{- end -}}
{{- with $page -}} {{- with $page -}}
@@ -110,7 +110,7 @@
{{- end -}} {{- end -}}
{{- if not $href -}} {{- if not $href -}}
{{- errorf "Missing value for param 'href'" -}} {{- errorf "partial [assets/card.html] - Missing value for param 'href'" -}}
{{- end -}} {{- end -}}
{{- $class := .class -}} {{- $class := .class -}}
@@ -119,14 +119,14 @@
{{- with .padding }}{{ $padding = . }}{{ end -}} {{- with .padding }}{{ $padding = . }}{{ end -}}
{{- $supportedPaddings := slice "0" "1" "2" "3" "4" "5" "auto" -}} {{- $supportedPaddings := slice "0" "1" "2" "3" "4" "5" "auto" -}}
{{- if not (in $supportedPaddings $padding) -}} {{- if not (in $supportedPaddings $padding) -}}
{{- errorf "Invalid value for param 'padding': %s" $padding -}} {{- errorf "partial [assets/card.html] - Invalid value for param 'padding': %s" $padding -}}
{{- end -}} {{- end -}}
{{- $orientation := "stacked" -}} {{- $orientation := "stacked" -}}
{{- with .orientation }}{{ $orientation = . }}{{ end -}} {{- with .orientation }}{{ $orientation = . }}{{ end -}}
{{- $supportedOrientations := slice "stacked" "horizontal" "none" -}} {{- $supportedOrientations := slice "stacked" "horizontal" "none" -}}
{{- if not (in $supportedOrientations $orientation) -}} {{- if not (in $supportedOrientations $orientation) -}}
{{- errorf "Invalid value for param 'orientation': %s" $orientation -}} {{- errorf "partial [assets/card.html] - Invalid value for param 'orientation': %s" $orientation -}}
{{- end -}} {{- end -}}
{{- if eq $orientation "none" }}{{ $thumbnail = "" }}{{ $icon = "" }}{{ end -}} {{- if eq $orientation "none" }}{{ $thumbnail = "" }}{{ $icon = "" }}{{ end -}}
@@ -135,7 +135,7 @@
<div class="row g-0"> <div class="row g-0">
<div class="col-4"> <div class="col-4">
{{- if $thumbnail -}} {{- if $thumbnail -}}
{{- partial "image.html" (dict "url" $thumbnail "ratio" "1x1" "outerClass" "h-100 card-img-wrap" "innerClass" "rounded-start card-img-h100" "title" $title) -}} {{- partial "assets/image.html" (dict "url" $thumbnail "ratio" "1x1" "outerClass" "h-100 card-img-wrap" "innerClass" "rounded-start card-img-h100" "title" $title) -}}
{{- else if $icon -}} {{- else if $icon -}}
<div class="pt-{{ $padding }} ps-{{ $padding }} pe-{{ $padding }}"> <div class="pt-{{ $padding }} ps-{{ $padding }} pe-{{ $padding }}">
{{- partial "assets/icon.html" (dict "icon" (printf "%s fa-4x text-secondary" $icon)) -}} {{- partial "assets/icon.html" (dict "icon" (printf "%s fa-4x text-secondary" $icon)) -}}
@@ -156,7 +156,7 @@
{{- else -}} {{- else -}}
<div class="card {{ with $color }}bg-{{ . }} text-bg-{{ . }}{{ end }} {{ $class }}"> <div class="card {{ with $color }}bg-{{ . }} text-bg-{{ . }}{{ end }} {{ $class }}">
{{- if $thumbnail -}} {{- if $thumbnail -}}
{{- partial "image.html" (dict "url" $thumbnail "ratio" "16x9" "outerClass" "card-img-wrap" "innerClass" "card-img-top" "title" $title) -}} {{- partial "assets/image.html" (dict "url" $thumbnail "ratio" "16x9" "outerClass" "card-img-wrap" "innerClass" "card-img-top" "title" $title) -}}
{{- else if $icon -}} {{- else if $icon -}}
<div class="pt-{{ $padding }} ps-{{ $padding }} pe-{{ $padding }}"> <div class="pt-{{ $padding }} ps-{{ $padding }} pe-{{ $padding }}">
{{- partial "assets/icon.html" (dict "icon" (printf "%s fa-4x text-secondary" $icon)) -}} {{- partial "assets/icon.html" (dict "icon" (printf "%s fa-4x text-secondary" $icon)) -}}

View File

@@ -1,6 +1,6 @@
{{- $icon := .icon -}} {{- $icon := .icon -}}
{{- if not $icon -}} {{- if not $icon -}}
{{- errorf "Expected value for param 'icon'" -}} {{- errorf "partial [assets/icon.html] - Expected value for param 'icon'" -}}
{{- end -}} {{- end -}}
{{- $icon_class := split $icon " " -}} {{- $icon_class := split $icon " " -}}
@@ -12,5 +12,5 @@
{{- else if eq (index $icon_class 0) "fa" -}} {{- else if eq (index $icon_class 0) "fa" -}}
<i class="fa-regular fa-{{ $attr }}"></i> <i class="fa-regular fa-{{ $attr }}"></i>
{{- else -}} {{- else -}}
{{- errorf "Unrecognized icon class: %s" $icon_class -}} {{- errorf "partial [assets/icon.html] - Unrecognized icon class: %s" $icon_class -}}
{{- end -}} {{- end -}}

View File

@@ -26,7 +26,7 @@
{{- $title := .title -}} {{- $title := .title -}}
{{- $caption := .caption -}} {{- $caption := .caption -}}
{{- if ne (printf "%T" $mode) "bool" -}} {{- if ne (printf "%T" $mode) "bool" -}}
{{- errorf "Invalid value for param 'mode'" -}} {{- errorf "partial [assets/image.html] - Invalid value for param 'mode'" -}}
{{- end -}} {{- end -}}
{{- $modes := site.Params.main.modes | default (slice "light" "dark") -}} {{- $modes := site.Params.main.modes | default (slice "light" "dark") -}}

View File

@@ -28,7 +28,7 @@
{{- $thumbnail := .thumbnail -}} {{- $thumbnail := .thumbnail -}}
{{- $style := .style -}} {{- $style := .style -}}
{{- $mode := .mode -}} {{- $mode := .mode -}}
{{- partial "image.html" (dict "url" $thumbnail "outerClass" $style "mode" $mode) -}} {{- partial "assets/image.html" (dict "url" $thumbnail "outerClass" $style "mode" $mode) -}}
{{- end -}} {{- end -}}
{{- $page := .page -}} {{- $page := .page -}}

View File

@@ -3,10 +3,12 @@
supports the following arguments: supports the following arguments:
"page" Required context of the current page. "page" Required context of the current page.
"list" Required array of pages. "list" Required array of pages.
"title" Optional title of the card group. "title" Optional title of the tab group.
"type" Optional type of the tab group, either "tabs", "pills", or "underline". "type" Optional type of the tab group, either "tabs", "pills" (default), or "underline".
"vertical" Optional flag to show vertical tabs instead of horizontal tabs (default). "vertical" Optional flag to show vertical tabs instead of horizontal tabs (default).
"class": Optional class attribute of the tab group, e.g. “nav-fill”. "class" Optional class attribute of the tab group, e.g. “nav-fill”.
"pane" Optional style of the panes, either "none" (default) or "persona".
"width" Optional responsive width of the tab group, either "50" or "100" (default).
In addition, the following arguments are passed to the individual tabs. In addition, the following arguments are passed to the individual tabs.
"class" Optional class attribute of the tab element, e.g. “w-50”. "class" Optional class attribute of the tab element, e.g. “w-50”.
@@ -16,7 +18,7 @@
{{- $page := .page -}} {{- $page := .page -}}
{{- if ne (printf "%T" $page) "*hugolib.pageState" -}} {{- if ne (printf "%T" $page) "*hugolib.pageState" -}}
{{- errorf "Invalid value for param 'page'" -}} {{- errorf "partial [assets/nav.html] - Invalid value for param 'page'" -}}
{{- end -}} {{- end -}}
{{- $id := "0" -}} {{- $id := "0" -}}
@@ -24,21 +26,58 @@
{{ $id = . }} {{ $id = . }}
{{ end }} {{ end }}
{{- $supportedTypes := slice "page.Pages" "resource.Resources" -}}
{{ $list := .list }} {{ $list := .list }}
{{- if ne (printf "%T" $list) "resource.Resources" -}} {{- if not (in $supportedTypes (printf "%T" $list)) -}}
{{- errorf "Invalid value for param 'list'" -}} {{- errorf "partial [assets/nav.html] - Invalid value for param 'list'" -}}
{{- end -}} {{- end -}}
{{ $pane := "none" }}
{{ with .pane }}
{{- $supportedPanes := slice "none" "persona" -}}
{{- $pane = . }}
{{- if not (in $supportedPanes $pane) -}}
{{- errorf "partial [assets/nav.html] - Invalid value for param 'pane'" -}}
{{- end -}}
{{ end }}
{{ $supportedWidths := slice 50 100 -}}
{{ $widthParam := 100 -}}
{{ $width := 100 }}
{{ with .width }}{{ $widthParam = . }}{{ end -}}
{{ if in $supportedWidths $widthParam -}}
{{ $width = int $widthParam }}
{{ else -}}
{{ errorf "partial [assets/nav.html] - Invalid value for param 'width': %s" $widthParam -}}
{{ end -}}
{{- $title := .title -}} {{- $title := .title -}}
{{- $class := .class -}} {{- $class := .class -}}
{{- $color := .color -}} {{- $color := .color -}}
{{ $supportedFlags := slice "true" "false" -}}
{{ $verticalParam := "false" -}}
{{ $vertical := false }} {{ $vertical := false }}
{{ with .vertical }}{{ $verticalParam = . }}{{ end -}}
{{ if in $supportedFlags $verticalParam -}}
{{ if eq $verticalParam "true" }}{{ $vertical = true }}{{ else }}{{ $vertical = false }}{{ end -}}
{{ else -}}
{{ errorf "partial [assets/nav.html] - Invalid value for param 'vertical': %s" $verticalParam -}}
{{ end -}}
{{ $type := "pills" }} {{ $type := "pills" }}
{{ with .type }}
{{ $type = . -}}
{{ $supportedNavTypes := slice "tabs" "pills" "underline" -}}
{{ if $type }}
{{ if not (in $supportedNavTypes $type) -}}
{{ errorf "partial [assets/nav.html] - Invalid value for param 'type': %s" $type -}}
{{ end -}}
{{ end -}}
{{ end -}}
{{ with $title }}<p class="display-4 pt-5{{ if and page.IsHome site.Params.home.centerHeadline }} text-center{{ end }}">{{ . }}</p>{{ end }} {{ with $title }}<p class="display-4 pt-5{{ if and page.IsHome site.Params.home.centerHeadline }} text-center{{ end }}">{{ . }}</p>{{ end }}
<div class="col-sm-12 col-md-10 col-lg-8 col-xl-6 mx-auto pt-5 pb-5"> <div class="{{ if eq $width 50 }}col-sm-12 col-md-10 col-lg-8 col-xl-6{{ else }}col-12{{ end }} mx-auto pt-5 pb-5">
{{ if $vertical }}<div class="d-flex align-items-start">{{ end }} {{ if $vertical }}<div class="d-flex align-items-start">{{ end }}
<div class="nav{{ with $type }} nav-{{ . }}{{ end }}{{ with $class }} {{ . }}{{ end }}{{ if $vertical }} flex-column{{ end }}" id="nav-{{ $id }}" role="tablist"{{ if $vertical }} aria-orientation="vertical"{{ end }}> <div class="nav{{ with $type }} nav-{{ . }}{{ end }}{{ with $class }} {{ . }}{{ end }}{{ if $vertical }} flex-column{{ end }}" id="nav-{{ $id }}" role="tablist"{{ if $vertical }} aria-orientation="vertical"{{ end }}>
{{- range $index, $item := $list -}} {{- range $index, $item := $list -}}
@@ -56,13 +95,17 @@
{{ $body := $item.Content }} {{ $body := $item.Content }}
{{ $show := eq $index 0}} {{ $show := eq $index 0}}
<div class="tab-pane{{ if $show }} active{{ end }}" id="nav-{{ $id }}-{{ $index }}" role="tabpanel" aria-labelledby="{{ $id }}-btn-{{ $index }}" tabindex="0"> <div class="tab-pane{{ if $show }} active{{ end }}" id="nav-{{ $id }}-{{ $index }}" role="tabpanel" aria-labelledby="{{ $id }}-btn-{{ $index }}" tabindex="0">
{{- if eq $pane "persona" -}}
{{- partial "assets/persona.html" (dict {{- partial "assets/persona.html" (dict
"title" $item.Title "title" $item.Title
"class" $class "class" $class
"color" $color "color" $color
"content" $item.Content "content" (or $item.Description $item.Content)
"thumbnail" $item.Params.Thumbnail "thumbnail" $item.Params.Thumbnail
) -}} ) -}}
{{- else -}}
{{- (or $item.Description $item.Content) -}}
{{- end -}}
</div> </div>
{{ end }} {{ end }}
</div> </div>

View File

@@ -55,21 +55,21 @@
{{- $page := .page -}} {{- $page := .page -}}
{{- if not $page -}} {{- if not $page -}}
{{- errorf "Missing value for param 'page'" -}} {{- errorf "partial [assets/navbar.html] - Missing value for param 'page'" -}}
{{- end -}} {{- end -}}
{{- $menuName := "main" }} {{- $menuName := "main" }}
{{- with .menus }}{{ $menuName = .}}{{ end -}} {{- with .menus }}{{ $menuName = .}}{{ end -}}
{{- $menus := index site.Menus $menuName -}} {{- $menus := index site.Menus $menuName -}}
{{- if or (ne (printf "%T" $menus) "navigation.Menu") (ne (index $menus 0).Menu $menuName) -}} {{- if or (ne (printf "%T" $menus) "navigation.Menu") (ne (index $menus 0).Menu $menuName) -}}
{{- errorf "Invalid value for param 'menus': %s" $menuName -}} {{- errorf "partial [assets/navbar.html] - Invalid value for param 'menus': %s" $menuName -}}
{{- end -}} {{- end -}}
{{- $size := "md" -}} {{- $size := "md" -}}
{{- with .size }}{{ $size = . }}{{ end -}} {{- with .size }}{{ $size = . }}{{ end -}}
{{- $supportedSizes := slice "xs" "sm" "md" "lg" "xl" -}} {{- $supportedSizes := slice "xs" "sm" "md" "lg" "xl" -}}
{{- if not (in $supportedSizes $size) -}} {{- if not (in $supportedSizes $size) -}}
{{- errorf "Invalid value for param 'size': %s" $size -}} {{- errorf "partial [assets/navbar.html] - Invalid value for param 'size': %s" $size -}}
{{- end -}} {{- end -}}
{{- $fixedParam := "false" -}} {{- $fixedParam := "false" -}}
@@ -78,7 +78,7 @@
{{- if in $supportedFlags $fixedParam -}} {{- if in $supportedFlags $fixedParam -}}
{{- if eq $fixedParam "true" }}{{ $fixed = true }}{{ else }}{{ $fixed = false }}{{ end -}} {{- if eq $fixedParam "true" }}{{ $fixed = true }}{{ else }}{{ $fixed = false }}{{ end -}}
{{- else -}} {{- else -}}
{{- errorf "Invalid value for param 'fixed': %s" $fixedParam -}} {{- errorf "partial [assets/navbar.html] - Invalid value for param 'fixed': %s" $fixedParam -}}
{{- end -}} {{- end -}}
{{- $color := "" -}} {{- $color := "" -}}
@@ -86,7 +86,7 @@
{{- $color = . -}} {{- $color = . -}}
{{- $supportedColors := slice "primary" "secondary" "success" "danger" "warning" "info" "light" "dark" "white" "black" "body" "body-tertiary" -}} {{- $supportedColors := slice "primary" "secondary" "success" "danger" "warning" "info" "light" "dark" "white" "black" "body" "body-tertiary" -}}
{{- if not (in $supportedColors $color) -}} {{- if not (in $supportedColors $color) -}}
{{- errorf "Invalid value for param 'color': %s" $color -}} {{- errorf "partial [assets/navbar.html] - Invalid value for param 'color': %s" $color -}}
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}
@@ -96,7 +96,7 @@
{{- if in $supportedFlags $searchParam -}} {{- if in $supportedFlags $searchParam -}}
{{- if eq $searchParam "true" }}{{ $search = true }}{{ else }}{{ $search = false }}{{ end -}} {{- if eq $searchParam "true" }}{{ $search = true }}{{ else }}{{ $search = false }}{{ end -}}
{{- else -}} {{- else -}}
{{- errorf "Invalid value for param 'search': %s" $searchParam -}} {{- errorf "partial [assets/navbar.html] - Invalid value for param 'search': %s" $searchParam -}}
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}
@@ -106,7 +106,7 @@
{{- if in $supportedFlags $darkModeParam -}} {{- if in $supportedFlags $darkModeParam -}}
{{- if eq $darkModeParam "true" }}{{ $enableDarkMode = site.Params.main.enableDarkMode }}{{ else }}{{ $enableDarkMode = false }}{{ end -}} {{- if eq $darkModeParam "true" }}{{ $enableDarkMode = site.Params.main.enableDarkMode }}{{ else }}{{ $enableDarkMode = false }}{{ end -}}
{{- else -}} {{- else -}}
{{- errorf "Invalid value for param 'darkMode': %s" $darkModeParam -}} {{- errorf "partial [assets/navbar.html] - Invalid value for param 'darkMode': %s" $darkModeParam -}}
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}

View File

@@ -29,7 +29,7 @@
{{- if .path }} {{- if .path }}
{{- $page = site.GetPage .path }} {{- $page = site.GetPage .path }}
{{- if not $page }} {{- if not $page }}
{{- errorf "Cannot find page: %s" .path -}} {{- errorf "partial [assets/persona.html] - Cannot find page: %s" .path -}}
{{- end }} {{- end }}
{{- end }} {{- end }}
@@ -43,7 +43,7 @@
{{- if $color -}} {{- if $color -}}
{{- $supportedColors := slice "primary" "secondary" "success" "danger" "warning" "info" "light" "dark" "white" "black" "body" "body-tertiary" -}} {{- $supportedColors := slice "primary" "secondary" "success" "danger" "warning" "info" "light" "dark" "white" "black" "body" "body-tertiary" -}}
{{- if not (in $supportedColors $color) -}} {{- if not (in $supportedColors $color) -}}
{{- errorf "Invalid value for param 'color': %s" $color -}} {{- errorf "partial [assets/persona.html] - Invalid value for param 'color': %s" $color -}}
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}
@@ -61,7 +61,7 @@
<div class="col-2"> <div class="col-2">
<div class="position-absolute top-50 start-0 translate-middle-y col-4 ps-3"> <div class="position-absolute top-50 start-0 translate-middle-y col-4 ps-3">
{{- if $thumbnail -}} {{- if $thumbnail -}}
{{- partial "image.html" (dict "url" $thumbnail "ratio" "1x1" "innerClass" "rounded-5") -}} {{- partial "assets/image.html" (dict "url" $thumbnail "ratio" "1x1" "innerClass" "rounded-5") -}}
{{ end }} {{ end }}
</div> </div>
</div> </div>
@@ -81,7 +81,7 @@
<div class="col-12"> <div class="col-12">
<div class="position-absolute top-25 start-50 translate-middle col-6"> <div class="position-absolute top-25 start-50 translate-middle col-6">
{{- if $thumbnail -}} {{- if $thumbnail -}}
{{- partial "image.html" (dict "url" $thumbnail "ratio" "1x1" "innerClass" "rounded-5") -}} {{- partial "assets/image.html" (dict "url" $thumbnail "ratio" "1x1" "innerClass" "rounded-5") -}}
{{ end }} {{ end }}
</div> </div>
</div> </div>

View File

@@ -1,9 +1,9 @@
{{- $page := .page }} {{- $page := .page }}
{{- $section := .section }} {{- $section := .section }}
{{- if not $section }}{{ errorf "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 }}
{{ if ne (printf "%T" $home) "bool" }} {{ if ne (printf "%T" $home) "bool" }}
{{ errorf "Invalid value for param 'home'"}} {{ errorf "partial [assets/section-list.html] - Invalid value for param 'home'"}}
{{ end }} {{ end }}
{{- $title := .title -}} {{- $title := .title -}}
{{- $moreTitle := .moreTitle -}} {{- $moreTitle := .moreTitle -}}
@@ -23,6 +23,10 @@
{{- $homepage := 3 -}} {{- $homepage := 3 -}}
{{- $background := "" -}} {{- $background := "" -}}
{{- $layout := "card" -}} {{- $layout := "card" -}}
{{- $pane := "none" -}}
{{- $type := "pills" -}}
{{- $vertical := "false" -}}
{{- $width := 100 -}}
{{- 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 -}}
@@ -39,6 +43,10 @@
{{- with index . "homepage" }}{{ $homepage = . }}{{ end -}} {{- with index . "homepage" }}{{ $homepage = . }}{{ end -}}
{{- with index . "background" }}{{ $background = . }}{{ end -}} {{- with index . "background" }}{{ $background = . }}{{ end -}}
{{- with index . "layout" }}{{ $layout = . }}{{ end -}} {{- with index . "layout" }}{{ $layout = . }}{{ end -}}
{{- with index . "pane" }}{{ $pane = . }}{{ end -}}
{{- with index . "type" }}{{ $type = . }}{{ end -}}
{{- with index . "vertical" }}{{ $vertical = . }}{{ end -}}
{{- with index . "width" }}{{ $width = . }}{{ end -}}
{{- end -}} {{- end -}}
{{ $list := where site.RegularPages "Type" "in" $section }} {{ $list := where site.RegularPages "Type" "in" $section }}
@@ -94,6 +102,10 @@
{{- $params = merge $params (dict {{- $params = merge $params (dict
"layout" $layout "layout" $layout
"id" $section "id" $section
"pane" $pane
"type" $type
"vertical" $vertical
"width" $width
) )
-}} -}}
{{- else -}} {{- else -}}

View File

@@ -11,7 +11,7 @@
</div> </div>
<div class="col col-sm-6 col-md-4"> <div class="col col-sm-6 col-md-4">
{{ if .Site.Params.home.featurePhoto }} {{ if .Site.Params.home.featurePhoto }}
{{- partial "image.html" (dict "url" .Site.Params.home.featurePhoto "ratio" "4x3" "outerClass" "img-wrap" "innerClass" "rounded" "title" .Site.Title) -}} {{- partial "assets/image.html" (dict "url" .Site.Params.home.featurePhoto "ratio" "4x3" "outerClass" "img-wrap" "innerClass" "rounded" "title" .Site.Title) -}}
{{ end }} {{ end }}
</div> </div>
<div class="col col-md-2 d-none d-md-block"></div> <div class="col col-md-2 d-none d-md-block"></div>

View File

@@ -15,5 +15,5 @@
{{- end -}} {{- end -}}
{{- if not $error -}} {{- if not $error -}}
{{- partial "breadcrumb.html" $page -}} {{- partial "assets/breadcrumb.html" $page -}}
{{- end -}} {{- end -}}

View File

@@ -78,5 +78,19 @@
{{ end -}} {{ end -}}
{{ if not $error }} {{ if not $error }}
{{- partial "button.html" (dict "type" $type "title" $title "size" $size "color" $color "outline" $outline "badge" $badge "label" $label "tooltip" $tooltip "collapse" $collapse "href" $href "id" $id "state" $state "placement" $placement) -}} {{- partial "assets/button.html" (dict
"type" $type
"title" $title
"size" $size
"color" $color
"outline" $outline
"badge" $badge
"label" $label
"tooltip" $tooltip
"collapse" $collapse
"href" $href
"id" $id
"state" $state
"placement" $placement)
-}}
{{ end }} {{ end }}

View File

@@ -35,7 +35,7 @@
{{ errorf "Invalid value for param 'mode': %s" $modeParam -}} {{ errorf "Invalid value for param 'mode': %s" $modeParam -}}
{{ end -}} {{ end -}}
{{- partial "image.html" (dict {{- partial "assets/image.html" (dict
"url" $url "url" $url
"ratio" $ratio "ratio" $ratio
"innerClass" $class "innerClass" $class

View File

@@ -18,7 +18,7 @@
{{- if $src -}} {{- if $src -}}
<div class="carousel-item {{ if eq .Ordinal 0 }}active{{ end }}"> <div class="carousel-item {{ if eq .Ordinal 0 }}active{{ end }}">
{{ partial "image.html" (dict "url" $src "ratio" $ratio "innerClass" "d-block w-100") }} {{ partial "assets/image.html" (dict "url" $src "ratio" $ratio "innerClass" "d-block w-100") }}
<div class="carousel-caption gradient"></div> <div class="carousel-caption gradient"></div>
{{ with $caption }} {{ with $caption }}
<div class="carousel-caption d-none d-md-block"> <div class="carousel-caption d-none d-md-block">

View File

@@ -41,5 +41,5 @@
{{ end -}} {{ end -}}
{{ if not $error }} {{ if not $error }}
{{- partial "button.html" (dict "type" $type "title" $title "color" $color "tooltip" $tooltip "href" $href "placement" $placement) -}} {{- partial "assets/button.html" (dict "type" $type "title" $title "color" $color "tooltip" $tooltip "href" $href "placement" $placement) -}}
{{ end }} {{ end }}

195
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "@gethinode/hinode", "name": "@gethinode/hinode",
"version": "0.12.0-alpha5", "version": "0.12.0",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@gethinode/hinode", "name": "@gethinode/hinode",
"version": "0.12.0-alpha5", "version": "0.12.0",
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {
"@fortawesome/fontawesome-free": "^6.4.0", "@fortawesome/fontawesome-free": "^6.4.0",
@@ -15,7 +15,7 @@
"bootstrap": "^5.3.0-alpha3", "bootstrap": "^5.3.0-alpha3",
"cssnano": "^6.0.0", "cssnano": "^6.0.0",
"cssnano-preset-advanced": "^6.0.0", "cssnano-preset-advanced": "^6.0.0",
"eslint": "^8.37.0", "eslint": "^8.39.0",
"eslint-config-standard": "^17.0.0", "eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.27.5", "eslint-plugin-import": "^2.27.5",
"eslint-plugin-n": "^15.7.0", "eslint-plugin-n": "^15.7.0",
@@ -27,8 +27,8 @@
"purgecss-whitelister": "^2.4.0", "purgecss-whitelister": "^2.4.0",
"rimraf": "^5.0.0", "rimraf": "^5.0.0",
"shx": "^0.3.4", "shx": "^0.3.4",
"stylelint": "^15.4.0", "stylelint": "^15.6.0",
"stylelint-config-standard-scss": "^8.0.0" "stylelint-config-standard-scss": "^9.0.0"
} }
}, },
"node_modules/@babel/code-frame": { "node_modules/@babel/code-frame": {
@@ -247,9 +247,9 @@
} }
}, },
"node_modules/@eslint/js": { "node_modules/@eslint/js": {
"version": "8.38.0", "version": "8.39.0",
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.38.0.tgz", "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.39.0.tgz",
"integrity": "sha512-IoD2MfUnOV58ghIHCiil01PcohxjbYR/qCxsoC+xNgUwh1EY8jOOrYmu3d3a71+tJJ23uscEV4X2HJWMsPJu4g==", "integrity": "sha512-kf9RB0Fg7NZfap83B3QOqOGg9QmD9yBudqQXzzOtn3i4y7ZUXe5ONeW34Gwi+TxhH4mvj72R1Zc300KUMa9Bng==",
"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"
@@ -2100,15 +2100,15 @@
} }
}, },
"node_modules/eslint": { "node_modules/eslint": {
"version": "8.38.0", "version": "8.39.0",
"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.38.0.tgz", "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.39.0.tgz",
"integrity": "sha512-pIdsD2jwlUGf/U38Jv97t8lq6HpaU/G9NKbYmpWpZGw3LdTNhZLbJePqxOXGB5+JEKfOPU/XLxYxFh03nr1KTg==", "integrity": "sha512-mwiok6cy7KTW7rBpo05k6+p4YVZByLNjAZ/ACB9DRCu4YDRwjXI01tWHp6KAUWelsBetTxKK/2sHB0vdS8Z2Og==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/eslint-utils": "^4.2.0",
"@eslint-community/regexpp": "^4.4.0", "@eslint-community/regexpp": "^4.4.0",
"@eslint/eslintrc": "^2.0.2", "@eslint/eslintrc": "^2.0.2",
"@eslint/js": "8.38.0", "@eslint/js": "8.39.0",
"@humanwhocodes/config-array": "^0.11.8", "@humanwhocodes/config-array": "^0.11.8",
"@humanwhocodes/module-importer": "^1.0.1", "@humanwhocodes/module-importer": "^1.0.1",
"@nodelib/fs.walk": "^1.2.8", "@nodelib/fs.walk": "^1.2.8",
@@ -2118,7 +2118,7 @@
"debug": "^4.3.2", "debug": "^4.3.2",
"doctrine": "^3.0.0", "doctrine": "^3.0.0",
"escape-string-regexp": "^4.0.0", "escape-string-regexp": "^4.0.0",
"eslint-scope": "^7.1.1", "eslint-scope": "^7.2.0",
"eslint-visitor-keys": "^3.4.0", "eslint-visitor-keys": "^3.4.0",
"espree": "^9.5.1", "espree": "^9.5.1",
"esquery": "^1.4.2", "esquery": "^1.4.2",
@@ -2368,9 +2368,9 @@
} }
}, },
"node_modules/eslint-scope": { "node_modules/eslint-scope": {
"version": "7.1.1", "version": "7.2.0",
"resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz",
"integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==", "integrity": "sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"esrecurse": "^4.3.0", "esrecurse": "^4.3.0",
@@ -2378,6 +2378,9 @@
}, },
"engines": { "engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0" "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
},
"funding": {
"url": "https://opencollective.com/eslint"
} }
}, },
"node_modules/eslint-utils": { "node_modules/eslint-utils": {
@@ -4307,10 +4310,16 @@
"dev": true "dev": true
}, },
"node_modules/nanoid": { "node_modules/nanoid": {
"version": "3.3.4", "version": "3.3.6",
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz", "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz",
"integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==", "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==",
"dev": true, "dev": true,
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/ai"
}
],
"bin": { "bin": {
"nanoid": "bin/nanoid.cjs" "nanoid": "bin/nanoid.cjs"
}, },
@@ -4848,9 +4857,9 @@
} }
}, },
"node_modules/postcss": { "node_modules/postcss": {
"version": "8.4.21", "version": "8.4.23",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.21.tgz", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.23.tgz",
"integrity": "sha512-tP7u/Sn/dVxK2NnruI4H9BG+x+Wxz6oeZ1cJ8P6G/PZY0IKk4k/63TDsQf2kQq3+qoJeLm2kIBUNlZe3zgb4Zg==", "integrity": "sha512-bQ3qMcpF6A/YjR55xtoTr0jGOlnPOKAIMdOWiv0EIT6HVPEaJiJB4NLljSbiHoC2RX7DN5Uvjtpbg1NPdwv1oA==",
"dev": true, "dev": true,
"funding": [ "funding": [
{ {
@@ -4860,10 +4869,14 @@
{ {
"type": "tidelift", "type": "tidelift",
"url": "https://tidelift.com/funding/github/npm/postcss" "url": "https://tidelift.com/funding/github/npm/postcss"
},
{
"type": "github",
"url": "https://github.com/sponsors/ai"
} }
], ],
"dependencies": { "dependencies": {
"nanoid": "^3.3.4", "nanoid": "^3.3.6",
"picocolors": "^1.0.0", "picocolors": "^1.0.0",
"source-map-js": "^1.0.2" "source-map-js": "^1.0.2"
}, },
@@ -6445,14 +6458,14 @@
} }
}, },
"node_modules/stylelint": { "node_modules/stylelint": {
"version": "15.5.0", "version": "15.6.0",
"resolved": "https://registry.npmjs.org/stylelint/-/stylelint-15.5.0.tgz", "resolved": "https://registry.npmjs.org/stylelint/-/stylelint-15.6.0.tgz",
"integrity": "sha512-jyMO3R1QtE5mUS4v40+Gg+sIQBqe7CF1xPslxycDzNVkIBCUD4O+5F1vLPq16VmunUTv4qG9o2rUKLnU5KkVeQ==", "integrity": "sha512-Cqzpc8tvJm77KaM8qUbhpJ/UYK55Ia0whQXj4b9IId9dlPICO7J8Lyo15SZWiHxKjlvy3p5FQor/3n6i8ignXg==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@csstools/css-parser-algorithms": "^2.1.0", "@csstools/css-parser-algorithms": "^2.1.1",
"@csstools/css-tokenizer": "^2.1.0", "@csstools/css-tokenizer": "^2.1.1",
"@csstools/media-query-list-parser": "^2.0.2", "@csstools/media-query-list-parser": "^2.0.4",
"@csstools/selector-specificity": "^2.2.0", "@csstools/selector-specificity": "^2.2.0",
"balanced-match": "^2.0.0", "balanced-match": "^2.0.0",
"colord": "^2.9.3", "colord": "^2.9.3",
@@ -6477,7 +6490,7 @@
"micromatch": "^4.0.5", "micromatch": "^4.0.5",
"normalize-path": "^3.0.0", "normalize-path": "^3.0.0",
"picocolors": "^1.0.0", "picocolors": "^1.0.0",
"postcss": "^8.4.21", "postcss": "^8.4.22",
"postcss-media-query-parser": "^0.2.3", "postcss-media-query-parser": "^0.2.3",
"postcss-resolve-nested-selector": "^0.1.1", "postcss-resolve-nested-selector": "^0.1.1",
"postcss-safe-parser": "^6.0.0", "postcss-safe-parser": "^6.0.0",
@@ -6505,27 +6518,27 @@
} }
}, },
"node_modules/stylelint-config-recommended": { "node_modules/stylelint-config-recommended": {
"version": "11.0.0", "version": "12.0.0",
"resolved": "https://registry.npmjs.org/stylelint-config-recommended/-/stylelint-config-recommended-11.0.0.tgz", "resolved": "https://registry.npmjs.org/stylelint-config-recommended/-/stylelint-config-recommended-12.0.0.tgz",
"integrity": "sha512-SoGIHNI748OCZn6BxFYT83ytWoYETCINVHV3LKScVAWQQauWdvmdDqJC5YXWjpBbxg2E761Tg5aUGKLFOVhEkA==", "integrity": "sha512-x6x8QNARrGO2sG6iURkzqL+Dp+4bJorPMMRNPScdvaUK8PsynriOcMW7AFDKqkWAS5wbue/u8fUT/4ynzcmqdQ==",
"dev": true, "dev": true,
"peerDependencies": { "peerDependencies": {
"stylelint": "^15.3.0" "stylelint": "^15.5.0"
} }
}, },
"node_modules/stylelint-config-recommended-scss": { "node_modules/stylelint-config-recommended-scss": {
"version": "10.0.0", "version": "11.0.0",
"resolved": "https://registry.npmjs.org/stylelint-config-recommended-scss/-/stylelint-config-recommended-scss-10.0.0.tgz", "resolved": "https://registry.npmjs.org/stylelint-config-recommended-scss/-/stylelint-config-recommended-scss-11.0.0.tgz",
"integrity": "sha512-+YvPgUHi0W5mCJCKdupBCIsWPYNbWuJcRmFtSYujwNg+41ljFknhO9bpY6C+oahv659zW7W1AT7i6DQvJYYr1A==", "integrity": "sha512-EDghTDU7aOv2LTsRZvcT1w8mcjUaMhuy+t38iV5I/0Qiu6ixdkRwhLEMul3K/fnB2v9Nwqvb3xpvJfPH+HduDw==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"postcss-scss": "^4.0.6", "postcss-scss": "^4.0.6",
"stylelint-config-recommended": "^11.0.0", "stylelint-config-recommended": "^12.0.0",
"stylelint-scss": "^4.6.0" "stylelint-scss": "^4.6.0"
}, },
"peerDependencies": { "peerDependencies": {
"postcss": "^8.3.3", "postcss": "^8.3.3",
"stylelint": "^15.3.0" "stylelint": "^15.5.0"
}, },
"peerDependenciesMeta": { "peerDependenciesMeta": {
"postcss": { "postcss": {
@@ -6534,29 +6547,29 @@
} }
}, },
"node_modules/stylelint-config-standard": { "node_modules/stylelint-config-standard": {
"version": "32.0.0", "version": "33.0.0",
"resolved": "https://registry.npmjs.org/stylelint-config-standard/-/stylelint-config-standard-32.0.0.tgz", "resolved": "https://registry.npmjs.org/stylelint-config-standard/-/stylelint-config-standard-33.0.0.tgz",
"integrity": "sha512-UnGJxYDyYFrIE9CjDMZRkrNh2o4lOtO+MVZ9qG5b8yARfsWho0GMx4YvhHfsv8zKKgHeWX2wfeyxmuoqcaYZ4w==", "integrity": "sha512-eyxnLWoXImUn77+ODIuW9qXBDNM+ALN68L3wT1lN2oNspZ7D9NVGlNHb2QCUn4xDug6VZLsh0tF8NyoYzkgTzg==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"stylelint-config-recommended": "^11.0.0" "stylelint-config-recommended": "^12.0.0"
}, },
"peerDependencies": { "peerDependencies": {
"stylelint": "^15.4.0" "stylelint": "^15.5.0"
} }
}, },
"node_modules/stylelint-config-standard-scss": { "node_modules/stylelint-config-standard-scss": {
"version": "8.0.0", "version": "9.0.0",
"resolved": "https://registry.npmjs.org/stylelint-config-standard-scss/-/stylelint-config-standard-scss-8.0.0.tgz", "resolved": "https://registry.npmjs.org/stylelint-config-standard-scss/-/stylelint-config-standard-scss-9.0.0.tgz",
"integrity": "sha512-TDT/gJD/0LUDoUgkjF1uoI/4DfczXHxg7gJVcWT4/JbE6k5hszVuI14reNX+tEwSyMNhcK2BA7izrK+uVAz7XA==", "integrity": "sha512-yPKpJsrZn4ybuQZx/DkEHuCjw7pJginErE/47dFhCnrvD48IJ4UYec8tSiCuJWMA3HRjbIa3nh5ZeSauDGuVAg==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"stylelint-config-recommended-scss": "^10.0.0", "stylelint-config-recommended-scss": "^11.0.0",
"stylelint-config-standard": "^32.0.0" "stylelint-config-standard": "^33.0.0"
}, },
"peerDependencies": { "peerDependencies": {
"postcss": "^8.3.3", "postcss": "^8.3.3",
"stylelint": "^15.4.0" "stylelint": "^15.5.0"
}, },
"peerDependenciesMeta": { "peerDependenciesMeta": {
"postcss": { "postcss": {
@@ -7277,9 +7290,9 @@
} }
}, },
"@eslint/js": { "@eslint/js": {
"version": "8.38.0", "version": "8.39.0",
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.38.0.tgz", "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.39.0.tgz",
"integrity": "sha512-IoD2MfUnOV58ghIHCiil01PcohxjbYR/qCxsoC+xNgUwh1EY8jOOrYmu3d3a71+tJJ23uscEV4X2HJWMsPJu4g==", "integrity": "sha512-kf9RB0Fg7NZfap83B3QOqOGg9QmD9yBudqQXzzOtn3i4y7ZUXe5ONeW34Gwi+TxhH4mvj72R1Zc300KUMa9Bng==",
"dev": true "dev": true
}, },
"@fortawesome/fontawesome-free": { "@fortawesome/fontawesome-free": {
@@ -8602,15 +8615,15 @@
"dev": true "dev": true
}, },
"eslint": { "eslint": {
"version": "8.38.0", "version": "8.39.0",
"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.38.0.tgz", "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.39.0.tgz",
"integrity": "sha512-pIdsD2jwlUGf/U38Jv97t8lq6HpaU/G9NKbYmpWpZGw3LdTNhZLbJePqxOXGB5+JEKfOPU/XLxYxFh03nr1KTg==", "integrity": "sha512-mwiok6cy7KTW7rBpo05k6+p4YVZByLNjAZ/ACB9DRCu4YDRwjXI01tWHp6KAUWelsBetTxKK/2sHB0vdS8Z2Og==",
"dev": true, "dev": true,
"requires": { "requires": {
"@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/eslint-utils": "^4.2.0",
"@eslint-community/regexpp": "^4.4.0", "@eslint-community/regexpp": "^4.4.0",
"@eslint/eslintrc": "^2.0.2", "@eslint/eslintrc": "^2.0.2",
"@eslint/js": "8.38.0", "@eslint/js": "8.39.0",
"@humanwhocodes/config-array": "^0.11.8", "@humanwhocodes/config-array": "^0.11.8",
"@humanwhocodes/module-importer": "^1.0.1", "@humanwhocodes/module-importer": "^1.0.1",
"@nodelib/fs.walk": "^1.2.8", "@nodelib/fs.walk": "^1.2.8",
@@ -8620,7 +8633,7 @@
"debug": "^4.3.2", "debug": "^4.3.2",
"doctrine": "^3.0.0", "doctrine": "^3.0.0",
"escape-string-regexp": "^4.0.0", "escape-string-regexp": "^4.0.0",
"eslint-scope": "^7.1.1", "eslint-scope": "^7.2.0",
"eslint-visitor-keys": "^3.4.0", "eslint-visitor-keys": "^3.4.0",
"espree": "^9.5.1", "espree": "^9.5.1",
"esquery": "^1.4.2", "esquery": "^1.4.2",
@@ -8798,9 +8811,9 @@
"requires": {} "requires": {}
}, },
"eslint-scope": { "eslint-scope": {
"version": "7.1.1", "version": "7.2.0",
"resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz",
"integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==", "integrity": "sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==",
"dev": true, "dev": true,
"requires": { "requires": {
"esrecurse": "^4.3.0", "esrecurse": "^4.3.0",
@@ -10226,9 +10239,9 @@
"dev": true "dev": true
}, },
"nanoid": { "nanoid": {
"version": "3.3.4", "version": "3.3.6",
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz", "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz",
"integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==", "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==",
"dev": true "dev": true
}, },
"natural-compare": { "natural-compare": {
@@ -10596,12 +10609,12 @@
} }
}, },
"postcss": { "postcss": {
"version": "8.4.21", "version": "8.4.23",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.21.tgz", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.23.tgz",
"integrity": "sha512-tP7u/Sn/dVxK2NnruI4H9BG+x+Wxz6oeZ1cJ8P6G/PZY0IKk4k/63TDsQf2kQq3+qoJeLm2kIBUNlZe3zgb4Zg==", "integrity": "sha512-bQ3qMcpF6A/YjR55xtoTr0jGOlnPOKAIMdOWiv0EIT6HVPEaJiJB4NLljSbiHoC2RX7DN5Uvjtpbg1NPdwv1oA==",
"dev": true, "dev": true,
"requires": { "requires": {
"nanoid": "^3.3.4", "nanoid": "^3.3.6",
"picocolors": "^1.0.0", "picocolors": "^1.0.0",
"source-map-js": "^1.0.2" "source-map-js": "^1.0.2"
} }
@@ -11677,14 +11690,14 @@
} }
}, },
"stylelint": { "stylelint": {
"version": "15.5.0", "version": "15.6.0",
"resolved": "https://registry.npmjs.org/stylelint/-/stylelint-15.5.0.tgz", "resolved": "https://registry.npmjs.org/stylelint/-/stylelint-15.6.0.tgz",
"integrity": "sha512-jyMO3R1QtE5mUS4v40+Gg+sIQBqe7CF1xPslxycDzNVkIBCUD4O+5F1vLPq16VmunUTv4qG9o2rUKLnU5KkVeQ==", "integrity": "sha512-Cqzpc8tvJm77KaM8qUbhpJ/UYK55Ia0whQXj4b9IId9dlPICO7J8Lyo15SZWiHxKjlvy3p5FQor/3n6i8ignXg==",
"dev": true, "dev": true,
"requires": { "requires": {
"@csstools/css-parser-algorithms": "^2.1.0", "@csstools/css-parser-algorithms": "^2.1.1",
"@csstools/css-tokenizer": "^2.1.0", "@csstools/css-tokenizer": "^2.1.1",
"@csstools/media-query-list-parser": "^2.0.2", "@csstools/media-query-list-parser": "^2.0.4",
"@csstools/selector-specificity": "^2.2.0", "@csstools/selector-specificity": "^2.2.0",
"balanced-match": "^2.0.0", "balanced-match": "^2.0.0",
"colord": "^2.9.3", "colord": "^2.9.3",
@@ -11709,7 +11722,7 @@
"micromatch": "^4.0.5", "micromatch": "^4.0.5",
"normalize-path": "^3.0.0", "normalize-path": "^3.0.0",
"picocolors": "^1.0.0", "picocolors": "^1.0.0",
"postcss": "^8.4.21", "postcss": "^8.4.22",
"postcss-media-query-parser": "^0.2.3", "postcss-media-query-parser": "^0.2.3",
"postcss-resolve-nested-selector": "^0.1.1", "postcss-resolve-nested-selector": "^0.1.1",
"postcss-safe-parser": "^6.0.0", "postcss-safe-parser": "^6.0.0",
@@ -11761,40 +11774,40 @@
} }
}, },
"stylelint-config-recommended": { "stylelint-config-recommended": {
"version": "11.0.0", "version": "12.0.0",
"resolved": "https://registry.npmjs.org/stylelint-config-recommended/-/stylelint-config-recommended-11.0.0.tgz", "resolved": "https://registry.npmjs.org/stylelint-config-recommended/-/stylelint-config-recommended-12.0.0.tgz",
"integrity": "sha512-SoGIHNI748OCZn6BxFYT83ytWoYETCINVHV3LKScVAWQQauWdvmdDqJC5YXWjpBbxg2E761Tg5aUGKLFOVhEkA==", "integrity": "sha512-x6x8QNARrGO2sG6iURkzqL+Dp+4bJorPMMRNPScdvaUK8PsynriOcMW7AFDKqkWAS5wbue/u8fUT/4ynzcmqdQ==",
"dev": true, "dev": true,
"requires": {} "requires": {}
}, },
"stylelint-config-recommended-scss": { "stylelint-config-recommended-scss": {
"version": "10.0.0", "version": "11.0.0",
"resolved": "https://registry.npmjs.org/stylelint-config-recommended-scss/-/stylelint-config-recommended-scss-10.0.0.tgz", "resolved": "https://registry.npmjs.org/stylelint-config-recommended-scss/-/stylelint-config-recommended-scss-11.0.0.tgz",
"integrity": "sha512-+YvPgUHi0W5mCJCKdupBCIsWPYNbWuJcRmFtSYujwNg+41ljFknhO9bpY6C+oahv659zW7W1AT7i6DQvJYYr1A==", "integrity": "sha512-EDghTDU7aOv2LTsRZvcT1w8mcjUaMhuy+t38iV5I/0Qiu6ixdkRwhLEMul3K/fnB2v9Nwqvb3xpvJfPH+HduDw==",
"dev": true, "dev": true,
"requires": { "requires": {
"postcss-scss": "^4.0.6", "postcss-scss": "^4.0.6",
"stylelint-config-recommended": "^11.0.0", "stylelint-config-recommended": "^12.0.0",
"stylelint-scss": "^4.6.0" "stylelint-scss": "^4.6.0"
} }
}, },
"stylelint-config-standard": { "stylelint-config-standard": {
"version": "32.0.0", "version": "33.0.0",
"resolved": "https://registry.npmjs.org/stylelint-config-standard/-/stylelint-config-standard-32.0.0.tgz", "resolved": "https://registry.npmjs.org/stylelint-config-standard/-/stylelint-config-standard-33.0.0.tgz",
"integrity": "sha512-UnGJxYDyYFrIE9CjDMZRkrNh2o4lOtO+MVZ9qG5b8yARfsWho0GMx4YvhHfsv8zKKgHeWX2wfeyxmuoqcaYZ4w==", "integrity": "sha512-eyxnLWoXImUn77+ODIuW9qXBDNM+ALN68L3wT1lN2oNspZ7D9NVGlNHb2QCUn4xDug6VZLsh0tF8NyoYzkgTzg==",
"dev": true, "dev": true,
"requires": { "requires": {
"stylelint-config-recommended": "^11.0.0" "stylelint-config-recommended": "^12.0.0"
} }
}, },
"stylelint-config-standard-scss": { "stylelint-config-standard-scss": {
"version": "8.0.0", "version": "9.0.0",
"resolved": "https://registry.npmjs.org/stylelint-config-standard-scss/-/stylelint-config-standard-scss-8.0.0.tgz", "resolved": "https://registry.npmjs.org/stylelint-config-standard-scss/-/stylelint-config-standard-scss-9.0.0.tgz",
"integrity": "sha512-TDT/gJD/0LUDoUgkjF1uoI/4DfczXHxg7gJVcWT4/JbE6k5hszVuI14reNX+tEwSyMNhcK2BA7izrK+uVAz7XA==", "integrity": "sha512-yPKpJsrZn4ybuQZx/DkEHuCjw7pJginErE/47dFhCnrvD48IJ4UYec8tSiCuJWMA3HRjbIa3nh5ZeSauDGuVAg==",
"dev": true, "dev": true,
"requires": { "requires": {
"stylelint-config-recommended-scss": "^10.0.0", "stylelint-config-recommended-scss": "^11.0.0",
"stylelint-config-standard": "^32.0.0" "stylelint-config-standard": "^33.0.0"
} }
}, },
"stylelint-scss": { "stylelint-scss": {

View File

@@ -1,6 +1,6 @@
{ {
"name": "@gethinode/hinode", "name": "@gethinode/hinode",
"version": "0.12.0-alpha5", "version": "0.12.0",
"description": "Hinode is a clean documentation and blog theme for Hugo, an open-source static site generator", "description": "Hinode is a clean documentation and blog theme for Hugo, an open-source static site generator",
"keywords": [ "keywords": [
"hugo", "hugo",
@@ -57,7 +57,7 @@
"bootstrap": "^5.3.0-alpha3", "bootstrap": "^5.3.0-alpha3",
"cssnano": "^6.0.0", "cssnano": "^6.0.0",
"cssnano-preset-advanced": "^6.0.0", "cssnano-preset-advanced": "^6.0.0",
"eslint": "^8.37.0", "eslint": "^8.39.0",
"eslint-config-standard": "^17.0.0", "eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.27.5", "eslint-plugin-import": "^2.27.5",
"eslint-plugin-n": "^15.7.0", "eslint-plugin-n": "^15.7.0",
@@ -69,8 +69,8 @@
"purgecss-whitelister": "^2.4.0", "purgecss-whitelister": "^2.4.0",
"rimraf": "^5.0.0", "rimraf": "^5.0.0",
"shx": "^0.3.4", "shx": "^0.3.4",
"stylelint": "^15.4.0", "stylelint": "^15.6.0",
"stylelint-config-standard-scss": "^8.0.0" "stylelint-config-standard-scss": "^9.0.0"
}, },
"hugo-bin": { "hugo-bin": {
"buildTags": "extended" "buildTags": "extended"