diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-04-12 11:50:37 +0200 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-04-12 11:50:37 +0200 |
commit | ffa1533a191bf09ea5934e8821de7d26275f8521 (patch) | |
tree | a3cbf697efae2a38b4a90c523cd4e2cba64555ce /scripts | |
parent | f0e25c71e148758a76ee8d4807aa1262f25edc5d (diff) |
added recent posts to home page
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/postinfo | 6 |
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 }' |