Skip to content

Commit

Permalink
Add "published" property to Atom feed elements
Browse files Browse the repository at this point in the history
  • Loading branch information
bewuethr committed Aug 10, 2023
1 parent c1a1568 commit 5be4bce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pbb
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ buildentry() {
fname=${file/%md/html} \
updated=$(git log --max-count=1 --format=format:%aI -- "$file") \
summary=$(yq --front-matter=extract '.summary' "$file") \
published=$(git log --format=format:%aI -- "$file" | tail --lines=1) \
yq --null-input '
[{
"title": {
Expand All @@ -345,7 +346,8 @@ buildentry() {
"summary": {
"+@type": "html",
"+content": strenv(summary)
}
},
"published": strenv(published)
}]
'
}
Expand Down

0 comments on commit 5be4bce

Please sign in to comment.