mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-28 19:43:31 +08:00
#1028 Author not displayed on demo site
Added Author displaying part of code in opengraphs provider and base.html
This commit is contained in:
parent
fddab05362
commit
07e3da5008
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"livePreview.defaultPreviewPath": "/layouts/_default/archives.html"
|
||||
}
|
@ -33,11 +33,15 @@
|
||||
{{- end -}}
|
||||
{{- else -}}
|
||||
{{- if not .Site.Lastmod.IsZero -}}
|
||||
<meta property='og:updated_time' content='{{ .Site.Lastmod.Format " 2006-01-02T15:04:05-07:00 " | safeHTML }}'/>
|
||||
<meta property='og:updated_time' content='{{ .Site.Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }}'/>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{ $image := partialCached "helper/image" (dict "Context" . "Type" "opengraph") .RelPermalink "opengraph" }}
|
||||
{{- if $image.exists -}}
|
||||
<meta property='og:image' content='{{ absURL $image.permalink }}' />
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- range .Param "authors" -}}
|
||||
<meta property='article:author' content='{{ . }}' />
|
||||
{{- end -}}
|
||||
|
Loading…
Reference in New Issue
Block a user