Try to make nice link preview on social medias

master
Quentin Duchemin 2023-10-12 20:25:17 +02:00
parent 7ba135df01
commit 7f4380ac57
Signed by: Chosto
GPG Key ID: 96AB8AE7DFEA3D74
1 changed files with 14 additions and 0 deletions

View File

@ -36,4 +36,18 @@
<meta name="msapplication-TileImage" content="favicon-144.png"> <meta name="msapplication-TileImage" content="favicon-144.png">
<meta name="msapplication-TileColor" content="#FFFFFF"> <meta name="msapplication-TileColor" content="#FFFFFF">
<title>{{ .Site.Title }}</title> <title>{{ .Site.Title }}</title>
<meta property="og:title" content="{{ .Title }}">
<meta content="article" property="og:type">
<meta property="og:site_name" content="Carnet web de Quentin">
<meta content="{{ .Permalink }}" property="og:url">
<meta name="twitter:title" content="{{ .Title }}">
<meta name="description" content="{{ .Params.summary }}">
<meta property="og:description" content="{{ .Params.summary }}">
<meta name="twitter:description" content="{{ .Params.summary }}">
{{ with .Resources.GetMatch "top.jpg" }}
{{ $image := .Fill "480x320 left" }}
{{ $imageURL := $image.Permalink }}
<meta property="og:image" content="{{ $imageURL }}">
<meta name="twitter:image" content="{{ $imageURL }}">
{{ end }}
</head> </head>