This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
LINKS="$(ls articles/*.org | tac | head -n 10 | while read -r article; do
|
||||
LINKS="$(find articles -name '*.org' | tac | head -n 10 | while read -r article; do
|
||||
TITLE="$(grep -E '^#\+TITLE:' "$article" | sed -e 's/^#+TITLE:\s*//')"
|
||||
DATE="$(git show --no-patch --no-notes --pretty='%as' `git rev-list -1 HEAD -- $article`)"
|
||||
ARTICLE_COMMIT="$(git rev-list -1 HEAD -- "$article")"
|
||||
DATE="$(git show --no-patch --no-notes --pretty='%as' "$ARTICLE_COMMIT")"
|
||||
echo '<li>'
|
||||
echo '<a href="'"${article/.org/}.html"'">'"<date>$DATE</date> - $TITLE"'</a>'
|
||||
echo '<p>'
|
||||
|
||||
Reference in New Issue
Block a user