Compare commits

...

4 Commits

Author SHA1 Message Date
Mark Dumay
73446e5580 Merge pull request #135 from gethinode/develop
Refinement
2023-02-06 09:40:42 +01:00
mark
223ae24416 Add relref argument 2023-02-06 05:21:16 +01:00
mark
4167cf1695 Bump package version 2023-02-06 05:21:00 +01:00
mark
cf98b4d067 Add support for minimal layout 2023-02-06 05:01:35 +01:00
3 changed files with 8 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{{- define "partials/header.html" -}}
{{ if site.Params.navigation.breadcrumb }}{{ partial "breadcrumb.html" . }}{{ end -}}
{{ if eq .Layout "docs"}}
{{ if in (slice "docs" "minimal") .Layout }}
<h1>{{ .Title }}</h1>
{{ else }}
{{ $lastmodstr := (partial "utilities/date.html" (dict "date" .Lastmod "format" "long")) -}}
@@ -115,4 +115,4 @@
</div>
</div>
{{ end -}}
{{ end -}}
{{ end -}}

View File

@@ -1,6 +1,7 @@
<!--
Displays a button. The shortcode supports the following arguments:
"href" Optional address for the button or hyperlink. Automatically assigned when using collapse.
"relref" Optional name of the page to link to. Replaces "href" with a relative link if set.
"id" Optional id of the button, to be used in the DOM.
"state" Optional state of the button, either "enabled" (default), "disabled", "active", or "inactive".
"size" Optional size of the button, either "sm", "md" (default), or "lg".
@@ -62,7 +63,11 @@
{{ $tooltip := .Get "tooltip" -}}
{{ $collapse := .Get "collapse" -}}
{{ $href := .Get "href" -}}
{{ $relref := .Get "relref" }}
{{ $id := .Get "id" -}}
{{ if $relref }}
{{ $href = relref . $relref }}
{{ end }}
{{ $placement := "top" -}}
{{ with .Get "placement" }}{{ $placement = . }}{{ end -}}

View File

@@ -1,6 +1,6 @@
{
"name": "@gethinode/hinode",
"version": "0.8.3",
"version": "0.8.4",
"description": "Hinode is a clean documentation and blog theme for Hugo, an open-source static site generator",
"keywords": [
"hugo",