#!/bin/sh
-# Copyright 2023 Paul Hänsch
+# Copyright 2023, 2024 Paul Hänsch
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
}
index() {
- export PATH_INFO="" _DATE="$(date +%s)"
+ export PATH_INFO="" _DATE="$(date +%s)" SEARCH_INDEX=true
if [ "$location" ]; then
location="${location#/}" location="${location%/}"
then
[ "$verb" ] && printf "%${v}s\r%s\r" "" "$PATH_INFO" >&2
v="${#PATH_INFO}"
+ cd -- "$_DATA/pages/$PATH_INFO"
"$_EXEC/parsers/40_indexer.sh" <"$_DATA/pages/$PATH_INFO/#page.md" >/dev/null
fi
done