mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-07 18:14:28 +00:00
Compare commits
32 Commits
v0.23.0-rc
...
v0.23.2
Author | SHA1 | Date | |
---|---|---|---|
![]() |
ce79ef402e | ||
![]() |
d63c838799 | ||
![]() |
e209704acf | ||
![]() |
01d19609c4 | ||
![]() |
ee3bdfc9a0 | ||
![]() |
a0db71d3ff | ||
![]() |
fc40ee55c3 | ||
![]() |
2f61fcabf2 | ||
![]() |
9d30a98ff3 | ||
![]() |
b3c0b7a4e8 | ||
![]() |
3705aea23d | ||
![]() |
5a7f215604 | ||
![]() |
2608545104 | ||
![]() |
a78361ec9f | ||
![]() |
9b79092328 | ||
![]() |
41198b04be | ||
![]() |
c4684f0073 | ||
![]() |
063cabc610 | ||
![]() |
72304ff12e | ||
![]() |
d7e0aacd9a | ||
![]() |
3add028519 | ||
![]() |
1ef26ef98b | ||
![]() |
5d56f2bd01 | ||
![]() |
71c57b277b | ||
![]() |
38afd31cff | ||
![]() |
7a460ca0de | ||
![]() |
f3d5fef59d | ||
![]() |
10f1519c33 | ||
![]() |
aecb6d45ff | ||
![]() |
1c763939b9 | ||
![]() |
fbabf9c02c | ||
![]() |
d584761891 |
@@ -162,7 +162,7 @@ arguments:
|
|||||||
parent: cascade
|
parent: cascade
|
||||||
optional: true
|
optional: true
|
||||||
default: start
|
default: start
|
||||||
release: v0.23.0-alpha2
|
release: v0.23.0
|
||||||
comment: Icon alignment.
|
comment: Icon alignment.
|
||||||
options:
|
options:
|
||||||
values:
|
values:
|
||||||
@@ -173,7 +173,7 @@ arguments:
|
|||||||
type: string
|
type: string
|
||||||
parent: cascade
|
parent: cascade
|
||||||
optional: true
|
optional: true
|
||||||
release: v0.23.0-alpha2
|
release: v0.23.0
|
||||||
comment: Icon style.
|
comment: Icon style.
|
||||||
orientation:
|
orientation:
|
||||||
type: select
|
type: select
|
||||||
@@ -191,15 +191,21 @@ arguments:
|
|||||||
type: bool
|
type: bool
|
||||||
parent: cascade
|
parent: cascade
|
||||||
optional: true
|
optional: true
|
||||||
release: v0.23.0-alpha2
|
release: v0.23.0
|
||||||
comment: Apply subtle background colors.
|
comment: Apply subtle background colors.
|
||||||
button:
|
button:
|
||||||
type: bool
|
type: bool
|
||||||
parent: cascade
|
parent: cascade
|
||||||
optional: true
|
optional: true
|
||||||
release: v0.23.0-beta
|
release: v0.23.0
|
||||||
comment: >-
|
comment: >-
|
||||||
Flag indicating the cards should include a button that links to the provided address.
|
Flag indicating the cards should include a button that links to the provided address.
|
||||||
|
buttonLabel:
|
||||||
|
type: string
|
||||||
|
optional: true
|
||||||
|
release: v0.23.2
|
||||||
|
comment: >-
|
||||||
|
Label of the link button, defaults to the card title.
|
||||||
hook:
|
hook:
|
||||||
type: string
|
type: string
|
||||||
optional: true
|
optional: true
|
||||||
|
@@ -119,4 +119,4 @@ arguments:
|
|||||||
type: string
|
type: string
|
||||||
optional: true
|
optional: true
|
||||||
comment: Class attribute of the figure caption, e.g. `px-4`.
|
comment: Class attribute of the figure caption, e.g. `px-4`.
|
||||||
release: v0.23.0-beta
|
release: v0.23.0
|
||||||
|
@@ -26,7 +26,7 @@ Additional features include:
|
|||||||
* Support for multiple languages
|
* Support for multiple languages
|
||||||
* Reusable Bootstrap components through configurable shortcodes and partials
|
* Reusable Bootstrap components through configurable shortcodes and partials
|
||||||
* Versioned documentation, including sidebar navigation and version switcher
|
* Versioned documentation, including sidebar navigation and version switcher
|
||||||
* Reponsive image handling for multiple screen sizes and resolutions
|
* Responsive image handling for multiple screen sizes and resolutions
|
||||||
* Optimized search results, scoring 100 points for SEO on [PageSpeed Insights]({{< param "links.pagespeed" >}})
|
* Optimized search results, scoring 100 points for SEO on [PageSpeed Insights]({{< param "links.pagespeed" >}})
|
||||||
* Secure by default, scoring A+ on [Mozilla Observatory test]({{< param "links.observatory" >}})
|
* Secure by default, scoring A+ on [Mozilla Observatory test]({{< param "links.observatory" >}})
|
||||||
{.tickmark}
|
{.tickmark}
|
||||||
|
2
go.mod
2
go.mod
@@ -5,7 +5,7 @@ go 1.19
|
|||||||
require (
|
require (
|
||||||
github.com/airbnb/lottie-web v5.12.2+incompatible // indirect
|
github.com/airbnb/lottie-web v5.12.2+incompatible // indirect
|
||||||
github.com/gethinode/mod-bootstrap v1.2.5 // indirect
|
github.com/gethinode/mod-bootstrap v1.2.5 // indirect
|
||||||
github.com/gethinode/mod-flexsearch v1.9.0 // indirect
|
github.com/gethinode/mod-flexsearch v1.10.0 // indirect
|
||||||
github.com/gethinode/mod-fontawesome v1.8.1 // indirect
|
github.com/gethinode/mod-fontawesome v1.8.1 // indirect
|
||||||
github.com/gethinode/mod-katex v1.0.7 // indirect
|
github.com/gethinode/mod-katex v1.0.7 // indirect
|
||||||
github.com/gethinode/mod-leaflet v1.0.0 // indirect
|
github.com/gethinode/mod-leaflet v1.0.0 // indirect
|
||||||
|
2
go.sum
2
go.sum
@@ -50,6 +50,8 @@ github.com/gethinode/mod-flexsearch v1.8.1 h1:xwPvmmxd8Tdyxp8/rnd9KRGqIDtZs/YwAQ
|
|||||||
github.com/gethinode/mod-flexsearch v1.8.1/go.mod h1:L8hrnpupx27cez2ObMX8gWnhbW6qss4HGH1Ea4UaBRQ=
|
github.com/gethinode/mod-flexsearch v1.8.1/go.mod h1:L8hrnpupx27cez2ObMX8gWnhbW6qss4HGH1Ea4UaBRQ=
|
||||||
github.com/gethinode/mod-flexsearch v1.9.0 h1:AE+w7QeZTxh36JNTG+CASDLxaqlCZKn+EUD6ulnPGak=
|
github.com/gethinode/mod-flexsearch v1.9.0 h1:AE+w7QeZTxh36JNTG+CASDLxaqlCZKn+EUD6ulnPGak=
|
||||||
github.com/gethinode/mod-flexsearch v1.9.0/go.mod h1:L8hrnpupx27cez2ObMX8gWnhbW6qss4HGH1Ea4UaBRQ=
|
github.com/gethinode/mod-flexsearch v1.9.0/go.mod h1:L8hrnpupx27cez2ObMX8gWnhbW6qss4HGH1Ea4UaBRQ=
|
||||||
|
github.com/gethinode/mod-flexsearch v1.10.0 h1:ymlHu5G2635D/h2axG4jgpGS+Vvtzxg07SZX8pJOJSo=
|
||||||
|
github.com/gethinode/mod-flexsearch v1.10.0/go.mod h1:L8hrnpupx27cez2ObMX8gWnhbW6qss4HGH1Ea4UaBRQ=
|
||||||
github.com/gethinode/mod-fontawesome v1.0.2 h1:ZSK6D20/w4y5GnfYfTBB58uHD0ChIfkpKfRGwioS9rg=
|
github.com/gethinode/mod-fontawesome v1.0.2 h1:ZSK6D20/w4y5GnfYfTBB58uHD0ChIfkpKfRGwioS9rg=
|
||||||
github.com/gethinode/mod-fontawesome v1.0.2/go.mod h1:Ki1qkWEOiF0hQpCgWeZRw+HkpL6nd1DxKFptU0O2feI=
|
github.com/gethinode/mod-fontawesome v1.0.2/go.mod h1:Ki1qkWEOiF0hQpCgWeZRw+HkpL6nd1DxKFptU0O2feI=
|
||||||
github.com/gethinode/mod-fontawesome v1.1.0 h1:rsDzUI+3ZlS/do2ff3ne8/z3KwHeysmuA+WsXlumXXk=
|
github.com/gethinode/mod-fontawesome v1.1.0 h1:rsDzUI+3ZlS/do2ff3ne8/z3KwHeysmuA+WsXlumXXk=
|
||||||
|
@@ -32,6 +32,7 @@
|
|||||||
{{- $subtle := .subtle }}
|
{{- $subtle := .subtle }}
|
||||||
{{- $loading := .loading -}}
|
{{- $loading := .loading -}}
|
||||||
{{- $button := .button -}}
|
{{- $button := .button -}}
|
||||||
|
{{- $buttonLabel := .buttonLabel -}}
|
||||||
{{- $hook := .hook | default "assets/card.html" }}
|
{{- $hook := .hook | default "assets/card.html" }}
|
||||||
|
|
||||||
<!-- Override arguments -->
|
<!-- Override arguments -->
|
||||||
@@ -104,6 +105,7 @@
|
|||||||
"style" $style
|
"style" $style
|
||||||
"align" $align
|
"align" $align
|
||||||
"button" $button
|
"button" $button
|
||||||
|
"buttonLabel" $buttonLabel
|
||||||
) -}}
|
) -}}
|
||||||
{{- $params = merge $params $element }}
|
{{- $params = merge $params $element }}
|
||||||
|
|
||||||
|
@@ -30,6 +30,7 @@
|
|||||||
{{- $title := .title -}}
|
{{- $title := .title -}}
|
||||||
{{- $subtle := .subtle -}}
|
{{- $subtle := .subtle -}}
|
||||||
{{- $button := .button -}}
|
{{- $button := .button -}}
|
||||||
|
{{- $buttonLabel := .buttonLabel -}}
|
||||||
{{- $colorStyle := "" -}}
|
{{- $colorStyle := "" -}}
|
||||||
{{ if $color }}
|
{{ if $color }}
|
||||||
{{ if $subtle }}
|
{{ if $subtle }}
|
||||||
@@ -76,12 +77,16 @@
|
|||||||
{{- if $href -}}
|
{{- if $href -}}
|
||||||
<a href="{{ $href }}" class="{{ if $color }}link-bg-{{ $color }}{{ else }}card-body-link{{ end }} stretched-link">
|
<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>
|
<p class="card-title fs-5 fw-bold">{{ $title }}</p>
|
||||||
{{ with $description }}<p class="card-text {{ if $color }}link-bg-{{ $color }}{{ else }}card-body-link{{ end }}">{{ . }}</p>{{ end -}}
|
{{ with $description }}
|
||||||
|
<div class="card-text {{ if $color }}link-bg-{{ $color }}{{ else }}card-body-link{{ end }}">
|
||||||
|
{{ . | safeHTML }}
|
||||||
|
</div>
|
||||||
|
{{ end -}}
|
||||||
</a>
|
</a>
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
<div>
|
<div>
|
||||||
{{ with $title }}<p class="card-title fs-5 fw-bold">{{ . }}</p>{{ end -}}
|
{{ with $title }}<p class="card-title fs-5 fw-bold">{{ . }}</p>{{ end -}}
|
||||||
{{ with $description }}<p class="card-text">{{ . }}</p>{{ end -}}
|
{{ with $description }}<div class="card-text">{{ . | safeHTML }}</div>{{ end -}}
|
||||||
</div>
|
</div>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
@@ -141,7 +146,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{{ if $page }}<div>{{ partial "card-caption.html" (dict "page" $page "keywords" $footer "color" $color) }}</div>{{ end }}
|
{{ if $page }}<div>{{ partial "card-caption.html" (dict "page" $page "keywords" $footer "color" $color) }}</div>{{ end }}
|
||||||
{{ if $button }}
|
{{ if $button }}
|
||||||
{{ $label := $title | default (T "readMore") }}
|
{{ $label := (or $buttonLabel $title) | default (T "readMore") }}
|
||||||
<div>{{ partial "assets/button.html" (dict "title" $label "icon" "fas chevron-right" "href" $href "outline" true "size" "sm" "class" "card-button mb-n4") }}</div>
|
<div>{{ partial "assets/button.html" (dict "title" $label "icon" "fas chevron-right" "href" $href "outline" true "size" "sm" "class" "card-button mb-n4") }}</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
@@ -164,7 +169,7 @@
|
|||||||
{{ if $page }}{{- partial "card-caption.html" (dict "page" $page "keywords" $footer "color" $color) -}}{{ end }}
|
{{ if $page }}{{- partial "card-caption.html" (dict "page" $page "keywords" $footer "color" $color) -}}{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ if $button }}
|
{{ if $button }}
|
||||||
{{ $label := $title | default (T "readMore") }}
|
{{ $label := (or $buttonLabel $title) | default (T "readMore") }}
|
||||||
<div class="row p-{{ $padding }}" >
|
<div class="row p-{{ $padding }}" >
|
||||||
<div class="{{ if eq $orientation "horizontal-sm" }}col-4 col-md-2{{ else if eq $orientation "horizontal" }}col-4{{ end }}"></div>
|
<div class="{{ if eq $orientation "horizontal-sm" }}col-4 col-md-2{{ else if eq $orientation "horizontal" }}col-4{{ end }}"></div>
|
||||||
<div class="col {{ if eq $orientation "horizontal-sm" }}px-2{{ else if eq $orientation "horizontal"}}px-1 {{ else }}px-2 pt-1{{ end }}">
|
<div class="col {{ if eq $orientation "horizontal-sm" }}px-2{{ else if eq $orientation "horizontal"}}px-1 {{ else }}px-2 pt-1{{ end }}">
|
||||||
|
@@ -35,9 +35,7 @@
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- range $index, $element := resources.Match "icons/**.svg" -}}
|
{{- range resources.Match "icons/**.svg" -}}
|
||||||
{{ with resources.Get $element }}
|
{{- $icon := . | resources.ExecuteAsTemplate .RelPermalink $params -}}
|
||||||
{{- $icon := . | resources.ExecuteAsTemplate $element $params -}}
|
|
||||||
{{- $icon.Publish -}}
|
{{- $icon.Publish -}}
|
||||||
{{ end }}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
@@ -4,8 +4,8 @@
|
|||||||
command = "npm run build:example"
|
command = "npm run build:example"
|
||||||
|
|
||||||
[build.environment]
|
[build.environment]
|
||||||
DART_SASS_VERSION = "1.71.1"
|
DART_SASS_VERSION = "1.72.0"
|
||||||
HUGO_VERSION = "0.122.0"
|
HUGO_VERSION = "0.124.0"
|
||||||
HUGO_ENV = "production"
|
HUGO_ENV = "production"
|
||||||
HUGO_ENABLEGITINFO = "true"
|
HUGO_ENABLEGITINFO = "true"
|
||||||
NODE_VERSION = "18.19.1"
|
NODE_VERSION = "18.19.1"
|
||||||
|
12
package-lock.json
generated
12
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@gethinode/hinode",
|
"name": "@gethinode/hinode",
|
||||||
"version": "0.23.0-rc.1",
|
"version": "0.23.2",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@gethinode/hinode",
|
"name": "@gethinode/hinode",
|
||||||
"version": "0.23.0-rc.1",
|
"version": "0.23.2",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@fullhuman/postcss-purgecss": "^5.0.0",
|
"@fullhuman/postcss-purgecss": "^5.0.0",
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
"eslint-plugin-import": "^2.29.1",
|
"eslint-plugin-import": "^2.29.1",
|
||||||
"eslint-plugin-n": "^16.6.2",
|
"eslint-plugin-n": "^16.6.2",
|
||||||
"eslint-plugin-promise": "^6.1.1",
|
"eslint-plugin-promise": "^6.1.1",
|
||||||
"hugo-bin": "^0.120.8",
|
"hugo-bin": "^0.121.0",
|
||||||
"markdownlint-cli2": "^0.12.1",
|
"markdownlint-cli2": "^0.12.1",
|
||||||
"netlify-plugin-hugo-cache-resources": "^0.2.1",
|
"netlify-plugin-hugo-cache-resources": "^0.2.1",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
@@ -4376,9 +4376,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/hugo-bin": {
|
"node_modules/hugo-bin": {
|
||||||
"version": "0.120.8",
|
"version": "0.121.0",
|
||||||
"resolved": "https://registry.npmjs.org/hugo-bin/-/hugo-bin-0.120.8.tgz",
|
"resolved": "https://registry.npmjs.org/hugo-bin/-/hugo-bin-0.121.0.tgz",
|
||||||
"integrity": "sha512-i6JVZikfFLysMnpFw/N5/pq9Lx4ozNk3FzeHwDA5hahZfwHMf2ocJSDlKaFdohrRtefuUeLxXOSUwCZ0CJ9tzQ==",
|
"integrity": "sha512-oftq6x7h8lKhGe4W2WiTLm38GNqGUqWgXoWjTjMHXkoDe7gizJHPpt9tzX5USlcEJ62vbfsVP+5yPVZxxzvxlw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@gethinode/hinode",
|
"name": "@gethinode/hinode",
|
||||||
"version": "0.23.0-rc.1",
|
"version": "0.23.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",
|
||||||
@@ -78,7 +78,7 @@
|
|||||||
"eslint-plugin-import": "^2.29.1",
|
"eslint-plugin-import": "^2.29.1",
|
||||||
"eslint-plugin-n": "^16.6.2",
|
"eslint-plugin-n": "^16.6.2",
|
||||||
"eslint-plugin-promise": "^6.1.1",
|
"eslint-plugin-promise": "^6.1.1",
|
||||||
"hugo-bin": "^0.120.8",
|
"hugo-bin": "^0.121.0",
|
||||||
"markdownlint-cli2": "^0.12.1",
|
"markdownlint-cli2": "^0.12.1",
|
||||||
"netlify-plugin-hugo-cache-resources": "^0.2.1",
|
"netlify-plugin-hugo-cache-resources": "^0.2.1",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
|
Reference in New Issue
Block a user