cfb301fbfd
Use the image field to specify a custom image for embeds
24 lines
1.1 KiB
HTML
24 lines
1.1 KiB
HTML
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="stylesheet" type="text/css" href="/css/style.css">
|
|
<link rel="stylesheet" href="https://unpkg.com/purecss@1.0.0/build/pure-min.css" integrity="sha384-nn4HPE8lTHyVtfCBi5yW9d20FjT8BJwUXyWZT9InLYax14RDjBj46LmSztkmNP9w" crossorigin="anonymous">
|
|
<link rel="shortcut icon" type="image/png" href="/favicon.png"/>
|
|
{{ $title := print .Title }}
|
|
{{ if .IsHome }}{{ $title = .Site.Title}}{{end}}
|
|
<title>{{ $title }}</title>
|
|
<meta property="og:title" content="{{ $title }}">
|
|
<meta property="og:site_name" content="Shockrah's not-a-blog">
|
|
{{ $url := print .RelPermalink }}
|
|
<meta property="og:url" content="https://shockrah.xyz">
|
|
{{ $desc := print .Description }}
|
|
{{ if .IsHome }}{{ $desc = .Params.Description }}{{end}}
|
|
<meta property="og:description" content="{{ $desc }}">
|
|
<meta property="og:type" content="website">
|
|
{{ $ogimage := "/favicon.png" }}
|
|
{{ if .Params.Image }}
|
|
{{ $ogimage = .Params.Image }}
|
|
{{ end }}
|
|
<meta property="og:image" content="{{ $ogimage }}">
|
|
</head>
|