🎨 Modify some Hugo syntax & use CSS style replace HTML DOM style.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
{{- if .Site.Params.openGraph.enable }}
|
||||
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}" />
|
||||
<meta property="og:title" content="{{ .Title | default .Site.Title }}" />
|
||||
<meta property="og:description" content="{{ .Description | default .Site.Params.Description }}" />
|
||||
@@ -6,10 +7,11 @@
|
||||
<meta property="og:image:height" content="312" />
|
||||
<meta property="og:image:type" content="image/jpeg/png/svg/jpg" />
|
||||
<meta property="og:url" content="{{ .Permalink }}"/>
|
||||
<meta property="og:site_name" content="{{ .Title | default .Site.Title }}" />
|
||||
<meta property="og:site_name" content="{{ .Site.Title }}" />
|
||||
<meta property="og:locale" content="{{ .Scratch.Get "lang" }}"/>
|
||||
{{- if .IsHome }}
|
||||
{{- if .IsPage }}
|
||||
<meta property="article:author" content="{{ .Params.Author | default .Site.Params.Author }}" />
|
||||
<meta property="article:published_time" content="{{ .PublishDate }}" />
|
||||
<meta property="article:modified_time" content="{{ .Lastmod }}" />
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user