feat: add twtter cards to head

This commit is contained in:
Xin 2023-08-20 19:25:12 +01:00
parent 228496f262
commit 0360a93e99

View File

@ -18,7 +18,8 @@
<meta name="description" content="{{ partial "utils/page-description.html" . }}" /> <meta name="description" content="{{ partial "utils/page-description.html" . }}" />
{{ partial "opengraph.html" . }} {{ partial "opengraph.html" . }}
{{ template "_internal/schema.html" . -}} {{ template "_internal/schema.html" . -}}
{{ partial "head-css.html" . }} {{ template "_internal/twitter_cards.html" . -}}
{{ partialCached "head-css.html" . }}
<script> <script>
/* Initialize light/dark mode */ /* Initialize light/dark mode */
if (localStorage.getItem("color-theme") === "dark" || (!("color-theme" in localStorage) && window.matchMedia("(prefers-color-scheme: dark)").matches)) { if (localStorage.getItem("color-theme") === "dark" || (!("color-theme" in localStorage) && window.matchMedia("(prefers-color-scheme: dark)").matches)) {