-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(fix): update theme.toml with min version and authors
Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
- Loading branch information
1 parent
396d013
commit ae14ccf
Showing
5 changed files
with
54 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{{- $context := .context -}} | ||
{{- $setup := .setup -}} | ||
{{- $separator := "&" -}} | ||
{{- $title := $context.Title | transform.HTMLEscape -}} | ||
{{- $description := $context.Summary | transform.Plainify | transform.HTMLEscape -}} | ||
{{- $permalink := $context.Permalink | transform.HTMLEscape -}} | ||
{{- with $setup.separator -}} | ||
{{- $separator = . -}} | ||
{{- end -}} | ||
{{- $link := fmt.Printf "%s%s" $setup.link "?" -}} | ||
{{- range $key, $value := $setup.particles -}} | ||
{{- if compare.Eq $key "params" -}} | ||
{{- $link = fmt.Printf "%s%s%s" $permalink $separator $value -}} | ||
{{- else -}} | ||
{{- if compare.Eq $value "description" -}} | ||
{{- $link = fmt.Printf "%s%s%s" $link $separator (collections.Querify $key $description) -}} | ||
{{- else if compare.Eq $value "title" -}} | ||
{{- $link = fmt.Printf "%s%s%s" $link $separator (collections.Querify $key $title) -}} | ||
{{- else if compare.Eq $value "permalink" -}} | ||
{{- $link = fmt.Printf "%s%s%s" $link $separator (collections.Querify $key $permalink) -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- return $link -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{{- /* | ||
|
||
Sorting a list of social networks defined by the order in `networks`. | ||
Only networks present in both `networks` and `setups` will be included. Items missing from `networks` are ignored. | ||
Use `networks` to setup the order of the networks and which network to enable. | ||
|
||
Usage: {{ $setups = partials.IncludeCached "func/sortNetworks.html" (dict "networks" $networks "setups" $setups) }} | ||
|
||
See also `config/_default/params.toml` > `ananke.social` for details. | ||
|
||
*/ -}} | ||
{{- $networks := .networks -}} | ||
{{- $setups := .setups -}} | ||
{{- $output := collections.Slice -}} | ||
{{- range $networks -}} | ||
{{- $network := . -}} | ||
{{- range $setups -}} | ||
{{- if compare.Eq .slug $network -}} | ||
{{- $output = $output | collections.Append . -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- return $output -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
# theme.toml template for a Hugo theme | ||
# See https://github.com/gohugoio/hugoThemes#themetoml for an example | ||
|
||
name = "Ananke Gohugo Theme" | ||
license = "MIT" | ||
licenselink = "https://github.com/theNewDynamic/gohugo-theme-ananke/blob/master/LICENSE.md" | ||
description = "A Base theme for building full featured Hugo sites" | ||
homepage = "https://github.com/theNewDynamic/gohugo-theme-ananke" | ||
tags = ["website", "starter", "responsive", "Disqus", "blog", "Tachyons", "Multilingual", "Stackbit"] | ||
features = ["posts", "shortcodes", "related content", "comments"] | ||
min_version = "0.84.0" | ||
min_version = "0.128.0" | ||
|
||
[author] | ||
name = "theNewDynamic" | ||
homepage = "https://www.thenewdynamic.com/" | ||
authors = [ | ||
{name = "Patrick Kollitsch", homepage = "https://github.com/davidsneighbour"}, | ||
{name = "Regis Philibert", homepage = "https://github.com/regisphilibert"}, | ||
{name = "Bud Parr", homepage = "https://github.com/budparr"} | ||
] |