From ffa1533a191bf09ea5934e8821de7d26275f8521 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Mon, 12 Apr 2021 11:50:37 +0200 Subject: added recent posts to home page --- scripts/postinfo | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'scripts') 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 }' -- cgit v1.2.3