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,
|
||||
(_, id) => blockRefs[id]);
|
||||
// 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(
|
||||
/(.*)\n\s*id:: (.*)/gm,
|
||||
'<span id="$2">$1</span>');
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
title: The Paper Pilot
|
||||
layout: home
|
||||
sidebar: true
|
||||
hero:
|
||||
name: The Paper Pilot
|
||||
tagline: I'm Anthony, or The Paper Pilot, and I make fun games and tools!
|
||||
|
|
Loading…
Reference in a new issue