diff options
1 files changed, 5 insertions, 5 deletions
| -rwxr-xr-x | csg | 10 |
@@ -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 ' |
