Age | Commit message (Collapse) | Author | |
---|---|---|---|
2024-04-06 | escape example macroswip/zola | Jonas Smedegaard | |
2024-04-06 | convert internal rooted links from ikiwiki directive to zola shortcode | Jonas Smedegaard | |
command: ``` find * -type f -name '*.md' -execdir perl -gpi -e 's,\[\[\s*([^\s!|\[\]][^|\[\]]*?)\s*\|\s*(/[^\[\]#]+?)\/?(?<!\.pdf)(#[^\[\]]*)?\s*\]\],[$1](\@$2/index.md$3),g; s,\[\[\s*([^\s!|\[\]][^|\[\]]*?)\s*\|\s*(/[^\[\]#]+?\.pdf)\s*\]\],[$1]($2),g;' '{}' + ``` | |||
2024-04-06 | reformat """long string""" as shortcode with body | Jonas Smedegaard | |
command: ``` find * -type f -name '*.md' -execdir perl -gpi -e 's/\{\{\s*(note)\(\s*([^"]*?)\s*text="""(.+?)"""\)\s*\}\}/{{% $1($2) %}}\n$3\n{{% end %}}/g;' '{}' + ``` | |||
2024-04-06 | fix image paths | Jonas Smedegaard | |
2024-04-06 | convert meta and tag directives to TOML frontmatter | Jonas Smedegaard | |
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 $_' '{}' + ``` | |||
2024-04-06 | convert img and template directives to shortcodes | Jonas Smedegaard | |
command: ``` find * -type f -name '*.md' -execdir perl -gpi -e 's/\[\[!img\s+([^\s\]"]+)(\s(?:[^\]]|"[^"]*")+?)?\s*\]\]/{{ img(path="$1"$2) }}/g; s/\[\[!template\s+id="?(columns|note|video)"?\s+([^\]]+?)\s*\]\]/{{ $1($2) }}/g;' '{}' + ``` | |||
2024-04-06 | rename *.mdwn to */index.md, except index/topbar/farbar/sidebar files | Jonas Smedegaard | |
command: ``` perl -MPath::Tiny -WE 'use strict; path(".")->visit(sub{return unless -f && /\.mdwn$/; my $stem=$_->basename(".mdwn"); my $new=$_->sibling($stem,"index.md"); return if $stem =~ /^index|topbar|sidebar|farbar|footer$/ || $new->exists; $new->parent->mkpath; system("git","mv", $_, $new)},{recurse=>1})' ``` | |||
2024-04-06 | normalize directives to always quote variables | Jonas Smedegaard | |
command: ``` find * -type f -name '*.mdwn' -execdir perl -gpi -e 's/(?:class|link|size|stem|width|height)=\K[^=\s"\]>]+/"$&"/g;' '{}' + ``` | |||
2024-04-06 | drop dummy links | Jonas Smedegaard | |
2024-04-06 | really fix paths | Jonas Smedegaard | |
2024-04-06 | Merge branch 'master' of ↵ | Jonas Smedegaard | |
xayide.jones.dk:/srv/home/www-bynu/private_git/bynu/content | |||
2024-04-06 | fix some paths | Jonas Smedegaard | |
2024-04-02 | (no commit message) | paul | |
2024-03-24 | (no commit message) | paul | |
2024-03-21 | (no commit message) | paul | |
2024-03-21 | (no commit message) | paul | |
2024-03-21 | (no commit message) | paul | |
2024-03-21 | text and markup corrections, fix links | Siri Reiter | |
2024-03-21 | small text corrections | Siri Reiter | |
2024-03-21 | fix date | Siri Reiter | |
2024-03-21 | (no commit message) | paul | |
2024-03-21 | (no commit message) | paul | |
2024-03-20 | (no commit message) | paul | |
2024-03-20 | (no commit message) | paul | |
2024-03-20 | (no commit message) | paul | |
2024-03-20 | (no commit message) | paul | |
2024-03-20 | vedhæftningsoplægning | paul | |
2024-03-20 | (no commit message) | paul | |
2024-03-20 | (no commit message) | paul | |
2024-02-05 | (no commit message) | paul | |
2024-02-05 | (no commit message) | paul | |
2024-02-05 | (no commit message) | paul | |
2024-02-05 | (no commit message) | paul | |
2024-02-05 | (no commit message) | paul | |
2024-02-05 | (no commit message) | paul | |
2024-01-30 | text corrections | Siri Reiter | |
2024-01-30 | move directories to vejviseren | Siri Reiter | |
2024-01-30 | (no commit message) | paul | |
2024-01-27 | (no commit message) | paul | |
2024-01-19 | (no commit message) | paul | |
2024-01-19 | correct text | Siri Reiter | |
2024-01-19 | fix image link and image classes | Siri Reiter | |
2024-01-19 | fix link | Siri Reiter | |
2024-01-19 | move article into blog Vejviseren | Siri Reiter | |
2023-12-14 | correct text and markup | Siri Reiter | |
2023-12-01 | (no commit message) | paul | |
2023-12-01 | vedhæftningsoplægning | paul | |
2023-12-01 | fix image link and correct text in captions | Siri Reiter | |
2023-12-01 | (no commit message) | paul | |
2023-12-01 | (no commit message) | paul | |