Skip to content

Commit

Permalink
Create site with documentation #164 : fill empty articles with link list
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Mar 7, 2024
1 parent e38bced commit 0dd366e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mdbooker.awk
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ function handleTitle(h,pass, indent,dir,i,path) {
if (pass == 1) {
Link2Path[linkify(Title)] = path
if (H > 2)
ContentLinks[PathElements[H - 1]] = ContentLinks[PathElements[H - 1]] Title "\n"
}else {
ContentLinks[PathElements[H - 1]] = ContentLinks[PathElements[H - 1]] "- [" Title "](" path ")\n"
} else {
print "generating: " path "..."
if (!(Content = trim(Content))) {
Content = ContentLinks[Title]
Expand Down

0 comments on commit 0dd366e

Please sign in to comment.