fix: Bad UI due to head.html (#284)
This commit is contained in:
parent
bde44fadf2
commit
10e41743e5
@ -1,7 +1,6 @@
|
|||||||
<!-- set data/config yaml file based on website language -->
|
<!-- set data/config yaml file based on website language -->
|
||||||
{{ $config := cond (eq $.Site.Language.Lang "en") "config" (printf "config.%s" $.Site.Language.Lang) }}
|
{{ $config := cond (eq $.Site.Language.Lang "en") "config" (printf "config.%s" $.Site.Language.Lang) }}
|
||||||
{{ $data := index $.Site.Data $config }}
|
{{ $data := index $.Site.Data $config }}
|
||||||
{{.Site.BaseURL}}icon.png
|
|
||||||
<head>
|
<head>
|
||||||
<!-- Meta tags -->
|
<!-- Meta tags -->
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
@ -10,6 +9,7 @@
|
|||||||
content="{{if .IsHome}}{{$data.description | default $.Site.Data.config.description}}{{else}}{{.Summary}}{{end}}"
|
content="{{if .IsHome}}{{$data.description | default $.Site.Data.config.description}}{{else}}{{.Summary}}{{end}}"
|
||||||
/>
|
/>
|
||||||
<meta property="og:title" content="{{ .Title }}">
|
<meta property="og:title" content="{{ .Title }}">
|
||||||
|
<meta property="og:description" content="{{if .IsHome}}{{$data.description | default $.Site.Data.config.description}}{{else}}{{.Summary}}{{end}}">
|
||||||
<meta property="og:type" content="website">
|
<meta property="og:type" content="website">
|
||||||
<meta property="og:image" content="{{.Site.BaseURL}}icon.png">
|
<meta property="og:image" content="{{.Site.BaseURL}}icon.png">
|
||||||
<meta property="og:url" content="{{ .Permalink }}">
|
<meta property="og:url" content="{{ .Permalink }}">
|
||||||
|
Loading…
Reference in New Issue
Block a user