Merge pull request #6 from kumitterer/main
feat: add Open Graph and Twitter meta tags
This commit is contained in:
commit
1ecbf7c4fb
1 changed files with 10 additions and 0 deletions
|
@ -7,4 +7,14 @@
|
||||||
{{ $style := resources.Get "css/style.css" }}
|
{{ $style := resources.Get "css/style.css" }}
|
||||||
{{ $css := $style | minify | fingerprint }}
|
{{ $css := $style | minify | fingerprint }}
|
||||||
<link rel="stylesheet" href="{{ $css.RelPermalink }}">
|
<link rel="stylesheet" href="{{ $css.RelPermalink }}">
|
||||||
|
|
||||||
|
<meta property="og:title" content="{{ .Title }}">
|
||||||
|
<meta property="og:description" content="{{ .Description }}">
|
||||||
|
<meta property="og:type" content="article">
|
||||||
|
<meta property="og:url" content="{{ .Permalink }}">
|
||||||
|
<meta property="og:image" content="{{ .Site.BaseURL }}{{ .Params.image }}">
|
||||||
|
<meta name="twitter:card" content="summary_large_image">
|
||||||
|
<meta name="twitter:title" content="{{ .Title }}">
|
||||||
|
<meta name="twitter:description" content="{{ .Description }}">
|
||||||
|
<meta name="twitter:image" content="{{ .Site.BaseURL }}{{ .Params.image }}">
|
||||||
</head>
|
</head>
|
||||||
|
|
Loading…
Reference in a new issue