Skip to content

Commit 5be4bce

Browse files
committed
Add "published" property to Atom feed elements
1 parent c1a1568 commit 5be4bce

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pbb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ buildentry() {
330330
fname=${file/%md/html} \
331331
updated=$(git log --max-count=1 --format=format:%aI -- "$file") \
332332
summary=$(yq --front-matter=extract '.summary' "$file") \
333+
published=$(git log --format=format:%aI -- "$file" | tail --lines=1) \
333334
yq --null-input '
334335
[{
335336
"title": {
@@ -345,7 +346,8 @@ buildentry() {
345346
"summary": {
346347
"+@type": "html",
347348
"+content": strenv(summary)
348-
}
349+
},
350+
"published": strenv(published)
349351
}]
350352
'
351353
}

0 commit comments

Comments
 (0)