Merge pull request #6 from kumitterer/main

feat: add Open Graph and Twitter meta tags
This commit is contained in:
rottenwheel 2024-11-09 14:33:03 +00:00 committed by GitHub
commit 1ecbf7c4fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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>