aboutsummaryrefslogtreecommitdiff
path: root/scripts/postinfo
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-04-12 11:50:37 +0200
committerlonkaars <l.leblansch@gmail.com>2021-04-12 11:50:37 +0200
commitffa1533a191bf09ea5934e8821de7d26275f8521 (patch)
treea3cbf697efae2a38b4a90c523cd4e2cba64555ce /scripts/postinfo
parentf0e25c71e148758a76ee8d4807aa1262f25edc5d (diff)
added recent posts to home page
Diffstat (limited to 'scripts/postinfo')
-rwxr-xr-xscripts/postinfo6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/postinfo b/scripts/postinfo
index 72c6526..968eb13 100755
--- a/scripts/postinfo
+++ b/scripts/postinfo
@@ -8,13 +8,15 @@ jq -n \
--argjson author "$(./meta author $filename)" \
--argjson date "$(./meta date $filename)" \
--argjson tags "$(./meta tags $filename)" \
- --argjson urlname "$(basename $filename .md | jq --raw-input)" \
+ --argjson cover "$(./meta cover $filename)" \
+ --argjson id "$(basename $filename .md | jq --raw-input)" \
'{
"title": $title,
"subtitle": $subtitle,
"author": $author,
"date": $date,
"tags": $tags,
- "urlname": $urlname
+ "cover": $cover,
+ "id": $id
}'