]> Sergey Matveev's repositories - galgen.git/commitdiff
Description per directory
authorSergey Matveev <stargrave@stargrave.org>
Tue, 21 Feb 2023 13:11:32 +0000 (16:11 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 21 Feb 2023 13:11:32 +0000 (16:11 +0300)
galgen.zsh

index e58c88cd9f417034f7a083353cf6bf15a109106c..310f7e1228689e32612daf23bfc4999fef2b5f5a 100755 (executable)
@@ -87,6 +87,11 @@ for (( p=1 ; p <= $pages ; p++ )) {
 <!DOCTYPE html>
 <html><head><title>Page ${p}/$pages</title></head><body>
 EOF
+    [[ $p -eq 1 ]] && [[ -r .txt ]] && {
+        echo "<pre>" >> $dst
+        cat .txt >> $dst
+        echo "</pre>" >> $dst
+    }
     [[ $p -eq 1 ]] ||
         echo "<a href=\"$(( $p - 1 )).page.html\">&lt;&lt;&lt;</a>" >> $dst
     [[ $p -eq $pages ]] ||