summaryrefslogtreecommitdiff
path: root/src/index-page.sh
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2023-09-15 10:11:41 -0400
committerLouie S <louie@example.com>2023-09-15 10:11:41 -0400
commitd44e7f620f4970ab72bd7979cd8751857f683915 (patch)
tree72518b296a6877ce063430779687ee9896640974 /src/index-page.sh
parentd4bd46635fe9a74bf35812ee5b635af177e74cfc (diff)
Improve design, fix guide names for info-reader targetHEADmaster
Diffstat (limited to 'src/index-page.sh')
-rwxr-xr-xsrc/index-page.sh12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/index-page.sh b/src/index-page.sh
index ef398af..becfd48 100755
--- a/src/index-page.sh
+++ b/src/index-page.sh
@@ -5,17 +5,13 @@
# shellcheck source=./lib/insert
. "$(dirname "$0")"/lib/insert
-DB_PATH="$1"
+CALLER="$1"
shift
-get_title() {
- FILE="$1"
+. "$(dirname "$0")"/"$CALLER"/get_title
- pup -p -f "$FILE" 'title text{}' | \
- tr -d \\n | \
- sed 's/ (GNU[^)]*)$//' | \
- sed 's/\"/\"\"/g'
-}
+DB_PATH="$1"
+shift
insert_pages() {
# Get title and insert into table for each html file