Skip to content
Snippets Groups Projects
Commit c49ccbce authored by Dylan Aïssi's avatar Dylan Aïssi
Browse files

Don't use .Site.Author (deprecated since Hugo v0.124.0)


Instead move these values in Params

Signed-off-by: default avatarDylan Aïssi <dylan.aissi@collabora.com>
parent ab1265f5
No related branches found
No related tags found
1 merge request!673Use official Hugo docker image instead of the outdated klakegg/hugo
Pipeline #765104 passed with warnings
......@@ -7,11 +7,9 @@ canonifyURLs = true
languageCode = "en-us"
[Author]
[Params]
name = "Apertis Project"
website = "https://www.apertis.org"
[Params]
subtitle = "Collaborative OS platform for products"
logo = "logo-white.svg"
favicon = "favicon.ico"
......
......@@ -29,7 +29,7 @@
<p>
{{ .Site.Author.name }}
{{ .Site.Params.name }}
&nbsp;&bull;&nbsp;
{{ .Site.Lastmod.Format "2006" }}
......
......@@ -13,7 +13,7 @@
<meta property="og:description" content="{{ . }}">
<meta name="twitter:description" content="{{ . | truncate 200 }}">
{{- end }}
<meta name="author" content="{{ .Site.Author.name }}"/>
<meta name="author" content="{{ .Site.Params.name }}"/>
{{- with .Site.Params.favicon }}
<link href='{{ . | absURL }}' rel='icon' type='image/x-icon'/>
{{- end -}}
......@@ -23,7 +23,7 @@
<meta name="twitter:image" content="{{ . | absURL }}" />
{{- end }}
<meta name="twitter:card" content="summary" />
{{- with .Site.Author.twitter }}
{{- with .Site.Params.twitter }}
<meta name="twitter:site" content="@{{ . }}" />
<meta name="twitter:creator" content="@{{ . }}" />
{{- end }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment