mirror of https://github.com/jpanther/congo.git
✨ Add `robots` parameters
parent
efc317e612
commit
37e8a8bc91
|
@ -4,14 +4,17 @@ All notable changes to Congo will be documented in this file. Things that need a
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
### Added
|
||||||
|
- New `robots` parameter to add metadata to guide robots on how to handle specific content
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- URLs are relative by default which allows the theme to be more flexible in different deployment scenarios
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- Missing dark style for group subheadings on article listings
|
- Missing dark style for group subheadings on article listings
|
||||||
- Fathom Analytics script included twice when using custom domain
|
- Fathom Analytics script included twice when using custom domain
|
||||||
- Recent heading on homepage profile layout misaligned
|
- Recent heading on homepage profile layout misaligned
|
||||||
|
|
||||||
### Changed
|
|
||||||
- URLs are relative by default which allows the theme to be more flexible in different deployment scenarios
|
|
||||||
|
|
||||||
## [1.2.0] - 2021-08-22
|
## [1.2.0] - 2021-08-22
|
||||||
### Added
|
### Added
|
||||||
- Multiple colour schemes
|
- Multiple colour schemes
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
colorScheme = "congo"
|
colorScheme = "congo"
|
||||||
# description = "My awesome website"
|
# description = "My awesome website"
|
||||||
# mainSections = ["section1", "section2"]
|
# mainSections = ["section1", "section2"]
|
||||||
|
# robots = ""
|
||||||
|
|
||||||
[homepage]
|
[homepage]
|
||||||
layout = "page" # valid options: page, profile, custom
|
layout = "page" # valid options: page, profile, custom
|
||||||
|
|
|
@ -57,6 +57,7 @@ Many of the article defaults here can be overridden on a per article basis by sp
|
||||||
|`colorScheme`|string|`"congo"`|The theme colour scheme to use. Valid values are `congo` (default), `avocado`, `ocean` and `fire`.|
|
|`colorScheme`|string|`"congo"`|The theme colour scheme to use. Valid values are `congo` (default), `avocado`, `ocean` and `fire`.|
|
||||||
|`description`|string|_Not set_|The description of the website for metadata purposes.|
|
|`description`|string|_Not set_|The description of the website for metadata purposes.|
|
||||||
|`mainSections`|array of strings|_Not set_|The sections that should be displayed in the recent articles list. If not provided the section with the greatest number of articles is used.|
|
|`mainSections`|array of strings|_Not set_|The sections that should be displayed in the recent articles list. If not provided the section with the greatest number of articles is used.|
|
||||||
|
|`robots`|string|_Not set_|String that indicates how robots should handle your site. 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.|
|
||||||
|`homepage.layout`|string|`"page"`|The layout of the homepage. Valid values are `page`, `profile` or `custom`. When set to `custom`, you must provide your own layout by creating a `/layouts/partials/home/custom.html` file. Refer to the [Homepage Layout]({{< ref "homepage-layout" >}}) section for more details.|
|
|`homepage.layout`|string|`"page"`|The layout of the homepage. Valid values are `page`, `profile` or `custom`. When set to `custom`, you must provide your own layout by creating a `/layouts/partials/home/custom.html` file. Refer to the [Homepage Layout]({{< ref "homepage-layout" >}}) section for more details.|
|
||||||
|`homepage.showRecent`|boolean|`false`|Whether or not to display the recent articles list on the homepage.|
|
|`homepage.showRecent`|boolean|`false`|Whether or not to display the recent articles list on the homepage.|
|
||||||
|`article.showDate`|boolean|`true`|Whether or not article dates are displayed.|
|
|`article.showDate`|boolean|`true`|Whether or not article dates are displayed.|
|
||||||
|
|
|
@ -20,6 +20,7 @@ Front matter parameter default values are inherited from the theme's [base confi
|
||||||
|`showEdit`|boolean|`article.showEdit`|Whether or not the link to edit the article content should be displayed.|
|
|`showEdit`|boolean|`article.showEdit`|Whether or not the link to edit the article content should be displayed.|
|
||||||
|`editURL`|string|`article.editURL`|When `showEdit` is active, the URL for the edit link.|
|
|`editURL`|string|`article.editURL`|When `showEdit` is active, the URL for the edit link.|
|
||||||
|`editAppendPath`|boolean|`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`|boolean|`article.editAppendPath`|When `showEdit` is active, whether or not the path to the current article should be appended to the URL set at `editURL`.|
|
||||||
|
|`robots`|string|_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.|
|
||||||
|`showHeadingAnchors`|boolean|`article.showHeadingAnchors`|Whether or not heading anchor links are displayed alongside headings within this article.|
|
|`showHeadingAnchors`|boolean|`article.showHeadingAnchors`|Whether or not heading anchor links are displayed alongside headings within this article.|
|
||||||
|`showPagination`|boolean|`article.showPagination`|Whether or not the next/previous article links are displayed in the article footer.|
|
|`showPagination`|boolean|`article.showPagination`|Whether or not the next/previous article links are displayed in the article footer.|
|
||||||
|`showReadingTime`|boolean|`article.showReadingTime`|Whether or not article reading times are displayed.|
|
|`showReadingTime`|boolean|`article.showReadingTime`|Whether or not article reading times are displayed.|
|
||||||
|
|
|
@ -22,6 +22,12 @@
|
||||||
{{ with .Site.Params.keywords -}}
|
{{ with .Site.Params.keywords -}}
|
||||||
<meta name="keywords" content="{{ . }}" />
|
<meta name="keywords" content="{{ . }}" />
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{ with .Site.Params.robots }}
|
||||||
|
<meta name="robots" content="{{ . }}" />
|
||||||
|
{{ end }}
|
||||||
|
{{ with .Params.robots }}
|
||||||
|
<meta name="robots" content="{{ . }}" />
|
||||||
|
{{ end }}
|
||||||
<link rel="canonical" href="{{ .Permalink }}" />
|
<link rel="canonical" href="{{ .Permalink }}" />
|
||||||
{{ range .AlternativeOutputFormats -}}
|
{{ range .AlternativeOutputFormats -}}
|
||||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
|
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
|
||||||
|
|
Loading…
Reference in New Issue