mirror of
https://github.com/TrezOne/congo-hindi-gujarati.git
synced 2026-07-20 09:51:37 -04:00
📝 Update documentation for .canonicalUrl
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
- `canonicalUrl` parameter for article front matter ([#1046](https://github.com/jpanther/congo/pull/1046))
|
- New `canonicalUrl` parameter support in article front matter ([#1046](https://github.com/jpanther/congo/pull/1046))
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ Front matter parameter default values are inherited from the theme's [base confi
|
|||||||
|`thumbnail`|`"*thumb*"`_|The text pattern to match the thumbnail image filename for this article.|
|
|`thumbnail`|`"*thumb*"`_|The text pattern to match the thumbnail image filename for this article.|
|
||||||
|`thumbnailAlt`|`featureAlt`|The alternative text description for the thumbnail image.|
|
|`thumbnailAlt`|`featureAlt`|The alternative text description for the thumbnail image.|
|
||||||
|`externalUrl`|_Not set_|If this article is published on a third-party website, the URL to this article. Providing a URL will prevent a content page being generated and any references to this article will link directly to the third-party website.|
|
|`externalUrl`|_Not set_|If this article is published on a third-party website, the URL to this article. Providing a URL will prevent a content page being generated and any references to this article will link directly to the third-party website.|
|
||||||
|
|`canonicalUrl`|`.Permalink`|When set, this overrides the canonical URL metadata for the article.|
|
||||||
|`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.|
|
||||||
|
|||||||
@@ -95,9 +95,9 @@
|
|||||||
<meta name="robots" content="{{ . }}" />
|
<meta name="robots" content="{{ . }}" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if .Params.canonicalUrl }}
|
{{ if .Params.canonicalUrl }}
|
||||||
<link rel="canonical" href="{{ .Params.canonicalUrl }}">
|
<link rel="canonical" href="{{ .Params.canonicalUrl }}" />
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<link rel="canonical" href="{{ .Permalink }}">
|
<link rel="canonical" href="{{ .Permalink }}" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ range .AlternativeOutputFormats -}}
|
{{ range .AlternativeOutputFormats -}}
|
||||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .RelPermalink ($.Site.Title | emojify) | safeHTML }}
|
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .RelPermalink ($.Site.Title | emojify) | safeHTML }}
|
||||||
@@ -133,7 +133,9 @@
|
|||||||
{{/* Schema */}}
|
{{/* Schema */}}
|
||||||
{{ partial "schema.html" . }}
|
{{ partial "schema.html" . }}
|
||||||
{{/* Me */}}
|
{{/* Me */}}
|
||||||
{{ with .Site.Language.Params.Author.name }}<meta name="author" content="{{ . }}" />{{ end }}
|
{{ with .Site.Language.Params.Author.name }}
|
||||||
|
<meta name="author" content="{{ . }}" />
|
||||||
|
{{ end }}
|
||||||
{{ with .Site.Language.Params.Author.links }}
|
{{ with .Site.Language.Params.Author.links }}
|
||||||
{{ range $links := . }}
|
{{ range $links := . }}
|
||||||
{{ range $name, $url := $links }}<link href="{{ $url }}" rel="me" />{{ end }}
|
{{ range $name, $url := $links }}<link href="{{ $url }}" rel="me" />{{ end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user