* added "quotes" to the locales

* made all the ejs pages use "postID" as the variable for post indexes
* split up en-GB and en-US
This commit is contained in:
2025-08-27 18:30:26 +01:00
parent c73ce69f93
commit 27b9ee6437
10 changed files with 94 additions and 13 deletions

View File

@@ -101,13 +101,15 @@ export function render_comment(comment_content) {
};
export function render_md(content) {
const markdownit = require("markdown-it")
const config = require("../config.json")
const locale = require(`../locales/${config.locale}.json`)
const md = markdownit({
html: false,
xhtmlOut: false,
breaks: true,
linkify: false,
typographer: true,
quotes: true,
quotes: locale.quotes,
})
return md.render(content)
};