Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
1 files changed, 5 insertions, 5 deletions
-rwxr-xr-xcsg10
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 '