Fix minor issues
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 1m0s

This commit is contained in:
thepaperpilot 2024-06-28 18:19:38 -05:00
parent d993416154
commit e043ced9bf

View file

@ -185,7 +185,7 @@ function moveImportStatementUp(filePath, times = 1) {
`---\n\n<details><summary>Tagged by:</summary>${taggedBy[title].map(tag => `<a href="${pageLinks[tag]}">${tag}</a>`).join("")}</details>\n\n`); `---\n\n<details><summary>Tagged by:</summary>${taggedBy[title].map(tag => `<a href="${pageLinks[tag]}">${tag}</a>`).join("")}</details>\n\n`);
} }
// TODO show context on references? Perhaps in a `::: info` block? // TODO show context on references? Perhaps in a `::: info` block?
const pageTitle = data.match(/title: "(.+)"/)[1]; const pageTitle = data.match(/title: "(.+)"/)[1].replaceAll('___', '/');
if (pageLinks[pageTitle] in referencedBy) { if (pageLinks[pageTitle] in referencedBy) {
data = data.replaceAll( data = data.replaceAll(
/---\n\n/gm, /---\n\n/gm,
@ -195,7 +195,7 @@ function moveImportStatementUp(filePath, times = 1) {
data = data.replace('NOW', '/now') data = data.replace('NOW', '/now')
// Add header to the top // Add header to the top
data = data.replaceAll('___', '/'); data = data.replaceAll('___', '/');
const relPath = path.relative("./garden-output/logseq-pages", path.resolve(...filePath.split("___"))).replaceAll(/%3F/gi, '').replace('what-is-content-', 'what-is-content').replace('.md', '/index.md'); const relPath = path.relative("./garden-output/logseq-pages", path.resolve(...filePath.split("___"))).replaceAll(/%3F/gi, '').replace('what-is-content-', 'what-is-content').replace('.md', '/index.html');
data = data.replaceAll( data = data.replaceAll(
/---\n\n/gm, /---\n\n/gm,
`prev: false `prev: false