summaryrefslogtreecommitdiff
path: root/malmoe
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2022-06-19 21:53:30 +0200
committerJonas Smedegaard <dr@jones.dk>2024-04-06 10:37:11 +0200
commit2babefddb5b38b7a2d65c528c246a2e6705660a4 (patch)
tree0b9d90361db41fedd853e4a1e0fa82c07e1b7984 /malmoe
parent30b9669ea95e6b3b4f48a25c8045c2b4f551dacd (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 'malmoe')
-rw-r--r--malmoe/folketsmalmoe/index.md13
-rw-r--r--malmoe/gamlastan/index.md13
-rw-r--r--malmoe/index.md11
-rw-r--r--malmoe/malmoeudflugt/index.md18
-rw-r--r--malmoe/vastrahamnen/index.md13
5 files changed, 52 insertions, 16 deletions
diff --git a/malmoe/folketsmalmoe/index.md b/malmoe/folketsmalmoe/index.md
index 921229b3..2709bf84 100644
--- a/malmoe/folketsmalmoe/index.md
+++ b/malmoe/folketsmalmoe/index.md
@@ -1,5 +1,12 @@
-[[!meta title="Folkets Malmö – byvandring med Triangeln, Möllevång og Folkets Park"]]
-
++++
+title="Folkets Malmö – byvandring med Triangeln, Möllevång og Folkets Park"
+
+[taxonomies]
+tags=[
+ "malmoe",
+ "ture",
+]
++++
[[!if test="included()" then="""
{{ img(path="mollevang_skulptur.jpg" class="overview" link="/malmoe/folketsmalmoe") }}
@@ -46,4 +53,4 @@ spisesteder, forlystelser, mini-zoo og maurisk pavillon.
og ”skovtur” i Folkets Park.
"""]]
-[[!tag malmoe ture]]
+
diff --git a/malmoe/gamlastan/index.md b/malmoe/gamlastan/index.md
index a8a4ee2b..b0fb1b3b 100644
--- a/malmoe/gamlastan/index.md
+++ b/malmoe/gamlastan/index.md
@@ -1,5 +1,12 @@
-[[!meta title="Byvandring i Malmös Gamla Stan"]]
-
++++
+title="Byvandring i Malmös Gamla Stan"
+
+[taxonomies]
+tags=[
+ "malmoe",
+ "ture",
+]
++++
[[!if test="included()" then="""
{{ img(path="jugendgotik.jpg" class="overview" link="/malmoe/gamlastan") }}
@@ -43,4 +50,4 @@ Vi kan også lægge mere vægt på shopping, og eventuelt tage på besøg i Desi
"""]]
-[[!tag malmoe ture]]
+
diff --git a/malmoe/index.md b/malmoe/index.md
index b384a442..9b67c515 100644
--- a/malmoe/index.md
+++ b/malmoe/index.md
@@ -1,4 +1,11 @@
-[[!meta title="Byvandringer i Malmö"]]
++++
+title="Byvandringer i Malmö"
+
+[taxonomies]
+tags=[
+ "oversigt",
+]
++++
# Byvandringer i Malmö
Tag en lille tur til det store udland med byvandring.nu. Vi har lavet et
@@ -25,4 +32,4 @@ Kontakt os for en nærmere beregning.
[[!inline pages="tagged(malmoe) and !tagged(vejviseren) and !tagged(skole)"]]
-[[!tag oversigt]]
+
diff --git a/malmoe/malmoeudflugt/index.md b/malmoe/malmoeudflugt/index.md
index 433fa63e..431800f2 100644
--- a/malmoe/malmoeudflugt/index.md
+++ b/malmoe/malmoeudflugt/index.md
@@ -1,5 +1,15 @@
-[[!meta title="Heldagsudflugt til Malmö"]]
-
++++
+date=2014-08-10
+title="Heldagsudflugt til Malmö"
+
+[taxonomies]
+tags=[
+ "malmoe",
+ "blog",
+ "vejviseren",
+ "ture",
+]
++++
[[!if test="included()" then="""
{{ img(path="malmoesko1.jpg" class="blog" link="/malmoe/malmoeudflugt") }}
@@ -50,6 +60,4 @@ Turen kan købes ved tilmelding med mail til info@byvandring.nu
"""]]
-[[!tag malmoe ]]
-[[!tag blog vejviseren ture]]
-[[!meta date=2014-08-10 ]] \ No newline at end of file
+
diff --git a/malmoe/vastrahamnen/index.md b/malmoe/vastrahamnen/index.md
index a955b783..fd6ef4ae 100644
--- a/malmoe/vastrahamnen/index.md
+++ b/malmoe/vastrahamnen/index.md
@@ -1,5 +1,12 @@
-[[!meta title="Udsigt fra Malmö – Malmöhus og Västra Hamnen"]]
-
++++
+title="Udsigt fra Malmö – Malmöhus og Västra Hamnen"
+
+[taxonomies]
+tags=[
+ "malmoe",
+ "ture",
+]
++++
[[!if test="included()" then="""
{{ img(path="torsohundsurf.jpg" class="overview" link="/malmoe/vastrahamnen") }}
@@ -42,4 +49,4 @@ bylandskab, der vokser ud af et gammelt industriområde.
"""]]
-[[!tag malmoe ture]]
+