+ New og:thumbnail mechanism for pages
Use the image field to specify a custom image for embeds
This commit is contained in:
parent
46b3141611
commit
cfb301fbfd
BIN
content/media/thumbnails/dragon-soda.jpg
(Stored with Git LFS)
Normal file
BIN
content/media/thumbnails/dragon-soda.jpg
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -4,6 +4,7 @@ date: 2021-09-19
|
|||||||
draft: false
|
draft: false
|
||||||
description: Afterthoughts on making two random drinks
|
description: Afterthoughts on making two random drinks
|
||||||
category: article
|
category: article
|
||||||
|
image: "/media/img/thumbs/dragon-soda.jpg"
|
||||||
---
|
---
|
||||||
|
|
||||||
## Preface
|
## Preface
|
||||||
|
@ -15,5 +15,9 @@
|
|||||||
{{ if .IsHome }}{{ $desc = .Params.Description }}{{end}}
|
{{ if .IsHome }}{{ $desc = .Params.Description }}{{end}}
|
||||||
<meta property="og:description" content="{{ $desc }}">
|
<meta property="og:description" content="{{ $desc }}">
|
||||||
<meta property="og:type" content="website">
|
<meta property="og:type" content="website">
|
||||||
<meta property="og:image" content="/favicon.png">
|
{{ $ogimage := "/favicon.png" }}
|
||||||
|
{{ if .Params.Image }}
|
||||||
|
{{ $ogimage = .Params.Image }}
|
||||||
|
{{ end }}
|
||||||
|
<meta property="og:image" content="{{ $ogimage }}">
|
||||||
</head>
|
</head>
|
||||||
|
Loading…
Reference in New Issue
Block a user