From d36c2e459a74ec67e523539eb98b78b95b01432a Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 16 Apr 2025 11:20:43 -0300 Subject: src/content/: Normalize [source,$lang] code blocks --- src/content/tils/2020/08/12/filename-timestamp.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/content/tils/2020/08/12/filename-timestamp.adoc') diff --git a/src/content/tils/2020/08/12/filename-timestamp.adoc b/src/content/tils/2020/08/12/filename-timestamp.adoc index 1cbe404..aa8d63b 100644 --- a/src/content/tils/2020/08/12/filename-timestamp.adoc +++ b/src/content/tils/2020/08/12/filename-timestamp.adoc @@ -5,7 +5,7 @@ When writing Jekyll posts or creating log files with dates on them, I usually struggle with finding a direct way of accomplishing that. There's a simple solution: `date -I`. -[source,shell] +[source,sh] ---- ./my-program.sh > my-program.$(date -I).log cp post-template.md _posts/$(date -I)-post-slug.md @@ -18,7 +18,7 @@ I always had to read `man date` or search the web over and over, and after doing this repeatedly it became clear that both `date -I` and `date -Is` (`s` here stands for seconds) are the thing that I'm looking for 95% of the time: -[source,shell] +[source,sh] ---- # inside my-program.sh echo "Program started at $(date -Is)" -- cgit v1.2.3