mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-09 02:54:21 +00:00
Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
cba64fccfe | ||
![]() |
bd6743acc6 | ||
![]() |
1d30b45c2b | ||
![]() |
8d8a6918b6 | ||
![]() |
58ba98f180 | ||
![]() |
736d93774a | ||
![]() |
7a0b0f318d | ||
![]() |
d65bea328f | ||
![]() |
4e84e97146 | ||
![]() |
29f8016ebc |
@@ -138,7 +138,7 @@ Hinode is inspired by the following themes:
|
|||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
The `hugo-theme-hinode` and `hugo-theme-hinode-child` codebase is released under the [MIT license][license]. The documentation (including the "README") is licensed under the Creative Commons ([CC BY-NC 4.0)][cc-by-nc-4.0] license.
|
The `hinode` and `child` codebase is released under the [MIT license][license]. The documentation (including the "README" and `docs` codebase) is licensed under the Creative Commons ([CC BY-NC 4.0)][cc-by-nc-4.0] license.
|
||||||
|
|
||||||
<!-- MARKDOWN PUBLIC LINKS -->
|
<!-- MARKDOWN PUBLIC LINKS -->
|
||||||
[blist]: https://github.com/apvarun/blist-hugo-theme
|
[blist]: https://github.com/apvarun/blist-hugo-theme
|
||||||
|
@@ -6,7 +6,7 @@ enableGitInfo = true
|
|||||||
# toml-docs-end main
|
# toml-docs-end main
|
||||||
|
|
||||||
# additional settings
|
# additional settings
|
||||||
baseURL = "https://gethinode.com/"
|
baseURL = "https://demo.gethinode.com/"
|
||||||
canonifyURLs = false
|
canonifyURLs = false
|
||||||
enableEmoji = true
|
enableEmoji = true
|
||||||
enableRobotsTXT = true
|
enableRobotsTXT = true
|
||||||
|
@@ -13,6 +13,18 @@
|
|||||||
url = "/projecten/"
|
url = "/projecten/"
|
||||||
weight = 30
|
weight = 30
|
||||||
|
|
||||||
|
[[main]]
|
||||||
|
name = "Voorbeeldproject"
|
||||||
|
url = "/nl/projecten/voorbeeldproject/"
|
||||||
|
parent = "Projecten"
|
||||||
|
weight = 1
|
||||||
|
|
||||||
|
[[main]]
|
||||||
|
name = "Ander project"
|
||||||
|
url = "/nl/projecten/ander-project/"
|
||||||
|
parent = "Projecten"
|
||||||
|
weight = 2
|
||||||
|
|
||||||
[[main]]
|
[[main]]
|
||||||
name = "Tags"
|
name = "Tags"
|
||||||
url = "/tags/"
|
url = "/tags/"
|
||||||
|
@@ -216,7 +216,7 @@ The configuration of the list pages is set in the `list` section of the `site pa
|
|||||||
| footer | "none" | Footer components of the card, displayed in small caps. Supported values are "full", "publication", "tags", and "none" (default). |
|
| footer | "none" | Footer components of the card, displayed in small caps. Supported values are "full", "publication", "tags", and "none" (default). |
|
||||||
| orientation | "stacked" | Placecement of the thumbnail, either "stacked" (default), "horizontal", or "none". |
|
| orientation | "stacked" | Placecement of the thumbnail, either "stacked" (default), "horizontal", or "none". |
|
||||||
| style | - | Optional styling attributes added to card class, e.g. "border-0" to remove the borders. |
|
| style | - | Optional styling attributes added to card class, e.g. "border-0" to remove the borders. |
|
||||||
| homepage | 3 | Number of items to display on the home page (if defined in the [configuration](#configuration-1)), defaults to 3. |
|
| homepage | 3 | Maximum number of items to display on the home page (if defined in the [configuration](#configuration-1)), defaults to 3. |
|
||||||
{.table}
|
{.table}
|
||||||
|
|
||||||
The below configuration shows the default configuration set in `config/_default/params.toml`.
|
The below configuration shows the default configuration set in `config/_default/params.toml`.
|
||||||
|
@@ -32,15 +32,18 @@
|
|||||||
{{- with index . "header" }}{{ $header = . }}{{ end -}}
|
{{- with index . "header" }}{{ $header = . }}{{ end -}}
|
||||||
{{- with index . "footer" }}{{ $footer = . }}{{ end -}}
|
{{- with index . "footer" }}{{ $footer = . }}{{ end -}}
|
||||||
{{- with index . "style" }}{{ $style = . }}{{ end -}}
|
{{- with index . "style" }}{{ $style = . }}{{ end -}}
|
||||||
|
{{- with index . "homepage" }}{{ $homepage = . }}{{ end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- $list := where site.RegularPages "Type" "in" $section -}}
|
{{- $list := where site.RegularPages "Type" "in" $section -}}
|
||||||
{{- $max := (len $list) -}}
|
{{- $max := (len $list) -}}
|
||||||
{{- if $home }}
|
{{- if $home -}}
|
||||||
{{ $paginate = false }}
|
{{- $paginate = false -}}
|
||||||
{{ $max = $homepage }}
|
{{- $max = int (math.Min $homepage $max) -}}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
|
{{- $cols = int (math.Min $cols $max) -}}
|
||||||
|
|
||||||
{{- if eq $sort "weight" -}}
|
{{- if eq $sort "weight" -}}
|
||||||
{{- $list = $list.ByWeight -}}
|
{{- $list = $list.ByWeight -}}
|
||||||
{{- else if eq $sort "publication" -}}
|
{{- else if eq $sort "publication" -}}
|
||||||
@@ -64,7 +67,7 @@
|
|||||||
{{- partial "assets/card-group.html" (dict
|
{{- partial "assets/card-group.html" (dict
|
||||||
"page" $page
|
"page" $page
|
||||||
"list" $list
|
"list" $list
|
||||||
"max" 3
|
"max" $max
|
||||||
"cols" $cols
|
"cols" $cols
|
||||||
"title" $title
|
"title" $title
|
||||||
"href" $sectionURL
|
"href" $sectionURL
|
||||||
|
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@gethinode/hinode",
|
"name": "@gethinode/hinode",
|
||||||
"version": "0.8.0",
|
"version": "0.8.1",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@gethinode/hinode",
|
"name": "@gethinode/hinode",
|
||||||
"version": "0.8.0",
|
"version": "0.8.1",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@gethinode/hinode",
|
"name": "@gethinode/hinode",
|
||||||
"version": "0.8.0",
|
"version": "0.8.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",
|
||||||
@@ -48,7 +48,7 @@
|
|||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/gethinode/hinode/issues"
|
"url": "https://github.com/gethinode/hinode/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/gethinode/hinode#readme",
|
"homepage": "https://gethinode.com",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@fortawesome/fontawesome-free": "^6.2.1",
|
"@fortawesome/fontawesome-free": "^6.2.1",
|
||||||
"@fullhuman/postcss-purgecss": "^5.0.0",
|
"@fullhuman/postcss-purgecss": "^5.0.0",
|
||||||
|
@@ -2,7 +2,7 @@ name = "Hinode"
|
|||||||
license = "MIT"
|
license = "MIT"
|
||||||
licenselink = "https://github.com/gethinode/hinode/blob/main/LICENSE"
|
licenselink = "https://github.com/gethinode/hinode/blob/main/LICENSE"
|
||||||
description = "A clean documentation and blog theme for your Hugo site based on Bootstrap 5."
|
description = "A clean documentation and blog theme for your Hugo site based on Bootstrap 5."
|
||||||
homepage = "https://github.com/gethinode/hinode"
|
homepage = "https://gethinode.com"
|
||||||
demosite = "https://demo.gethinode.com"
|
demosite = "https://demo.gethinode.com"
|
||||||
tags = ["blog", "documentation", "minimal", "modern", "customizable", "search", "bootstrap"]
|
tags = ["blog", "documentation", "minimal", "modern", "customizable", "search", "bootstrap"]
|
||||||
features = ["security aware", "fast by default", "seo-ready", "development tools", "bootstrap framework", "netlify-ready", "full text search", "page layouts"]
|
features = ["security aware", "fast by default", "seo-ready", "development tools", "bootstrap framework", "netlify-ready", "full text search", "page layouts"]
|
||||||
|
Reference in New Issue
Block a user