From 853702c4ef47563cac31b129e99bf35e0cc84405 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 17 Oct 2023 14:09:37 +0300 Subject: [s2] Restructured and added comments for title variable --- csg | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/csg b/csg index 3aacb04..fd71b22 100755 --- a/csg +++ b/csg @@ -189,13 +189,13 @@ transform-file() { local outf="${file%md}html" local scripts="$2" - # Markdown stats for a file: title, description, words, date created, date edited + # Gets special information from the file local title="$($CSG_AWK -v titlef="$TITLEF" ' /^# / { - $1 = "" - sub(FS, "") - sub(/.*/, titlef) - print + # Remove first field + $1 = ""; sub(FS, "") + # Output title + sub(/.*/, titlef); print exit }' "$file")" local descr="$($CSG_AWK ' -- cgit v1.3.1-23-gd82d