Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit66c6f8c28a9a7edc0ce9930d04bed345cf4dfbb7 (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-10-17 13:32:38 +0300
Committer
 Syndamia <kamen@syndamia.com>
2023-10-17 13:32:38 +0300
Files5b99441c1be8886b5ffc0d620e68c2242a352e03
csg-66c6f8c28a9a7edc0ce9930d04bed345cf4dfbb7.tar
csg-66c6f8c28a9a7edc0ce9930d04bed345cf4dfbb7.tar.gz
csg-66c6f8c28a9a7edc0ce9930d04bed345cf4dfbb7.zip
Parent7935fb44d95d148f448e801e384787ba60ddf098 (diff)
(s2) Fixed title var not using title format
1 files changed, 8 insertions, 1 deletions
-rwxr-xr-xcsg9
diff --git a/csg b/csg
index fe3a677..d6d1d40 100755
--- a/csg
+++ b/csg
@@ -181,7 +181,14 @@ transform-file() {
local scripts="$2"
# Markdown stats for a file: title, description, words, date created, date edited
- local title="$($CSG_AWK '/^# / {print substr($0, 2); exit}' "$file")"
+ local title="$($CSG_AWK -v titlef="$TITLEF" '
+ /^# / {
+ $1 = ""
+ sub(FS, "")
+ sub(/.*/, titlef)
+ print
+ exit
+ }' "$file")"
local descr="$($CSG_AWK '
/^[[:alpha:]]/ {
startedGathering = 1