diff options
| Commit | 853702c4ef47563cac31b129e99bf35e0cc84405 (patch) | |
|---|---|---|
| Author | 2023-10-17 14:09:37 +0300 | |
| Committer | 2023-10-17 14:09:37 +0300 | |
| Files | 674038c0e00c5dd12dd70e684d1117f410fbfd83 | |
| csg-853702c4ef47563cac31b129e99bf35e0cc84405.tar csg-853702c4ef47563cac31b129e99bf35e0cc84405.tar.gz csg-853702c4ef47563cac31b129e99bf35e0cc84405.zip | ||
| Parent | 65e74b7f0bc0cc758350972a4bd558846cd50151 (diff) | |
[s2] Restructured and added comments for title variable
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 ' |
