Compare commits

...

6 Commits

Author SHA1 Message Date
Mark Dumay
cba64fccfe Merge pull request #132 from gethinode/develop
Refinement
2023-02-04 15:08:50 +01:00
mark
bd6743acc6 Bump package version 2023-02-04 14:57:28 +01:00
mark
1d30b45c2b Fix #131 2023-02-04 14:57:10 +01:00
mark
8d8a6918b6 Clarify homepage setting 2023-02-04 14:55:17 +01:00
mark
58ba98f180 Add Dutch projects to main navbar 2023-02-04 14:55:02 +01:00
mark
736d93774a Update codebase names in license statement 2023-02-04 06:37:51 +01:00
5 changed files with 22 additions and 7 deletions

View File

@@ -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

View File

@@ -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/"

View File

@@ -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`.

View File

@@ -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

View File

@@ -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",