mirror of https://github.com/jpanther/congo.git
✨ Add `keywords` front matter support
parent
5fbe11611b
commit
3fcd6211a8
|
@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
|
- Front matter keywords support on a per article basis
|
||||||
- Indonesian translation ([#398](https://github.com/jpanther/congo/pull/398))
|
- Indonesian translation ([#398](https://github.com/jpanther/congo/pull/398))
|
||||||
- Mastodon sharing links ([#405](https://github.com/jpanther/congo/pull/405))
|
- Mastodon sharing links ([#405](https://github.com/jpanther/congo/pull/405))
|
||||||
- `homepage.recentLimit` parameter to adjust the maximum number of recent items listed on the homepage ([#411](https://github.com/jpanther/congo/pull/411))
|
- `homepage.recentLimit` parameter to adjust the maximum number of recent items listed on the homepage ([#411](https://github.com/jpanther/congo/pull/411))
|
||||||
|
|
|
@ -20,6 +20,7 @@ Front matter parameter default values are inherited from the theme's [base confi
|
||||||
|`editURL`|`article.editURL`|When `showEdit` is active, the URL for the edit link.|
|
|`editURL`|`article.editURL`|When `showEdit` is active, the URL for the edit link.|
|
||||||
|`editAppendPath`|`article.editAppendPath`|When `showEdit` is active, whether or not the path to the current article should be appended to the URL set at `editURL`.|
|
|`editAppendPath`|`article.editAppendPath`|When `showEdit` is active, whether or not the path to the current article should be appended to the URL set at `editURL`.|
|
||||||
|`groupByYear`|`list.groupByYear`|Whether or not articles are grouped by year on list pages.|
|
|`groupByYear`|`list.groupByYear`|Whether or not articles are grouped by year on list pages.|
|
||||||
|
|`keywords`|_Not set_|Any keywords that should be included in the article metadata.|
|
||||||
|`menu`|_Not set_|When a value is provided, a link to this article will appear in the named menus. Valid values are `main` or `footer`.|
|
|`menu`|_Not set_|When a value is provided, a link to this article will appear in the named menus. Valid values are `main` or `footer`.|
|
||||||
|`robots`|_Not set_|String that indicates how robots should handle this article. If set, it will be output in the page head. Refer to [Google's docs](https://developers.google.com/search/docs/advanced/robots/robots_meta_tag#directives) for valid values.|
|
|`robots`|_Not set_|String that indicates how robots should handle this article. If set, it will be output in the page head. Refer to [Google's docs](https://developers.google.com/search/docs/advanced/robots/robots_meta_tag#directives) for valid values.|
|
||||||
|`sharingLinks`|`article.sharingLinks`|Which sharing links to display at the end of this article. When not provided, or set to `false` no links will be displayed.|
|
|`sharingLinks`|`article.sharingLinks`|Which sharing links to display at the end of this article. When not provided, or set to `false` no links will be displayed.|
|
||||||
|
|
|
@ -16,8 +16,8 @@
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{/* Metadata */}}
|
{{/* Metadata */}}
|
||||||
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ if .IsPage }}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}" />
|
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ if .IsPage }}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}" />
|
||||||
{{ with .Site.Params.keywords -}}
|
{{ with union .Site.Params.keywords .Params.keywords -}}
|
||||||
<meta name="keywords" content="{{ . }}" />
|
<meta name="keywords" content="{{ delimit . `, `}}" />
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{ with .Site.Params.robots }}
|
{{ with .Site.Params.robots }}
|
||||||
<meta name="robots" content="{{ . }}" />
|
<meta name="robots" content="{{ . }}" />
|
||||||
|
|
Loading…
Reference in New Issue