mirror of
https://github.com/osmarks/website
synced 2026-08-01 16:38:57 +00:00
migrate taglines to server
This commit is contained in:
+2
-1
@@ -65,7 +65,7 @@ const buildID = nanoid()
|
||||
globalData.buildID = buildID
|
||||
|
||||
const randomPick = xs => xs[Math.floor(Math.random() * xs.length)]
|
||||
globalData.siteDescription = randomPick(globalData.taglines)
|
||||
globalData.siteDescription = `<!--SSI:tagline-->`
|
||||
|
||||
const links = {}
|
||||
|
||||
@@ -519,6 +519,7 @@ const writeBuildID = () => fsp.writeFile(path.join(outDir, "buildID.txt"), build
|
||||
const index = async () => {
|
||||
const index = globalData.templates.index({ ...globalData, title: "Index", posts: globalData.blog, description: globalData.siteDescription, path: "/" })
|
||||
await fsp.writeFile(path.join(outDir, "index.html"), index)
|
||||
await fsp.writeFile(path.join(outDir, "taglines.txt"), globalData.taglines.join("\n"))
|
||||
}
|
||||
|
||||
const cache = sqlite("cache.sqlite3")
|
||||
|
||||
@@ -532,3 +532,5 @@ textarea.squiggle
|
||||
vertical-align: center
|
||||
.box
|
||||
--box-border: #666
|
||||
pre
|
||||
overflow-x: scroll
|
||||
|
||||
Reference in New Issue
Block a user