Fix page titles with slashes
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 56s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 56s
This commit is contained in:
parent
64f89e40ea
commit
ee7450417d
8 changed files with 9 additions and 9 deletions
|
@ -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].replaceAll('___', '/');
|
const pageTitle = data.match(/title: "(.+)"/)[1];
|
||||||
if (pageLinks[pageTitle] in referencedBy) {
|
if (pageLinks[pageTitle] in referencedBy) {
|
||||||
data = data.replaceAll(
|
data = data.replaceAll(
|
||||||
/---\n\n/gm,
|
/---\n\n/gm,
|
||||||
|
@ -206,7 +206,7 @@ import { data } from '${path.relative(path.resolve("site", relPath), path.resolv
|
||||||
import { useData } from 'vitepress';
|
import { useData } from 'vitepress';
|
||||||
const pageData = useData();
|
const pageData = useData();
|
||||||
</script>
|
</script>
|
||||||
<h1 class="p-name">${pageTitle.replace("NOW", "/now")}</h1>
|
<h1 class="p-name">${pageTitle.replace("NOW", "/now").replaceAll('___', '/')}</h1>
|
||||||
<p>${wc} words, ~${Math.round(wc / 183)} minute read. <span v-html="data[\`site/\${pageData.page.value.relativePath}\`]" /></p>
|
<p>${wc} words, ~${Math.round(wc / 183)} minute read. <span v-html="data[\`site/\${pageData.page.value.relativePath}\`]" /></p>
|
||||||
<hr/>
|
<hr/>
|
||||||
\n`);
|
\n`);
|
||||||
|
|
|
@ -10,7 +10,7 @@ import { data } from '../../../git.data.ts';
|
||||||
import { useData } from 'vitepress';
|
import { useData } from 'vitepress';
|
||||||
const pageData = useData();
|
const pageData = useData();
|
||||||
</script>
|
</script>
|
||||||
<h1 class="p-name">Guide to Incrementals___Appeal to Developers</h1>
|
<h1 class="p-name">Guide to Incrementals/Appeal to Developers</h1>
|
||||||
<p>636 words, ~3 minute read. <span v-html="data[`site/${pageData.page.value.relativePath}`]" /></p>
|
<p>636 words, ~3 minute read. <span v-html="data[`site/${pageData.page.value.relativePath}`]" /></p>
|
||||||
<hr/>
|
<hr/>
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ import { data } from '../../../git.data.ts';
|
||||||
import { useData } from 'vitepress';
|
import { useData } from 'vitepress';
|
||||||
const pageData = useData();
|
const pageData = useData();
|
||||||
</script>
|
</script>
|
||||||
<h1 class="p-name">Guide to Incrementals___Appeal to Players</h1>
|
<h1 class="p-name">Guide to Incrementals/Appeal to Players</h1>
|
||||||
<p>2166 words, ~12 minute read. <span v-html="data[`site/${pageData.page.value.relativePath}`]" /></p>
|
<p>2166 words, ~12 minute read. <span v-html="data[`site/${pageData.page.value.relativePath}`]" /></p>
|
||||||
<hr/>
|
<hr/>
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ import { data } from '../../../git.data.ts';
|
||||||
import { useData } from 'vitepress';
|
import { useData } from 'vitepress';
|
||||||
const pageData = useData();
|
const pageData = useData();
|
||||||
</script>
|
</script>
|
||||||
<h1 class="p-name">Guide to Incrementals___Defining the Genre</h1>
|
<h1 class="p-name">Guide to Incrementals/Defining the Genre</h1>
|
||||||
<p>3429 words, ~19 minute read. <span v-html="data[`site/${pageData.page.value.relativePath}`]" /></p>
|
<p>3429 words, ~19 minute read. <span v-html="data[`site/${pageData.page.value.relativePath}`]" /></p>
|
||||||
<hr/>
|
<hr/>
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ import { data } from '../../../git.data.ts';
|
||||||
import { useData } from 'vitepress';
|
import { useData } from 'vitepress';
|
||||||
const pageData = useData();
|
const pageData = useData();
|
||||||
</script>
|
</script>
|
||||||
<h1 class="p-name">Guide to Incrementals___Navigating Criticism</h1>
|
<h1 class="p-name">Guide to Incrementals/Navigating Criticism</h1>
|
||||||
<p>747 words, ~4 minute read. <span v-html="data[`site/${pageData.page.value.relativePath}`]" /></p>
|
<p>747 words, ~4 minute read. <span v-html="data[`site/${pageData.page.value.relativePath}`]" /></p>
|
||||||
<hr/>
|
<hr/>
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ import { data } from '../../../git.data.ts';
|
||||||
import { useData } from 'vitepress';
|
import { useData } from 'vitepress';
|
||||||
const pageData = useData();
|
const pageData = useData();
|
||||||
</script>
|
</script>
|
||||||
<h1 class="p-name">Guide to Incrementals___What is Content?</h1>
|
<h1 class="p-name">Guide to Incrementals/What is Content?</h1>
|
||||||
<p>2092 words, ~11 minute read. <span v-html="data[`site/${pageData.page.value.relativePath}`]" /></p>
|
<p>2092 words, ~11 minute read. <span v-html="data[`site/${pageData.page.value.relativePath}`]" /></p>
|
||||||
<hr/>
|
<hr/>
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ import { data } from '../../../git.data.ts';
|
||||||
import { useData } from 'vitepress';
|
import { useData } from 'vitepress';
|
||||||
const pageData = useData();
|
const pageData = useData();
|
||||||
</script>
|
</script>
|
||||||
<h1 class="p-name">The IndieWeb___Amplification</h1>
|
<h1 class="p-name">The IndieWeb/Amplification</h1>
|
||||||
<p>57 words, ~0 minute read. <span v-html="data[`site/${pageData.page.value.relativePath}`]" /></p>
|
<p>57 words, ~0 minute read. <span v-html="data[`site/${pageData.page.value.relativePath}`]" /></p>
|
||||||
<hr/>
|
<hr/>
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ import { data } from '../../../git.data.ts';
|
||||||
import { useData } from 'vitepress';
|
import { useData } from 'vitepress';
|
||||||
const pageData = useData();
|
const pageData = useData();
|
||||||
</script>
|
</script>
|
||||||
<h1 class="p-name">The IndieWeb___Signature Blocks</h1>
|
<h1 class="p-name">The IndieWeb/Signature Blocks</h1>
|
||||||
<p>14 words, ~0 minute read. <span v-html="data[`site/${pageData.page.value.relativePath}`]" /></p>
|
<p>14 words, ~0 minute read. <span v-html="data[`site/${pageData.page.value.relativePath}`]" /></p>
|
||||||
<hr/>
|
<hr/>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue