mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2025-12-15 02:45:09 +00:00
Cache some semi-static data
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
meta(charset="utf-8")
|
||||
link(rel="stylesheet" type="text/css" href="/static/css/main.css")
|
||||
link(rel="stylesheet" type="text/css" href=getStaticURL("sass", "main.sass"))
|
||||
meta(name="viewport" content="width=device-width, initial-scale=1")
|
||||
link(rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png")
|
||||
link(rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png")
|
||||
|
||||
@@ -7,7 +7,7 @@ html
|
||||
head
|
||||
title= title
|
||||
include includes/head
|
||||
script(type="module" src="/static/js/post_overlay.js")
|
||||
script(type="module" src=getStaticURL("html", "/static/js/post_overlay.js"))
|
||||
meta(property="og:url" content=`${website_origin}/p/${post.data.shortcode}`)
|
||||
meta(property="og:type" content="article")
|
||||
- let firstEntry = post.children[0]
|
||||
|
||||
@@ -15,8 +15,8 @@ html
|
||||
else
|
||||
title= `@${user.data.username} | Bibliogram`
|
||||
include includes/head
|
||||
script(src="/static/js/pagination.js" type="module")
|
||||
script(src="/static/js/post_overlay.js" type="module")
|
||||
script(src=getStaticURL("html", "/static/js/pagination.js") type="module")
|
||||
script(src=getStaticURL("html", "/static/js/post_overlay.js") type="module")
|
||||
meta(property="og:url" content=`${constants.website_origin}/u/${user.data.username}`)
|
||||
meta(property="og:type" content="profile")
|
||||
meta(property="og:title" content=(user.data.full_name || user.data.username))
|
||||
|
||||
Reference in New Issue
Block a user