Skip to content

Commit

Permalink
feat: archive old posts
Browse files Browse the repository at this point in the history
  • Loading branch information
badayvedat committed Nov 19, 2023
1 parent 4ae4e1a commit c3cb241
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions barf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ index_html() {
created=$(echo $(head -3 "$f" | tail -1))
echo \
"<span class='created'>" \
"<a style=\"font-size: x-large;\" href=\"$link\">&nbsp;&nbsp;$title</a>" \
"<a style=\"font-size: x-large;\" href=\"$link\">&nbsp;$title</a>" \
"<a style=\"font-size: small; align-self: center;\">$created</a>" \
"</span>"
done < "$1" | sort -r
Expand All @@ -49,7 +49,7 @@ til_index_html() {
created=$(echo $(head -3 "$f" | tail -1))
echo \
"<span class='created'>" \
"<a style=\"font-size: x-large;\" href=\"$link\">&nbsp;&nbsp;$title</a>" \
"<a style=\"font-size: x-large;\" href=\"$link\">&nbsp;$title</a>" \
"<a style=\"font-size: small; align-self: center;\">$created</a>" \
"</span>"
done < "$1" | sort -r
Expand Down
4 changes: 2 additions & 2 deletions barf_macos
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ index_html() {
created=$(echo $(head -3 "$f" | tail -1))
echo \
"<span class='created'>" \
"<a style=\"font-size: x-large;\" href=\"$link\">&nbsp;&nbsp;$title</a>" \
"<a style=\"font-size: x-large;\" href=\"$link\">&nbsp;$title</a>" \
"<a style=\"font-size: small; align-self: center;\">$created</a>" \
"</span>"
# echo "<li><a>$created</a> <a href=\"$link\">$title</a></li>"
Expand All @@ -49,7 +49,7 @@ til_index_html() {
created=$(echo $(head -3 "$f" | tail -1))
echo \
"<span class='created'>" \
"<a style=\"font-size: x-large;\" href=\"$link\">&nbsp;&nbsp;$title</a>" \
"<a style=\"font-size: x-large;\" href=\"$link\">&nbsp;$title</a>" \
"<a style=\"font-size: small; align-self: center;\">$created</a>" \
"</span>"
done < "$1" | sort -r
Expand Down
File renamed without changes.

0 comments on commit c3cb241

Please sign in to comment.