Add speculation rules for pre-fetching and rendering

This commit is contained in:
2024-06-16 10:14:57 +10:00
parent be329447ab
commit 98e289744a
4 changed files with 37 additions and 1 deletions

View File

@@ -38,6 +38,9 @@ html x-data="{darkMode: $persist(false)}" :class="{'dark' : darkMode === true}"
link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@11.8.0/styles/github-dark.min.css"
script src="https://unpkg.com/@highlightjs/cdn-assets@11.8.0/highlight.min.js" defer=""
script type="speculationrules"
== context.speculation_rules
meta property="og:title" content="#{context.content_for(:title)}"
meta property="og:type" content="website"
meta property="og:url" content="#{context.content_for(:url)}"