Try to make nice link preview on social medias
parent
7ba135df01
commit
7f4380ac57
|
@ -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>
|
Loading…
Reference in New Issue