Skip to content

Commit

Permalink
use full date from rfc822 date
Browse files Browse the repository at this point in the history
  • Loading branch information
hmngwy authored Sep 2, 2024
1 parent fd84a54 commit 38744d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .layout/index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function index_loop {
function list_item {
if [ -z "$BREAK" ]; then
cat << _LOOP_
<li class="post-link $([ $InNext ] && echo "in-next")"><a href="$(echo $URL_PREFIX)$(echo $POST_URL)"><span class="stamp">$(echo "$POST_DATE_RFC822")</span> <span class="title">$(echo $POST_TITLE)</span></a></li>
<li class="post-link $([ $InNext ] && echo "in-next")"><a href="$(echo $URL_PREFIX)$(echo $POST_URL)"><span class="stamp">$(date -d "$POST_DATE_RFC822" +%m/%d/%Y)</span> <span class="title">$(echo $POST_TITLE)</span></a></li>
_LOOP_
else
InNext=true
Expand Down

0 comments on commit 38744d1

Please sign in to comment.