diff options
author | Jonas Smedegaard <dr@jones.dk> | 2022-06-19 21:53:30 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2024-04-06 10:37:11 +0200 |
commit | 2babefddb5b38b7a2d65c528c246a2e6705660a4 (patch) | |
tree | 0b9d90361db41fedd853e4a1e0fa82c07e1b7984 /aabneture/2023 | |
parent | 30b9669ea95e6b3b4f48a25c8045c2b4f551dacd (diff) |
convert meta and tag directives to TOML frontmatter
command:
```
find * -type f -name '*.md' -execdir perl -MTOML::Tiny=to_toml -C63 -gni -E '%x=();s/\[\[!meta\s+(title|date)="?([^\]"]+?)\s*"?\s*\]\]\s*\n*/$x{$1}=$2;""/eg; s/\[\[!meta\s+stylesheet="?edu"?\s+rel="?stylesheet"?\s*\]\]\n*/$x{taxonomies}{categories}=["education"];""/e; s/\[\[!tag((?:\s+[^\]\s]+)+)\s*\]\]\n*/push @{$x{taxonomies}{tags}}, $1=~m{\S+}g;""/eg; s/\[\[!meta\s+(?:author|name)="?([^\]"]+?)\s*"?\s*\]\]\s*\n*/$x{extra}{author}=$1;""/eg; say "+++"; say to_toml({%x}); say "+++"; say $_' '{}' +
```
Diffstat (limited to 'aabneture/2023')
-rw-r--r-- | aabneture/2023/april/index.md | 5 | ||||
-rw-r--r-- | aabneture/2023/august/index.md | 5 | ||||
-rw-r--r-- | aabneture/2023/december/index.md | 5 | ||||
-rw-r--r-- | aabneture/2023/februar/index.md | 5 | ||||
-rw-r--r-- | aabneture/2023/januar/index.md | 5 | ||||
-rw-r--r-- | aabneture/2023/juli/index.md | 5 | ||||
-rw-r--r-- | aabneture/2023/juni/index.md | 5 | ||||
-rw-r--r-- | aabneture/2023/maj/index.md | 5 | ||||
-rw-r--r-- | aabneture/2023/marts/index.md | 5 | ||||
-rw-r--r-- | aabneture/2023/november/index.md | 5 | ||||
-rw-r--r-- | aabneture/2023/oktober/index.md | 5 | ||||
-rw-r--r-- | aabneture/2023/september/index.md | 5 |
12 files changed, 48 insertions, 12 deletions
diff --git a/aabneture/2023/april/index.md b/aabneture/2023/april/index.md index b0e53a13..9fba2385 100644 --- a/aabneture/2023/april/index.md +++ b/aabneture/2023/april/index.md @@ -1,4 +1,6 @@ -[[!meta title="Åbne ture i april"]] ++++ +title="Åbne ture i april" ++++ ## Åbne ture i april [[!toggle id="april" text="Vis åbne ture i april"]] @@ -458,3 +460,4 @@ Med Christian Kronman. [[!toggle id="april" text="skjul"]] """]] + diff --git a/aabneture/2023/august/index.md b/aabneture/2023/august/index.md index a1c80e3f..bbed7759 100644 --- a/aabneture/2023/august/index.md +++ b/aabneture/2023/august/index.md @@ -1,4 +1,6 @@ -[[!meta title="Åbne ture i august"]] ++++ +title="Åbne ture i august" ++++ ## Åbne ture i august [[!toggle id="august" text="Vis åbne ture i august"]] @@ -446,3 +448,4 @@ Med Morten Lander Andersen. [[!toggle id="august" text="skjul"]] """]] + diff --git a/aabneture/2023/december/index.md b/aabneture/2023/december/index.md index 39afddfb..f34ea0a4 100644 --- a/aabneture/2023/december/index.md +++ b/aabneture/2023/december/index.md @@ -1,4 +1,6 @@ -[[!meta title="Åbne ture i december"]] ++++ +title="Åbne ture i december" ++++ ## Åbne ture i december [[!toggle id="december" text="Vis åbne ture i december"]] @@ -52,3 +54,4 @@ Med Morten Lander Andersen. [[!toggle id="december" text="skjul"]] """]] + diff --git a/aabneture/2023/februar/index.md b/aabneture/2023/februar/index.md index de975797..ff95a7ef 100644 --- a/aabneture/2023/februar/index.md +++ b/aabneture/2023/februar/index.md @@ -1,4 +1,6 @@ -[[!meta title="Åbne ture i februar"]] ++++ +title="Åbne ture i februar" ++++ ## Åbne ture i februar [[!toggle id="februar" text="Vis åbne ture i februar"]] @@ -169,3 +171,4 @@ Med Christian Kronman. [[!toggle id="februar" text="skjul"]] """]] + diff --git a/aabneture/2023/januar/index.md b/aabneture/2023/januar/index.md index f4c7fdf0..e3cfb2f9 100644 --- a/aabneture/2023/januar/index.md +++ b/aabneture/2023/januar/index.md @@ -1,4 +1,6 @@ -[[!meta title="Åbne ture i januar"]] ++++ +title="Åbne ture i januar" ++++ ## Åbne ture i januar [[!toggle id="januar" text="Vis åbne ture i januar"]] @@ -49,3 +51,4 @@ Med Thomas Warburg. [[!toggle id="januar" text="skjul"]] """]] + diff --git a/aabneture/2023/juli/index.md b/aabneture/2023/juli/index.md index 48c06536..0a07420c 100644 --- a/aabneture/2023/juli/index.md +++ b/aabneture/2023/juli/index.md @@ -1,4 +1,6 @@ -[[!meta title="Åbne ture i juli"]] ++++ +title="Åbne ture i juli" ++++ ## Åbne ture i juli [[!toggle id="juli" text="Vis åbne ture i juli"]] @@ -394,3 +396,4 @@ Med Christian Kronman. [[!toggle id="juli" text="skjul"]] """]] + diff --git a/aabneture/2023/juni/index.md b/aabneture/2023/juni/index.md index c9d26b6a..51fb6c29 100644 --- a/aabneture/2023/juni/index.md +++ b/aabneture/2023/juni/index.md @@ -1,4 +1,6 @@ -[[!meta title="Åbne ture i juni"]] ++++ +title="Åbne ture i juni" ++++ ## Åbne ture i juni [[!toggle id="juni" text="Vis åbne ture i juni"]] @@ -375,3 +377,4 @@ Med Thomas Warburg. [[!toggle id="juni" text="skjul"]] """]] + diff --git a/aabneture/2023/maj/index.md b/aabneture/2023/maj/index.md index a1940c90..d87b958c 100644 --- a/aabneture/2023/maj/index.md +++ b/aabneture/2023/maj/index.md @@ -1,4 +1,6 @@ -[[!meta title="Åbne ture i maj"]] ++++ +title="Åbne ture i maj" ++++ ## Åbne ture i maj [[!toggle id="maj" text="Vis åbne ture i maj"]] @@ -521,3 +523,4 @@ Med Thomas Warburg. [[!toggle id="maj" text="skjul"]] """]] + diff --git a/aabneture/2023/marts/index.md b/aabneture/2023/marts/index.md index df7e3da2..dc7694e6 100644 --- a/aabneture/2023/marts/index.md +++ b/aabneture/2023/marts/index.md @@ -1,4 +1,6 @@ -[[!meta title="Åbne ture i marts"]] ++++ +title="Åbne ture i marts" ++++ ## Åbne ture i marts [[!toggle id="marts" text="Vis åbne ture i marts"]] @@ -276,3 +278,4 @@ Med Jeannie Krysiak. [[!toggle id="marts" text="skjul"]] """]] + diff --git a/aabneture/2023/november/index.md b/aabneture/2023/november/index.md index e64a5ace..f4eaa7f0 100644 --- a/aabneture/2023/november/index.md +++ b/aabneture/2023/november/index.md @@ -1,4 +1,6 @@ -[[!meta title="Åbne ture i november"]] ++++ +title="Åbne ture i november" ++++ ## Åbne ture i november [[!toggle id="november" text="Vis åbne ture i november"]] @@ -163,3 +165,4 @@ Med Thomas Warburg. [[!toggle id="november" text="skjul"]] """]] + diff --git a/aabneture/2023/oktober/index.md b/aabneture/2023/oktober/index.md index fda11e65..75b4f5eb 100644 --- a/aabneture/2023/oktober/index.md +++ b/aabneture/2023/oktober/index.md @@ -1,4 +1,6 @@ -[[!meta title="Åbne ture i oktober"]] ++++ +title="Åbne ture i oktober" ++++ ## Åbne ture i oktober [[!toggle id="oktober" text="Vis åbne ture i oktober"]] @@ -460,3 +462,4 @@ Med Morten Lander Andersen. [[!toggle id="oktober" text="skjul"]] """]] + diff --git a/aabneture/2023/september/index.md b/aabneture/2023/september/index.md index f4bfcd72..5abac553 100644 --- a/aabneture/2023/september/index.md +++ b/aabneture/2023/september/index.md @@ -1,4 +1,6 @@ -[[!meta title="Åbne ture i september"]] ++++ +title="Åbne ture i september" ++++ ## Åbne ture i september [[!toggle id="september" text="Vis åbne ture i september"]] @@ -408,3 +410,4 @@ Med Jeannie Krysiak m.fl.. [[!toggle id="september" text="skjul"]] """]] + |