Add opengraph meta headers

Details see: https://ogp.me/
This commit is contained in:
Raoul 2019-09-07 00:48:09 +02:00
parent f334774c3b
commit 84b307bda2
No known key found for this signature in database
GPG key ID: C7493D73B67C1842
3 changed files with 11 additions and 0 deletions

View file

@ -7,6 +7,17 @@
{{ hugo.Generator }} {{ hugo.Generator }}
<link href='{{ "css/custom.css" | absURL }}' rel="stylesheet" type="text/css" /> <link href='{{ "css/custom.css" | absURL }}' rel="stylesheet" type="text/css" />
<meta property="og:type" content="website"/>
<meta property="og:site_name" content="{{ .Site.Title }}"/>
<meta property="og:title" content="{{ .Title }}"/>
<meta property="og:url" content="{{ .Permalink | absURL }}"/>
<meta property="og:image" content="{{ printf "images/cosin_icon_%s.png" (string .Site.Data.cosin.date_year) | absURL }}"/>
<meta property="og:image:type" content="image/png"/>
<meta property="og:image:width" content="128"/>
<meta property="og:image:height" content="128"/>
<meta property="og:image:alt" content="CoSin Icon {{ string .Site.Data.cosin.date_year }}"/>
</head> </head>
<body> <body>

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB