mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2024-11-22 08:07:30 +00:00
Use hashed URL for arrow button
This commit is contained in:
parent
5fc765d8cb
commit
f1f24f8c4a
@ -187,7 +187,7 @@ module.exports = [
|
||||
contentType: "application/json",
|
||||
content: {
|
||||
title: getPageTitle(post),
|
||||
html: pugCache.get("pug/fragments/post.pug").web({post, settings})
|
||||
html: pugCache.get("pug/fragments/post.pug").web({post, settings, getStaticURL})
|
||||
}
|
||||
}
|
||||
}).catch(error => {
|
||||
|
@ -19,9 +19,9 @@ mixin post(post, headerWithNavigation)
|
||||
= `@${post.getBasicOwner().username}`
|
||||
if headerWithNavigation
|
||||
button(data-previous).navigate-posts
|
||||
img(src="/static/img/arrow-circled.svg" alt="Previous post.").icon.previous
|
||||
img(src=getStaticURL("html", "/static/img/arrow-circled.svg") alt="Previous post.").icon.previous
|
||||
button(data-next).navigate-posts
|
||||
img(src="/static/img/arrow-circled.svg" alt="Next post.").icon
|
||||
img(src=getStaticURL("html", "/static/img/arrow-circled.svg") alt="Next post.").icon
|
||||
|
||||
div.relative-box
|
||||
div.scrolling-box
|
||||
|
@ -35,7 +35,6 @@ subdirs("pug", async (err, dirs) => {
|
||||
await require("../lib/utils/upgradedb")()
|
||||
|
||||
pinski.setNotFoundTarget("/404")
|
||||
Object.assign(pinski.pugDefaultLocals, {constants})
|
||||
for (const file of constants.themes.collatedFiles) {
|
||||
pinski.addRoute(`/static/css/${file}.css`, `sass/${file}.sass`, "sass")
|
||||
}
|
||||
@ -63,8 +62,9 @@ subdirs("pug", async (err, dirs) => {
|
||||
pinski.addAPIDir("assistant_api")
|
||||
}
|
||||
|
||||
require("pinski/plugins").setInstance(pinski)
|
||||
|
||||
const plugins = require("pinski/plugins")
|
||||
plugins.setInstance(pinski)
|
||||
Object.assign(pinski.pugDefaultLocals, {constants})
|
||||
Object.assign(passthrough, pinski.getExports())
|
||||
|
||||
console.log("[.] Server started")
|
||||
|
Loading…
Reference in New Issue
Block a user