From bc288cdc12e9bfdf9ed2fe0954b7b25ce2ede009 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Sat, 7 Aug 2021 21:26:15 +0200 Subject: Display options for date in index --- bin/ssg-template | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'bin') diff --git a/bin/ssg-template b/bin/ssg-template index d246028..e0689cb 100644 --- a/bin/ssg-template +++ b/bin/ssg-template @@ -138,12 +138,12 @@ _render_index() { title=$(_get_value "${file}" "title" "$(_get_title ${file})") - cat <<-EOF -
  • - ${title} - $(_get_date_human "${file}") -
  • - EOF + echo "
  • " + if [ $(_get_value "${file}" "index_show_date") ]; then + echo "$(_get_date_human \"${file}\")" + fi + echo "${title}" + echo "
  • " done echo "" } -- cgit v1.2.3