mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-08 10:34:26 +00:00
Compare commits
20 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
6a0c6af296 | ||
![]() |
2bf16b0e59 | ||
![]() |
e56cc645e2 | ||
![]() |
8c361a8417 | ||
![]() |
65e9e57c9e | ||
![]() |
ffa4473d25 | ||
![]() |
6c5fe6f208 | ||
![]() |
60efecf946 | ||
![]() |
70fdf7c4f0 | ||
![]() |
ee4bb45368 | ||
![]() |
a08695d97e | ||
![]() |
1abeabcacd | ||
![]() |
16b2c8b058 | ||
![]() |
f8eab705fb | ||
![]() |
13b8421893 | ||
![]() |
6324a90d77 | ||
![]() |
faccca732b | ||
![]() |
04736fd8f1 | ||
![]() |
9c4378e5af | ||
![]() |
0574627010 |
@@ -56,7 +56,8 @@
|
|||||||
reverse = false
|
reverse = false
|
||||||
nested = true
|
nested = true
|
||||||
cols = 1
|
cols = 1
|
||||||
color = "body-tertiary"
|
background = "body-tertiary"
|
||||||
|
color = "body"
|
||||||
padding = "3"
|
padding = "3"
|
||||||
header = "none"
|
header = "none"
|
||||||
footer = "tags"
|
footer = "tags"
|
||||||
|
@@ -31,6 +31,8 @@
|
|||||||
translation: "More Features"
|
translation: "More Features"
|
||||||
- id: moreGuides
|
- id: moreGuides
|
||||||
translation: "More Guides"
|
translation: "More Guides"
|
||||||
|
- id: moreOpensource
|
||||||
|
translation: "More Features"
|
||||||
- id: moreProjects
|
- id: moreProjects
|
||||||
translation: "More Projects"
|
translation: "More Projects"
|
||||||
- id: moreUsers
|
- id: moreUsers
|
||||||
@@ -62,7 +64,7 @@
|
|||||||
- id: toggleSidebar
|
- id: toggleSidebar
|
||||||
translation: "Toggle sidebar navigation"
|
translation: "Toggle sidebar navigation"
|
||||||
- id: colorMode
|
- id: colorMode
|
||||||
translation: "Color mode"
|
translation: "Toggle theme"
|
||||||
- id: colorLight
|
- id: colorLight
|
||||||
translation: "Light"
|
translation: "Light"
|
||||||
- id: colorDark
|
- id: colorDark
|
||||||
|
@@ -56,7 +56,7 @@
|
|||||||
- id: toggleSidebar
|
- id: toggleSidebar
|
||||||
translation: "Toon of verberg navigatie"
|
translation: "Toon of verberg navigatie"
|
||||||
- id: colorMode
|
- id: colorMode
|
||||||
translation: "Modus"
|
translation: "Pas modus aan"
|
||||||
- id: colorLight
|
- id: colorLight
|
||||||
translation: "Licht"
|
translation: "Licht"
|
||||||
- id: colorDark
|
- id: colorDark
|
||||||
|
@@ -33,19 +33,23 @@
|
|||||||
<div class="d-flex flex-column flex-fill">
|
<div class="d-flex flex-column flex-fill">
|
||||||
{{ block "main" . }}{{ end -}}
|
{{ block "main" . }}{{ end -}}
|
||||||
</div>
|
</div>
|
||||||
<div class="">
|
{{ if not .Site.Params.main.footerBelowFold }}
|
||||||
{{- partial "footer/social.html" . -}}
|
<div class="">
|
||||||
{{- partial "footer/footer.html" . -}}
|
{{- partial "footer/social.html" . -}}
|
||||||
</div>
|
{{- partial "footer/footer.html" . -}}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ else -}}
|
{{ else -}}
|
||||||
<div class="d-flex flex-column flex-fill {{ if .Site.Params.navigation.fixed }}mt-5{{ end }}">
|
<div class="d-flex flex-column flex-fill {{ if .Site.Params.navigation.fixed }}mt-5{{ end }}">
|
||||||
{{ block "main" . }}{{ end -}}
|
{{ block "main" . }}{{ end -}}
|
||||||
</div>
|
</div>
|
||||||
<div class="">
|
{{ if not .Site.Params.main.footerBelowFold }}
|
||||||
{{- partial "footer/social.html" . -}}
|
<div class="">
|
||||||
{{- partial "footer/footer.html" . -}}
|
{{- partial "footer/social.html" . -}}
|
||||||
</div>
|
{{- partial "footer/footer.html" . -}}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -53,9 +57,16 @@
|
|||||||
<div class="">
|
<div class="">
|
||||||
{{ block "main" . }}{{ end -}}
|
{{ block "main" . }}{{ end -}}
|
||||||
</div>
|
</div>
|
||||||
{{- partial "footer/social.html" . -}}
|
<div class="">
|
||||||
{{- partial "footer/footer.html" . -}}
|
{{- partial "footer/social.html" . -}}
|
||||||
{{ end -}}
|
{{- partial "footer/footer.html" . -}}
|
||||||
|
</div>
|
||||||
|
{{ else if .Site.Params.main.footerBelowFold }}
|
||||||
|
<div class="">
|
||||||
|
{{- partial "footer/social.html" . -}}
|
||||||
|
{{- partial "footer/footer.html" . -}}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{- partialCached "footer/scripts.html" (dict "header" false "page" .) }}
|
{{- partialCached "footer/scripts.html" (dict "header" false "page" .) }}
|
||||||
</body>
|
</body>
|
||||||
|
@@ -5,6 +5,8 @@
|
|||||||
"home" false
|
"home" false
|
||||||
"nested" .Params.Nested
|
"nested" .Params.Nested
|
||||||
"title" .Title
|
"title" .Title
|
||||||
|
"description" .Description
|
||||||
|
"content" .Content
|
||||||
"paginate" true)
|
"paginate" true)
|
||||||
-}}
|
-}}
|
||||||
{{- end -}}
|
{{- end -}}
|
@@ -6,11 +6,13 @@
|
|||||||
{{- $page := . -}}
|
{{- $page := . -}}
|
||||||
|
|
||||||
{{- range $index, $section := site.Params.home.sections -}}
|
{{- range $index, $section := site.Params.home.sections -}}
|
||||||
{{- $pages := where site.RegularPages "Type" "in" $section -}}
|
{{- $sectionPage := site.GetPage "section" $section -}}
|
||||||
{{- $sectionURL := "" -}}
|
{{- $sectionURL := $sectionPage.RelPermalink -}}
|
||||||
{{- range $p := first 1 $pages -}}
|
{{- $title := $sectionPage.Title -}}
|
||||||
{{- $sectionURL = $p.Parent.RelPermalink -}}
|
{{- $thumbnail := $sectionPage.Params.Thumbnail -}}
|
||||||
{{- end -}}
|
{{- $icon := $sectionPage.Params.Icon -}}
|
||||||
|
{{- $description := $sectionPage.Description -}}
|
||||||
|
{{- $content := $sectionPage.Content -}}
|
||||||
|
|
||||||
{{- $moreTitle := (T (printf "more%s" (strings.FirstUpper $section))) -}}
|
{{- $moreTitle := (T (printf "more%s" (strings.FirstUpper $section))) -}}
|
||||||
|
|
||||||
@@ -19,6 +21,9 @@
|
|||||||
"section" $section
|
"section" $section
|
||||||
"home" true
|
"home" true
|
||||||
"nested" true
|
"nested" true
|
||||||
|
"thumbnail" $thumbnail
|
||||||
|
"icon" $icon
|
||||||
|
"content" $content
|
||||||
"moreTitle" $moreTitle
|
"moreTitle" $moreTitle
|
||||||
"sectionURL" $sectionURL)
|
"sectionURL" $sectionURL)
|
||||||
-}}
|
-}}
|
||||||
|
@@ -58,8 +58,6 @@
|
|||||||
{{- else if eq $cols 4 }}{{ $colGrid = "row-cols-1 row-cols-sm-2 row-cols-md-4" -}}
|
{{- else if eq $cols 4 }}{{ $colGrid = "row-cols-1 row-cols-sm-2 row-cols-md-4" -}}
|
||||||
{{- else if eq $cols 5 }}{{ $colGrid = "row-cols-1 row-cols-sm-3 row-cols-md-5" }}{{ end -}}
|
{{- else if eq $cols 5 }}{{ $colGrid = "row-cols-1 row-cols-sm-3 row-cols-md-5" }}{{ end -}}
|
||||||
|
|
||||||
{{- $title := .title -}}
|
|
||||||
|
|
||||||
{{- $paginate := false -}}
|
{{- $paginate := false -}}
|
||||||
{{- with .paginate -}}
|
{{- with .paginate -}}
|
||||||
{{- if ne (printf "%T" .) "bool" -}}
|
{{- if ne (printf "%T" .) "bool" -}}
|
||||||
@@ -90,7 +88,6 @@
|
|||||||
{{- $orientation := .orientation -}}
|
{{- $orientation := .orientation -}}
|
||||||
|
|
||||||
<div class="container-fluid p-4 px-xxl-0">
|
<div class="container-fluid p-4 px-xxl-0">
|
||||||
{{ with $title }}<p class="display-4 mt-3{{ if and page.IsHome site.Params.home.centerHeadline }} text-center{{ end }}">{{ . }}</p>{{ end }}
|
|
||||||
{{ $paginator := "" }}
|
{{ $paginator := "" }}
|
||||||
{{ if $paginate }}
|
{{ if $paginate }}
|
||||||
{{ $paginator = $page.Paginate $list }}
|
{{ $paginator = $page.Paginate $list }}
|
||||||
@@ -107,13 +104,14 @@
|
|||||||
"footer" $footer
|
"footer" $footer
|
||||||
"orientation" $orientation
|
"orientation" $orientation
|
||||||
) -}}
|
) -}}
|
||||||
{{- if $element.IsPage -}}
|
|
||||||
|
{{- if $element.Permalink -}}
|
||||||
{{- $params = merge $params (dict "path" $element.File.Path) -}}
|
{{- $params = merge $params (dict "path" $element.File.Path) -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- $params = merge $params (dict
|
{{- $params = merge $params (dict
|
||||||
"title" $element.Title
|
"title" $element.Title
|
||||||
"href" (or $element.Permalink "#!")
|
"href" $element.Permalink
|
||||||
"description" $element.Description
|
"description" (or $element.Description $element.Content)
|
||||||
"thumbnail" $element.Params.thumbnail
|
"thumbnail" $element.Params.thumbnail
|
||||||
"icon" $element.Params.icon
|
"icon" $element.Params.icon
|
||||||
) -}}
|
) -}}
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
The shortcode supports the following arguments:
|
The shortcode supports the following arguments:
|
||||||
"path" Optional path of the page, override with other parameters.
|
"path" Optional path of the page, override with other parameters.
|
||||||
"title" Required title of the card.
|
"title" Required title of the card.
|
||||||
"href" Required address for the button or hyperlink.
|
"href" Optional address for the button or hyperlink.
|
||||||
"class" Optional class attribute of the card element, e.g. “w-50”.
|
"class" Optional class attribute of the card element, e.g. “w-50”.
|
||||||
"color": Optional theme color of the card, either "primary", "secondary", "success", "danger",
|
"color": Optional theme color of the card, either "primary", "secondary", "success", "danger",
|
||||||
"warning", "info", "light", "dark", "white", "black", "body", or "body-tertiary". By default, no
|
"warning", "info", "light", "dark", "white", "black", "body", or "body-tertiary". By default, no
|
||||||
@@ -28,10 +28,17 @@
|
|||||||
{{- $color := .color -}}
|
{{- $color := .color -}}
|
||||||
{{- $description := .description -}}
|
{{- $description := .description -}}
|
||||||
|
|
||||||
<a href="{{ $href }}" class="{{ if $color }}link-bg-{{ $color }}{{ else }}card-body-link{{ end }} stretched-link">
|
{{- if $href -}}
|
||||||
|
<a href="{{ $href }}" class="{{ if $color }}link-bg-{{ $color }}{{ else }}card-body-link{{ end }} stretched-link">
|
||||||
|
<p class="card-title fs-5 fw-bold">{{ $title }}</p>
|
||||||
|
{{ with $description }}<p class="card-text mb-4 {{ if $color }}link-bg-{{ $color }}{{ else }}card-body-link{{ end }}">{{ . }}</p>{{ end -}}
|
||||||
|
</a>
|
||||||
|
{{- else -}}
|
||||||
|
<div>
|
||||||
<p class="card-title fs-5 fw-bold">{{ $title }}</p>
|
<p class="card-title fs-5 fw-bold">{{ $title }}</p>
|
||||||
{{ with $description }}<p class="card-text mb-4 {{ if $color }}link-bg-{{ $color }}{{ else }}card-body-link{{ end }}">{{ . }}</p>{{ end -}}
|
{{ with $description }}<p class="card-text mb-4 {{ if $color }}link-bg-{{ $color }}{{ else }}card-body-link{{ end }}">{{ . }}</p>{{ end -}}
|
||||||
</a>
|
</div>
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
<!-- Inline partial to render the card's header or footer -->
|
<!-- Inline partial to render the card's header or footer -->
|
||||||
@@ -109,10 +116,6 @@
|
|||||||
{{- if not $icon }}{{ $icon = .Params.icon }}{{ end -}}
|
{{- if not $icon }}{{ $icon = .Params.icon }}{{ end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- if not $href -}}
|
|
||||||
{{- errorf "partial [assets/card.html] - Missing value for param 'href'" -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{- $class := .class -}}
|
{{- $class := .class -}}
|
||||||
|
|
||||||
{{- $padding := "auto" -}}
|
{{- $padding := "auto" -}}
|
||||||
|
@@ -53,10 +53,6 @@
|
|||||||
{{- range $index, $item := $list -}}
|
{{- range $index, $item := $list -}}
|
||||||
{{- $odd := eq (mod $index 2) 1 -}}
|
{{- $odd := eq (mod $index 2) 1 -}}
|
||||||
<div class="container ratio-section d-flex flex-column">
|
<div class="container ratio-section d-flex flex-column">
|
||||||
{{ if eq $index 0 }}
|
|
||||||
{{ with $title }}<p class="display-4 pt-5{{ if and page.IsHome site.Params.home.centerHeadline }} text-center{{ end }}">{{ . }}</p>{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
<div class="row pt-5 pb-5 align-items-center flex-fill row-cols-2">
|
<div class="row pt-5 pb-5 align-items-center flex-fill row-cols-2">
|
||||||
<div class="col-6{{ if $odd }} order-last{{ end }}">
|
<div class="col-6{{ if $odd }} order-last{{ end }}">
|
||||||
{{- $style := "reveal fade-bottom" -}}
|
{{- $style := "reveal fade-bottom" -}}
|
||||||
@@ -78,9 +74,6 @@
|
|||||||
{{- range $index, $item := $list -}}
|
{{- range $index, $item := $list -}}
|
||||||
{{- $odd := eq (mod $index 2) 1 -}}
|
{{- $odd := eq (mod $index 2) 1 -}}
|
||||||
<div class="container d-flex flex-column">
|
<div class="container d-flex flex-column">
|
||||||
{{ if eq $index 0 }}
|
|
||||||
{{ with $title }}<p class="display-4 pt-5{{ if and page.IsHome site.Params.home.centerHeadline }} text-center{{ end }}">{{ . }}</p>{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
<div class="row pt-5 pb-5 align-items-center flex-fill row-cols-2">
|
<div class="row pt-5 pb-5 align-items-center flex-fill row-cols-2">
|
||||||
<div class="col-12 text-center">
|
<div class="col-12 text-center">
|
||||||
{{ partial "partials/list-img.html" (dict "thumbnail" $item.Params.Thumbnail "mode" $item.Params.colormode) }}
|
{{ partial "partials/list-img.html" (dict "thumbnail" $item.Params.Thumbnail "mode" $item.Params.colormode) }}
|
||||||
|
@@ -76,7 +76,6 @@
|
|||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
{{ with $title }}<p class="display-4 pt-5{{ if and page.IsHome site.Params.home.centerHeadline }} text-center{{ end }}">{{ . }}</p>{{ end }}
|
|
||||||
<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">
|
<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 }}>
|
||||||
|
46
layouts/partials/assets/section-header.html
Normal file
46
layouts/partials/assets/section-header.html
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
{{- $title := .title -}}
|
||||||
|
{{- $thumbnail := .thumbnail -}}
|
||||||
|
{{- $icon := .icon -}}
|
||||||
|
{{- $sectionHeader := .sectionHeader -}}
|
||||||
|
{{- $description := .description -}}
|
||||||
|
{{- $content := .content -}}
|
||||||
|
|
||||||
|
{{- define "partials/section-header-img.html" -}}
|
||||||
|
{{- $title := .title -}}
|
||||||
|
{{- $thumbnail := .thumbnail -}}
|
||||||
|
{{- $icon := .icon -}}
|
||||||
|
{{ $padding := 5 }}
|
||||||
|
|
||||||
|
{{- if $thumbnail -}}
|
||||||
|
{{- 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 -}}
|
||||||
|
<div class="text-secondary fw-bold">
|
||||||
|
{{- partial "assets/icon.html" (dict "icon" (printf "%s fa-10x" $icon)) -}}
|
||||||
|
</div>
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
<div class="container-fluid p-4 px-xxl-0">
|
||||||
|
{{ with $title }}<p class="display-4 mt-3{{ if and page.IsHome site.Params.home.centerHeadline }} text-center{{ end }}">{{ . }}</p>{{ end }}
|
||||||
|
{{ with $description }} <p class="lead mb-5">{{ . }}</p>{{ end }}
|
||||||
|
{{- if $content -}}
|
||||||
|
<div class="row row-cols-1 row-cols-lg-3 pt-5">
|
||||||
|
<div class="col col-lg-3 d-none d-lg-block"></div>
|
||||||
|
<div class="col col-sm-12 col-lg-6 text-center">
|
||||||
|
<div class="row row-cols-1{{ if ne $sectionHeader "justify-content-center" }} row-cols-sm-2{{ end }} row-gap-5 p-0 align-items-center flex-fill">
|
||||||
|
{{- if eq $sectionHeader "justify-content-center" -}}
|
||||||
|
<div class="col p-0 w-50 mx-auto pb-5">{{ partial "partials/section-header-img.html" (dict "title" $title "thumbnail" $thumbnail "icon" $icon )}}</div>
|
||||||
|
<div class="col fs-md-5 fs-6">{{ $content }}</div>
|
||||||
|
{{- else if eq $sectionHeader "justify-content-end" -}}
|
||||||
|
<div class="col p-0">{{ partial "partials/section-header-img.html" (dict "title" $title "thumbnail" $thumbnail "icon" $icon )}}</div>
|
||||||
|
<div class="col fs-md-5 fs-6 text-sm-start">{{ $content }}</div>
|
||||||
|
{{- else -}}
|
||||||
|
<div class="col fs-md-5 fs-6 text-sm-start">{{ $content }}</div>
|
||||||
|
<div class="col p-0">{{ partial "partials/section-header-img.html" (dict "title" $title "thumbnail" $thumbnail "icon" $icon )}}</div>
|
||||||
|
{{- end -}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col col-lg-3 d-none d-lg-block"></div>
|
||||||
|
</div>
|
||||||
|
{{- end -}}
|
||||||
|
</div>
|
@@ -6,6 +6,11 @@
|
|||||||
{{ errorf "partial [assets/section-list.html] - Invalid value for param 'home'"}}
|
{{ errorf "partial [assets/section-list.html] - Invalid value for param 'home'"}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{- $title := .title -}}
|
{{- $title := .title -}}
|
||||||
|
{{- $icon := .icon -}}
|
||||||
|
{{- $thumbnail := .thumbnail -}}
|
||||||
|
{{- $sectionHeader := .sectionHeader -}}
|
||||||
|
{{- $description := .description -}}
|
||||||
|
{{- $content := .content -}}
|
||||||
{{- $moreTitle := .moreTitle -}}
|
{{- $moreTitle := .moreTitle -}}
|
||||||
{{- $sectionURL := .sectionURL -}}
|
{{- $sectionURL := .sectionURL -}}
|
||||||
{{- $nested := .nested | default true -}}
|
{{- $nested := .nested | default true -}}
|
||||||
@@ -30,6 +35,7 @@
|
|||||||
|
|
||||||
{{- 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 -}}
|
||||||
|
{{- with index . "sectionHeader" }}{{ $sectionHeader = . }}{{ end -}}
|
||||||
{{- with index . "sort" }}{{ $sort = . }}{{ end -}}
|
{{- with index . "sort" }}{{ $sort = . }}{{ end -}}
|
||||||
{{- if (index . "reverse") }}{{ $order = "desc" }}{{ else }}{{ $order = "asc" }}{{ end -}}
|
{{- if (index . "reverse") }}{{ $order = "desc" }}{{ else }}{{ $order = "asc" }}{{ end -}}
|
||||||
{{- if $home }}{{- if (isset . "nested") }}{{ $nested = (index . "nested") }}{{ end -}}{{ end -}}
|
{{- if $home }}{{- if (isset . "nested") }}{{ $nested = (index . "nested") }}{{ end -}}{{ end -}}
|
||||||
@@ -87,6 +93,11 @@
|
|||||||
"page" $page
|
"page" $page
|
||||||
"list" $list
|
"list" $list
|
||||||
"title" $title
|
"title" $title
|
||||||
|
"icon" $icon
|
||||||
|
"thumbnail" $thumbnail
|
||||||
|
"sectionHeader" $sectionHeader
|
||||||
|
"description" $description
|
||||||
|
"content" $content
|
||||||
"class" $style
|
"class" $style
|
||||||
"color" $color
|
"color" $color
|
||||||
)
|
)
|
||||||
@@ -95,6 +106,8 @@
|
|||||||
|
|
||||||
<div class="container-fluid {{ with $background }} bg-{{ . }}{{ end }}">
|
<div class="container-fluid {{ with $background }} bg-{{ . }}{{ end }}">
|
||||||
<div class="container-xxl flex-fill p-0">
|
<div class="container-xxl flex-fill p-0">
|
||||||
|
{{- partial "assets/section-header.html" $params -}}
|
||||||
|
|
||||||
{{ if eq $layout "card" }}
|
{{ if eq $layout "card" }}
|
||||||
{{- $partial = "assets/card-group.html" -}}
|
{{- $partial = "assets/card-group.html" -}}
|
||||||
{{- $params = merge $params (dict
|
{{- $params = merge $params (dict
|
||||||
|
@@ -30,7 +30,7 @@
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- if not hugo.IsProduction -}}
|
{{- if not hugo.IsProduction -}}
|
||||||
<link rel="stylesheet" href="{{ $css.Permalink | relLangURL }}">
|
<link rel="stylesheet" href="{{ $css.Permalink }}">
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- $css = $css | fingerprint | resources.PostProcess -}}
|
{{- $css = $css | fingerprint | resources.PostProcess -}}
|
||||||
<link rel="stylesheet" href="{{ $css.Permalink }}" integrity="{{ $css.Data.Integrity }}" crossorigin="anonymous">
|
<link rel="stylesheet" href="{{ $css.Permalink }}" integrity="{{ $css.Data.Integrity }}" crossorigin="anonymous">
|
||||||
|
@@ -1 +1,6 @@
|
|||||||
{{ return index .Site.Data .Section }}
|
{{- $menu := "" -}}
|
||||||
|
{{- if .IsPage -}}
|
||||||
|
{{- $menu = index .Site.Data .Section -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- return $menu -}}
|
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@gethinode/hinode",
|
"name": "@gethinode/hinode",
|
||||||
"version": "0.12.12",
|
"version": "0.13.2",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@gethinode/hinode",
|
"name": "@gethinode/hinode",
|
||||||
"version": "0.12.12",
|
"version": "0.13.2",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@fortawesome/fontawesome-free": "^6.4.0",
|
"@fortawesome/fontawesome-free": "^6.4.0",
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@gethinode/hinode",
|
"name": "@gethinode/hinode",
|
||||||
"version": "0.12.12",
|
"version": "0.13.2",
|
||||||
"description": "Hinode is a clean documentation and blog theme for Hugo, an open-source static site generator",
|
"description": "Hinode is a clean documentation and blog theme for Hugo, an open-source static site generator",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"hugo",
|
"hugo",
|
||||||
|
Reference in New Issue
Block a user