adjust styling and bump dates etc

This commit is contained in:
April John 2026-08-28 15:39:56 +02:00
commit a584a5252f
40 changed files with 678 additions and 294 deletions

View file

@ -2,16 +2,16 @@
if [ $# -lt 2 ]; then
echo "Usage: $0 Mediawiki_Page_Name [page|post]"
exit
exit 1
fi
echo Converting $1...
echo "Converting $1..."
page=$(echo $1 | sed 's,/,_,g' | tr '[:upper:]' '[:lower:]')
page=$(printf '%s\n' "$1" | sed 's,/,_,g' | tr '[:upper:]' '[:lower:]')
hugo new $2/$page.md
hugo new "$2/$page.md"
curl -s "https://berlin.ccc.de/api.php?action=query&prop=revisions&rvprop=content&format=json&titles=$1" \
| jq -r '.query.pages |..| objects|.["*"]' \
| sed '/null/d' \
| pandoc -f mediawiki -t markdown \
>> content/$2/$page.md
>> "content/$2/$page.md"