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 ++++++------ src/index.md | 1 + src/s/index.md | 1 - src/style/style.css | 4 ---- 4 files changed, 7 insertions(+), 11 deletions(-) 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 "" } diff --git a/src/index.md b/src/index.md index 265470a..d5e8563 100644 --- a/src/index.md +++ b/src/index.md @@ -1,2 +1,3 @@ toc: true index: b +index_show_date: true diff --git a/src/s/index.md b/src/s/index.md index 3284ddd..e24c59c 100644 --- a/src/s/index.md +++ b/src/s/index.md @@ -8,7 +8,6 @@ while this page is kept up-to date with general informations. - operating system: openbsd, freebsd, alpine linux - database: postgresql, sqlite, redis - ## services service | domain | available | public (1) diff --git a/src/style/style.css b/src/style/style.css index 8d60214..1aaf857 100644 --- a/src/style/style.css +++ b/src/style/style.css @@ -52,10 +52,6 @@ ul.index li { background-color: #eeeeee; } ul.index li span { - float: right; -} - -span.date { display: block; } -- cgit v1.2.3