mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-17 23:13:11 +00:00
Compare commits
12 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
50d21d1927 | ||
![]() |
42e83382a2 | ||
![]() |
c9df385598 | ||
![]() |
4d86493bfb | ||
![]() |
633dab2622 | ||
![]() |
5c9316cea0 | ||
![]() |
6085688d7b | ||
![]() |
54e1720be6 | ||
![]() |
f482f4dd94 | ||
![]() |
b48a9598f4 | ||
![]() |
ed56db6d0d | ||
![]() |
9a91208f58 |
@@ -151,3 +151,17 @@ $utilities: map-merge(
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
.width-100 {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
$utilities: (
|
||||
"width": (
|
||||
property: width,
|
||||
responsive: true,
|
||||
values: (
|
||||
auto: auto
|
||||
)
|
||||
)
|
||||
);
|
||||
|
@@ -104,20 +104,27 @@
|
||||
margin: 0 .15rem;
|
||||
}
|
||||
|
||||
.navbar-title {
|
||||
.navbar-title, .navbar-title-center, .navbar-title-start {
|
||||
display: inline-block;
|
||||
white-space: normal;
|
||||
text-align: center !important;
|
||||
vertical-align: middle;
|
||||
padding: 0 $spacer;
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
.navbar-title, .navbar-title-center {
|
||||
text-align: center !important;
|
||||
}
|
||||
|
||||
.navbar-contrast .nav-link.active, .navbar-contrast .nav-link.show, .navbar-contrast .nav-link:hover {
|
||||
border-bottom: solid 1px var(--bs-navbar-hover-color);
|
||||
margin-bottom: -1px;
|
||||
}
|
||||
|
||||
.navbar-brand {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.navbar-contrast {
|
||||
--bs-navbar-color: white !important;
|
||||
--bs-navbar-hover-color: white !important;
|
||||
@@ -125,7 +132,7 @@
|
||||
--bs-navbar-active-color: white !important;
|
||||
--bs-navbar-toggler-color: white;
|
||||
|
||||
.navbar-title, .mode-switch {
|
||||
.navbar-title, .navbar-brand, .mode-switch {
|
||||
--#{$prefix}border-color: white;
|
||||
|
||||
color: white !important;
|
||||
@@ -177,6 +184,7 @@
|
||||
.navbar .nav-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.navbar-collapse .dropdown {
|
||||
@@ -287,13 +295,10 @@
|
||||
}
|
||||
|
||||
.navbar-container {
|
||||
min-height: calc(2rem + 10px);
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
.navbar-brand {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
@include media-breakpoint-up(#{$navbar-size}) {
|
||||
:root {
|
||||
--navbar-offset: #{$navbar-offset};
|
||||
|
@@ -88,6 +88,8 @@
|
||||
[navigation]
|
||||
anchor = true
|
||||
logo = "/img/logo_icon.svg"
|
||||
logo-mode = false
|
||||
logo-align = "center"
|
||||
logo-height = 30
|
||||
color = "body"
|
||||
fixed = true
|
||||
|
@@ -79,6 +79,25 @@ arguments:
|
||||
comment: >-
|
||||
Address of the logo image, defaults to the parameter `logo` set in the
|
||||
`main` section of the site's parameter configuration.
|
||||
logo-align:
|
||||
type: select
|
||||
optional: true
|
||||
default: center
|
||||
comment: Alignment of the logo when the navbar is in collapsed mode.
|
||||
options:
|
||||
values:
|
||||
- start
|
||||
- center
|
||||
release: v1.15.0
|
||||
logo-mode:
|
||||
type: bool
|
||||
default: false
|
||||
optional: true
|
||||
comment: >-
|
||||
Flag indicating if the logo should support color modes. If set, the
|
||||
navbar searches for images having a matching color-mode suffix
|
||||
such as `-light` or `-dark`.
|
||||
release: v1.15.0
|
||||
# deprecated arguments
|
||||
size:
|
||||
type: select
|
||||
|
@@ -41,6 +41,8 @@
|
||||
[navigation]
|
||||
anchor = true
|
||||
logo = "/img/logo_icon.svg"
|
||||
logo-mode = false
|
||||
logo-align = "center"
|
||||
logo-height = 30
|
||||
color = "body"
|
||||
fixed = true
|
||||
|
@@ -245,6 +245,9 @@
|
||||
"fa-activity",
|
||||
"fa-address-card",
|
||||
"fa-angle-left",
|
||||
"fa-angle-right",
|
||||
"fa-angles-left",
|
||||
"fa-angles-right",
|
||||
"fa-arrow-left",
|
||||
"fa-arrow-right",
|
||||
"fa-bootstrap",
|
||||
@@ -429,6 +432,7 @@
|
||||
"navbar-mode-selector",
|
||||
"navbar-nav",
|
||||
"navbar-nav-scroll",
|
||||
"navbar-title-center",
|
||||
"navbar-toggler",
|
||||
"next",
|
||||
"no-js",
|
||||
@@ -597,7 +601,9 @@
|
||||
"visually-hidden",
|
||||
"vr",
|
||||
"w-100",
|
||||
"w-50"
|
||||
"w-50",
|
||||
"width-100",
|
||||
"width-md-auto"
|
||||
],
|
||||
"ids": [
|
||||
"abbr",
|
||||
@@ -656,11 +662,11 @@
|
||||
"docs",
|
||||
"documentation",
|
||||
"dropdown-nav-0",
|
||||
"dropdown-panel-0626353d67dd97b71dc37553482cd9d9",
|
||||
"dropdown-panel-9fe1f1ca588465dc433150e9776e7c55",
|
||||
"dropdown-panel-bc0ea07878926f7156a5c3a3f7a97fc0",
|
||||
"dropdown-panel-e96f22e4624ab2759fea46df2ded1460",
|
||||
"dropdown-panel-ee06c704eca15cd76c8e2fe77d29f364",
|
||||
"dropdown-panel-01d46922d433251f7c1674604c7060b1",
|
||||
"dropdown-panel-16c0f69a272204f0a4afc67975115e22",
|
||||
"dropdown-panel-c8aa1ee17023581002d35f4a0f7fceb4",
|
||||
"dropdown-panel-c9653d8ece86bd4bab72508877f29b38",
|
||||
"dropdown-panel-f33f815632f94c1611148ae2d42bc2c6",
|
||||
"elements-type",
|
||||
"entity-relationship-diagram",
|
||||
"example",
|
||||
@@ -678,16 +684,19 @@
|
||||
"fab-medium",
|
||||
"fab-whatsapp",
|
||||
"fab-x-twitter",
|
||||
"faq-1f62d0a5dfb896dda297f80fdd1c539c",
|
||||
"faq-1f62d0a5dfb896dda297f80fdd1c539c-heading-faq-1f62d0a5dfb896dda297f80fdd1c539c",
|
||||
"faq-1f62d0a5dfb896dda297f80fdd1c539c-item-0",
|
||||
"faq-1f62d0a5dfb896dda297f80fdd1c539c-item-1",
|
||||
"faq-1f62d0a5dfb896dda297f80fdd1c539c-item-2",
|
||||
"faq-8f17f376776b52730bd49951296cfbaa",
|
||||
"faq-8f17f376776b52730bd49951296cfbaa-heading-faq-8f17f376776b52730bd49951296cfbaa",
|
||||
"faq-8f17f376776b52730bd49951296cfbaa-item-0",
|
||||
"faq-8f17f376776b52730bd49951296cfbaa-item-1",
|
||||
"faq-8f17f376776b52730bd49951296cfbaa-item-2",
|
||||
"fas-1",
|
||||
"fas-2",
|
||||
"fas-3",
|
||||
"fas-address-card",
|
||||
"fas-angle-left",
|
||||
"fas-angle-right",
|
||||
"fas-angles-left",
|
||||
"fas-angles-right",
|
||||
"fas-arrow-left",
|
||||
"fas-arrow-right",
|
||||
"fas-chevron-right",
|
||||
@@ -773,11 +782,11 @@
|
||||
"nav-0-btn-1",
|
||||
"nav-0-btn-2",
|
||||
"nav-nav-0",
|
||||
"nav-panel-0626353d67dd97b71dc37553482cd9d9",
|
||||
"nav-panel-9fe1f1ca588465dc433150e9776e7c55",
|
||||
"nav-panel-bc0ea07878926f7156a5c3a3f7a97fc0",
|
||||
"nav-panel-e96f22e4624ab2759fea46df2ded1460",
|
||||
"nav-panel-ee06c704eca15cd76c8e2fe77d29f364",
|
||||
"nav-panel-01d46922d433251f7c1674604c7060b1",
|
||||
"nav-panel-16c0f69a272204f0a4afc67975115e22",
|
||||
"nav-panel-c8aa1ee17023581002d35f4a0f7fceb4",
|
||||
"nav-panel-c9653d8ece86bd4bab72508877f29b38",
|
||||
"nav-panel-f33f815632f94c1611148ae2d42bc2c6",
|
||||
"navbar",
|
||||
"navbar-0-collapse",
|
||||
"navbar-mode",
|
||||
@@ -786,36 +795,36 @@
|
||||
"navigation",
|
||||
"notification",
|
||||
"overview",
|
||||
"panel-0626353d67dd97b71dc37553482cd9d9-0",
|
||||
"panel-0626353d67dd97b71dc37553482cd9d9-1",
|
||||
"panel-0626353d67dd97b71dc37553482cd9d9-2",
|
||||
"panel-0626353d67dd97b71dc37553482cd9d9-btn-0",
|
||||
"panel-0626353d67dd97b71dc37553482cd9d9-btn-1",
|
||||
"panel-0626353d67dd97b71dc37553482cd9d9-btn-2",
|
||||
"panel-9fe1f1ca588465dc433150e9776e7c55-0",
|
||||
"panel-9fe1f1ca588465dc433150e9776e7c55-1",
|
||||
"panel-9fe1f1ca588465dc433150e9776e7c55-2",
|
||||
"panel-9fe1f1ca588465dc433150e9776e7c55-btn-0",
|
||||
"panel-9fe1f1ca588465dc433150e9776e7c55-btn-1",
|
||||
"panel-9fe1f1ca588465dc433150e9776e7c55-btn-2",
|
||||
"panel-bc0ea07878926f7156a5c3a3f7a97fc0-0",
|
||||
"panel-bc0ea07878926f7156a5c3a3f7a97fc0-1",
|
||||
"panel-bc0ea07878926f7156a5c3a3f7a97fc0-2",
|
||||
"panel-bc0ea07878926f7156a5c3a3f7a97fc0-btn-0",
|
||||
"panel-bc0ea07878926f7156a5c3a3f7a97fc0-btn-1",
|
||||
"panel-bc0ea07878926f7156a5c3a3f7a97fc0-btn-2",
|
||||
"panel-e96f22e4624ab2759fea46df2ded1460-0",
|
||||
"panel-e96f22e4624ab2759fea46df2ded1460-1",
|
||||
"panel-e96f22e4624ab2759fea46df2ded1460-2",
|
||||
"panel-e96f22e4624ab2759fea46df2ded1460-btn-0",
|
||||
"panel-e96f22e4624ab2759fea46df2ded1460-btn-1",
|
||||
"panel-e96f22e4624ab2759fea46df2ded1460-btn-2",
|
||||
"panel-ee06c704eca15cd76c8e2fe77d29f364-0",
|
||||
"panel-ee06c704eca15cd76c8e2fe77d29f364-1",
|
||||
"panel-ee06c704eca15cd76c8e2fe77d29f364-2",
|
||||
"panel-ee06c704eca15cd76c8e2fe77d29f364-btn-0",
|
||||
"panel-ee06c704eca15cd76c8e2fe77d29f364-btn-1",
|
||||
"panel-ee06c704eca15cd76c8e2fe77d29f364-btn-2",
|
||||
"panel-01d46922d433251f7c1674604c7060b1-0",
|
||||
"panel-01d46922d433251f7c1674604c7060b1-1",
|
||||
"panel-01d46922d433251f7c1674604c7060b1-2",
|
||||
"panel-01d46922d433251f7c1674604c7060b1-btn-0",
|
||||
"panel-01d46922d433251f7c1674604c7060b1-btn-1",
|
||||
"panel-01d46922d433251f7c1674604c7060b1-btn-2",
|
||||
"panel-16c0f69a272204f0a4afc67975115e22-0",
|
||||
"panel-16c0f69a272204f0a4afc67975115e22-1",
|
||||
"panel-16c0f69a272204f0a4afc67975115e22-2",
|
||||
"panel-16c0f69a272204f0a4afc67975115e22-btn-0",
|
||||
"panel-16c0f69a272204f0a4afc67975115e22-btn-1",
|
||||
"panel-16c0f69a272204f0a4afc67975115e22-btn-2",
|
||||
"panel-c8aa1ee17023581002d35f4a0f7fceb4-0",
|
||||
"panel-c8aa1ee17023581002d35f4a0f7fceb4-1",
|
||||
"panel-c8aa1ee17023581002d35f4a0f7fceb4-2",
|
||||
"panel-c8aa1ee17023581002d35f4a0f7fceb4-btn-0",
|
||||
"panel-c8aa1ee17023581002d35f4a0f7fceb4-btn-1",
|
||||
"panel-c8aa1ee17023581002d35f4a0f7fceb4-btn-2",
|
||||
"panel-c9653d8ece86bd4bab72508877f29b38-0",
|
||||
"panel-c9653d8ece86bd4bab72508877f29b38-1",
|
||||
"panel-c9653d8ece86bd4bab72508877f29b38-2",
|
||||
"panel-c9653d8ece86bd4bab72508877f29b38-btn-0",
|
||||
"panel-c9653d8ece86bd4bab72508877f29b38-btn-1",
|
||||
"panel-c9653d8ece86bd4bab72508877f29b38-btn-2",
|
||||
"panel-f33f815632f94c1611148ae2d42bc2c6-0",
|
||||
"panel-f33f815632f94c1611148ae2d42bc2c6-1",
|
||||
"panel-f33f815632f94c1611148ae2d42bc2c6-2",
|
||||
"panel-f33f815632f94c1611148ae2d42bc2c6-btn-0",
|
||||
"panel-f33f815632f94c1611148ae2d42bc2c6-btn-1",
|
||||
"panel-f33f815632f94c1611148ae2d42bc2c6-btn-2",
|
||||
"persona",
|
||||
"pie-chart",
|
||||
"pills",
|
||||
|
2
go.mod
2
go.mod
@@ -15,7 +15,7 @@ require (
|
||||
github.com/gethinode/mod-lottie v1.6.1 // indirect
|
||||
github.com/gethinode/mod-mermaid/v3 v3.0.1 // indirect
|
||||
github.com/gethinode/mod-simple-datatables/v2 v2.0.2 // indirect
|
||||
github.com/gethinode/mod-utils/v4 v4.16.0 // indirect
|
||||
github.com/gethinode/mod-utils/v4 v4.16.1 // indirect
|
||||
github.com/nextapps-de/flexsearch v0.0.0-20250907103239-defb38b083f0 // indirect
|
||||
github.com/twbs/bootstrap v5.3.8+incompatible // indirect
|
||||
)
|
||||
|
2
go.sum
2
go.sum
@@ -512,6 +512,8 @@ github.com/gethinode/mod-utils/v4 v4.15.1 h1:zsn6pYxMePLqsNaX+V8qND5tAbbp/CiscgZ
|
||||
github.com/gethinode/mod-utils/v4 v4.15.1/go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4=
|
||||
github.com/gethinode/mod-utils/v4 v4.16.0 h1:yroLCeQyE/xU46YIKS81ZtFsOONTmVudrv2qW7IBH5Q=
|
||||
github.com/gethinode/mod-utils/v4 v4.16.0/go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4=
|
||||
github.com/gethinode/mod-utils/v4 v4.16.1 h1:HjV6TONU7ZbXC2xZIPRupjKOUORddtQH8bb4dnULY1U=
|
||||
github.com/gethinode/mod-utils/v4 v4.16.1/go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4=
|
||||
github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3 h1:H/qVR5O4BXjRjD+5PZB+r4ug2BSJ2Of4RtwOntd+OKo=
|
||||
github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3/go.mod h1:5GdMfPAXzbA2gXBqTjC6l27kioSYzHlqDMh0+wyx7sU=
|
||||
github.com/nextapps-de/flexsearch v0.0.0-20240108021025-afd75f742f22 h1:re7L8FxbXQpnX8BgzkdUnDpsUmloGNyLmiy2ZCln8pg=
|
||||
|
@@ -78,9 +78,29 @@
|
||||
{{- end -}}
|
||||
|
||||
{{ $logo := "" }}
|
||||
{{ with $args.logo | default site.Params.navigation.logo }}
|
||||
{{ $height := index site.Params.navigation "logo-height" | default 30 }}
|
||||
{{ $logo = partial "assets/image.html" (dict "src" . "loading" "eager" "title" $title "image-height" $height) }}
|
||||
{{ $mode := index site.Params.navigation "logo-mode" | default false }}
|
||||
{{ if (not (in $args.default "logo-mode")) }}
|
||||
{{ $mode = $args.logoMode }}
|
||||
{{ end }}
|
||||
|
||||
{{ $align := index site.Params.navigation "logo-align" | default "center" }}
|
||||
{{ if (not (in $args.default "logo-align")) }}
|
||||
{{ $align = $args.logoAlign }}
|
||||
{{ end }}
|
||||
|
||||
{{ if not $args.title }}
|
||||
{{ with $args.logo | default site.Params.navigation.logo }}
|
||||
{{ $height := index site.Params.navigation "logo-height" | default 30 }}
|
||||
{{ $class := cond (eq $align "start") "my-auto" "m-auto" }}
|
||||
{{ $logo = partial "assets/image.html" (dict
|
||||
"src" .
|
||||
"loading" "eager"
|
||||
"title" $title
|
||||
"image-height" $height
|
||||
"mode" $mode
|
||||
"class" (printf "h-100 %s" $class)
|
||||
) }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{- $class := $args.class -}}
|
||||
@@ -107,26 +127,29 @@
|
||||
{{ end }}
|
||||
>
|
||||
<div class="container-xxl p-0">
|
||||
<div class="d-flex navbar-container justify-content-center">
|
||||
{{/* Insert sidebar toggler when applicable */}}
|
||||
<div class="d-flex align-items-center">
|
||||
{{- if $page.Scratch.Get "sidebar" -}}
|
||||
<button class="navbar-toggler collapsed p-0 mx-auto fw-30" type="button" data-bs-toggle="offcanvas"
|
||||
data-bs-target="#offcanvass-sidebar" aria-controls="offcanvass-sidebar" aria-label="{{ T "toggleSidebar" }}">
|
||||
{{- partial "assets/icon.html" (dict "icon" "fas ellipsis fa-fw" "spacing" false) -}}
|
||||
</button>
|
||||
{{- else -}}
|
||||
{{/* Insert invisible sidebar toggler to center logo correctly on smaller screens */}}
|
||||
<button class="navbar-toggler collapsed p-0 mx-auto invisible fw-30" type="button">
|
||||
{{- partial "assets/icon.html" (dict "icon" "fas ellipsis fa-fw" "spacing" false) -}}
|
||||
</button>
|
||||
{{- end -}}
|
||||
</div>
|
||||
<div class="d-flex navbar-container">
|
||||
{{/* Insert sidebar toggler or placeholder when applicable */}}
|
||||
{{ $sidebar := $page.Scratch.Get "sidebar" }}
|
||||
{{- if or $sidebar (eq $align "center") -}}
|
||||
<div class="d-flex align-items-center">
|
||||
{{- if $sidebar -}}
|
||||
<button class="navbar-toggler collapsed p-0 mx-auto fw-30" type="button" data-bs-toggle="offcanvas"
|
||||
data-bs-target="#offcanvass-sidebar" aria-controls="offcanvass-sidebar" aria-label="{{ T "toggleSidebar" }}">
|
||||
{{- partial "assets/icon.html" (dict "icon" "fas ellipsis fa-fw" "spacing" false) -}}
|
||||
</button>
|
||||
{{- else if eq $align "center" -}}
|
||||
{{/* Insert invisible sidebar toggler to center logo correctly on smaller screens */}}
|
||||
<button class="navbar-toggler collapsed p-0 mx-auto invisible fw-30" type="button">
|
||||
{{- partial "assets/icon.html" (dict "icon" "fas ellipsis fa-fw" "spacing" false) -}}
|
||||
</button>
|
||||
{{- end -}}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{/* Insert the brand logo or name */}}
|
||||
<div class="{{ if $logo }}mx-auto{{ else }}flex-grow-1 flex-{{ $args.breakpoint }}-grow-0{{ end }}">
|
||||
<div class="width-100 width-{{ $args.breakpoint }}-auto {{ if not $logo }}my-auto {{ end }} {{ if eq $align "center" }}text-center{{ end }}">
|
||||
<a class="navbar-brand" href="{{ site.Home.RelPermalink }}" aria-label="{{ T "home" }}">
|
||||
{{- with $logo -}}{{ . }}{{- else -}}<div class="navbar-title fw-bold h-100">{{ $title }}</div>{{- end -}}
|
||||
{{- with $logo -}}{{ . }}{{- else -}}<div class="p-0 navbar-title-{{ $align }} fw-bold h-100">{{ $title }}</div>{{- end -}}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
@@ -71,9 +71,10 @@
|
||||
{{- end -}}
|
||||
{{ if $page.Site.Params.sharing.webshare }}
|
||||
{{ $attr := dict "data-sharing-title" $page.Title "data-sharing-description" $page.Description "data-sharing-url" $page.Permalink }}
|
||||
{{ $icon := index $page.Site.Params.sharing "webshare-icon" | default "fas share-nodes"}}
|
||||
{{ partial "assets/button.html" (dict
|
||||
"href" ""
|
||||
"icon" "fas share-nodes fa-fw"
|
||||
"icon" (printf "%s fa-fw" $icon)
|
||||
"class" "btn-social p-0"
|
||||
"attributes" $attr
|
||||
"label" (T "shareLink" (T "shareSystem"))
|
||||
|
@@ -29,5 +29,6 @@
|
||||
"parent" $args.parent
|
||||
"render-type" $args.renderType
|
||||
"header-level" $args.headerLevel
|
||||
"_default" $args.default
|
||||
) -}}
|
||||
{{- end -}}
|
||||
|
@@ -57,6 +57,7 @@
|
||||
"tab" $args.tab
|
||||
"toast-id" (or $args.toastId $args.toast)
|
||||
"spacing" $spacing
|
||||
"_default" $args.default
|
||||
) -}}
|
||||
|
||||
{{ with $args.wrapper }}
|
||||
|
@@ -78,5 +78,6 @@
|
||||
"link-type" $buttonType
|
||||
"icon-rounded" $iconRounded
|
||||
"scroll" $scroll
|
||||
"_default" $args.default
|
||||
)
|
||||
-}}
|
||||
|
@@ -94,6 +94,7 @@
|
||||
"alt" $alt
|
||||
"button" $button
|
||||
"link-type" $linkType
|
||||
"_default" $args.default
|
||||
) -}}
|
||||
|
||||
{{/* Pass output to parent or current stream */}}
|
||||
|
@@ -43,5 +43,6 @@
|
||||
"anchor" $args.anchor
|
||||
"loading" $args.loading
|
||||
"page" .Page
|
||||
"_default" $args.default
|
||||
) -}}
|
||||
{{- end -}}
|
||||
|
@@ -32,7 +32,7 @@
|
||||
"caption" $args.caption
|
||||
"ratio" $ratio
|
||||
"portrait" $portrait
|
||||
"loading" $args.loading
|
||||
"loading" $args.loading
|
||||
) }}
|
||||
|
||||
{{ $current := .Parent.Scratch.Get "inner" }}
|
||||
|
@@ -36,5 +36,6 @@
|
||||
"class" $args.class
|
||||
"page" .Page
|
||||
"position" .Position
|
||||
"_default" $args.default
|
||||
) }}
|
||||
{{- end -}}
|
||||
|
@@ -46,6 +46,7 @@
|
||||
"body" $body
|
||||
"show" $args.show
|
||||
"disabled" $args.disabled
|
||||
"_default" $args.default
|
||||
)
|
||||
-}}
|
||||
|
||||
@@ -74,6 +75,7 @@
|
||||
"show" $args.show
|
||||
"disabled" $args.disabled
|
||||
"navitem-type" "accordion"
|
||||
"_default" $args.default
|
||||
)
|
||||
-}}
|
||||
|
||||
|
@@ -43,6 +43,7 @@
|
||||
"class" $args.class
|
||||
"pane" $args.pane
|
||||
"width" $args.width
|
||||
"_default" $args.default
|
||||
)
|
||||
-}}
|
||||
{{- end -}}
|
@@ -41,8 +41,10 @@
|
||||
"mode" $args.mode
|
||||
"menus" $args.menus
|
||||
"logo" $args.logo
|
||||
"logo-mode" $args.logoMode
|
||||
"title" $args.title
|
||||
"class" $args.class
|
||||
"_default" $args.default
|
||||
)
|
||||
-}}
|
||||
{{ end -}}
|
@@ -39,5 +39,6 @@
|
||||
"href" $args.href
|
||||
"content" $content
|
||||
"thumbnail" $args.thumbnail
|
||||
"_default" $args.default
|
||||
) -}}
|
||||
{{- end -}}
|
||||
|
@@ -30,5 +30,6 @@
|
||||
"pagingOptionPageSelect" $args.pagingOptionPageSelect
|
||||
"searchable" $args.searchable
|
||||
"wrap" $args.wrap
|
||||
"_default" $args.default
|
||||
) }}
|
||||
{{ end }}
|
@@ -32,5 +32,5 @@
|
||||
|
||||
{{/* Main code */}}
|
||||
{{ if not $error }}
|
||||
{{ partial "assets/timeline.html" (dict "page" $page "data" $args.data "background" $args.background) }}
|
||||
{{ partial "assets/timeline.html" (dict "page" $page "data" $args.data "background" $args.background "_default" $args.default) }}
|
||||
{{ end }}
|
@@ -33,8 +33,9 @@
|
||||
{{ if not $error -}}
|
||||
{{ partial "assets/toast.html" (dict
|
||||
"id" $id
|
||||
"title" (or $args.title $args.header)
|
||||
"message" $message
|
||||
"class" $args.class
|
||||
"title" (or $args.title $args.header)
|
||||
"message" $message
|
||||
"class" $args.class
|
||||
"_default" $args.default
|
||||
) }}
|
||||
{{ end -}}
|
||||
|
@@ -29,5 +29,6 @@
|
||||
"title" $args.title
|
||||
"autoplay" $args.autoplay
|
||||
"autotitle" $args.autotitle
|
||||
"_default" $args.default
|
||||
) }}
|
||||
{{ end -}}
|
||||
|
@@ -28,5 +28,6 @@
|
||||
"title" (or $args.title "Vimeo Video")
|
||||
"autoplay" $args.autoplay
|
||||
"autotitle" $args.autotitle
|
||||
"_default" $args.default
|
||||
) }}
|
||||
{{ end -}}
|
||||
|
@@ -28,5 +28,6 @@
|
||||
"title" (or $args.title "YouTube Video")
|
||||
"autoplay" $args.autoplay
|
||||
"autotitle" $args.autotitle
|
||||
"_default" $args.default
|
||||
) }}
|
||||
{{ end -}}
|
||||
|
Reference in New Issue
Block a user