This commit is contained in:
parent
f2cfe82cc7
commit
9c377db56f
2 changed files with 4 additions and 0 deletions
|
@ -103,6 +103,9 @@ function toSlug(string) {
|
||||||
/\(\((.*)\)\)/g,
|
/\(\((.*)\)\)/g,
|
||||||
(_, id) => blockRefs[id]);
|
(_, id) => blockRefs[id]);
|
||||||
// Remove id:: lines
|
// Remove id:: lines
|
||||||
|
data = data.replaceAll(
|
||||||
|
/(#+) (.*)\n\s*id:: (.*)/gm,
|
||||||
|
(_, h, title, id) => `<span id="${id}"><h${h.length}>${title}</h${h.length}></span>`);
|
||||||
data = data.replaceAll(
|
data = data.replaceAll(
|
||||||
/(.*)\n\s*id:: (.*)/gm,
|
/(.*)\n\s*id:: (.*)/gm,
|
||||||
'<span id="$2">$1</span>');
|
'<span id="$2">$1</span>');
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
title: The Paper Pilot
|
title: The Paper Pilot
|
||||||
layout: home
|
layout: home
|
||||||
|
sidebar: true
|
||||||
hero:
|
hero:
|
||||||
name: The Paper Pilot
|
name: The Paper Pilot
|
||||||
tagline: I'm Anthony, or The Paper Pilot, and I make fun games and tools!
|
tagline: I'm Anthony, or The Paper Pilot, and I make fun games and tools!
|
||||||
|
|
Loading…
Reference in a new issue