mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-07 10:04:22 +00:00
Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
cba64fccfe | ||
![]() |
bd6743acc6 | ||
![]() |
1d30b45c2b | ||
![]() |
8d8a6918b6 | ||
![]() |
58ba98f180 | ||
![]() |
736d93774a |
@@ -138,7 +138,7 @@ Hinode is inspired by the following themes:
|
||||
|
||||
## 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 -->
|
||||
[blist]: https://github.com/apvarun/blist-hugo-theme
|
||||
|
@@ -13,6 +13,18 @@
|
||||
url = "/projecten/"
|
||||
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]]
|
||||
name = "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). |
|
||||
| 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. |
|
||||
| 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}
|
||||
|
||||
The below configuration shows the default configuration set in `config/_default/params.toml`.
|
||||
|
@@ -32,15 +32,18 @@
|
||||
{{- with index . "header" }}{{ $header = . }}{{ end -}}
|
||||
{{- with index . "footer" }}{{ $footer = . }}{{ end -}}
|
||||
{{- with index . "style" }}{{ $style = . }}{{ end -}}
|
||||
{{- with index . "homepage" }}{{ $homepage = . }}{{ end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- $list := where site.RegularPages "Type" "in" $section -}}
|
||||
{{- $max := (len $list) -}}
|
||||
{{- if $home }}
|
||||
{{ $paginate = false }}
|
||||
{{ $max = $homepage }}
|
||||
{{- if $home -}}
|
||||
{{- $paginate = false -}}
|
||||
{{- $max = int (math.Min $homepage $max) -}}
|
||||
{{ end -}}
|
||||
|
||||
{{- $cols = int (math.Min $cols $max) -}}
|
||||
|
||||
{{- if eq $sort "weight" -}}
|
||||
{{- $list = $list.ByWeight -}}
|
||||
{{- else if eq $sort "publication" -}}
|
||||
@@ -64,7 +67,7 @@
|
||||
{{- partial "assets/card-group.html" (dict
|
||||
"page" $page
|
||||
"list" $list
|
||||
"max" 3
|
||||
"max" $max
|
||||
"cols" $cols
|
||||
"title" $title
|
||||
"href" $sectionURL
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@gethinode/hinode",
|
||||
"version": "0.8.1",
|
||||
"version": "0.8.2",
|
||||
"description": "Hinode is a clean documentation and blog theme for Hugo, an open-source static site generator",
|
||||
"keywords": [
|
||||
"hugo",
|
||||
|
Reference in New Issue
Block a user