aboutsummaryrefslogtreecommitdiff
path: root/scripts/postinfo
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-04-12 10:31:48 +0200
committerlonkaars <loek@pipeframe.xyz>2024-04-12 10:31:48 +0200
commitc364c4b0273e76cb13571878d1a4a2853a392b9b (patch)
tree0deb386ef2e380436a74ad9fcf5b023c999dfed7 /scripts/postinfo
parent583f9fa1018bb688323f2367e99c53bba9843f61 (diff)
WIP transition to jekyll
Diffstat (limited to 'scripts/postinfo')
-rwxr-xr-xscripts/postinfo24
1 files changed, 0 insertions, 24 deletions
diff --git a/scripts/postinfo b/scripts/postinfo
deleted file mode 100755
index d6da015..0000000
--- a/scripts/postinfo
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/sh
-
-cd "$(dirname $0)"
-
-filename=$1
-
-jq -n \
- --argjson title "$(./meta title $filename)" \
- --argjson subtitle "$(./meta subtitle $filename)" \
- --argjson author "$(./meta author $filename)" \
- --argjson date "$(./meta date $filename)" \
- --argjson tags "$(./meta tags $filename)" \
- --argjson cover "$(./meta cover $filename)" \
- --argjson id "$(basename $filename .md | jq --raw-input)" \
-'{
- "title": $title,
- "subtitle": $subtitle,
- "author": $author,
- "date": $date,
- "tags": $tags,
- "cover": $cover,
- "id": $id
-}'
-