mirror of
https://git.mills.io/prologic/zs-starter-template.git
synced 2024-11-23 13:56:03 +03:00
Fix onthispage plugin
This commit is contained in:
parent
79aacde71a
commit
9f5a6b7b7b
2
.zs/list
2
.zs/list
@ -1,5 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
if [ ! $# = 1 ]; then
|
||||
printf >&2 "Usage: %s <path> [ext]\n" "$(basename "$0")"
|
||||
exit 0
|
||||
|
@ -1,7 +1,9 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
set -eo pipefail
|
||||
|
||||
{
|
||||
echo "**On this page**"
|
||||
echo
|
||||
toc -a=false -d 2 -s 1 -p "$ZS_FILE"
|
||||
toc -d 2 -s 1 "$ZS_FILE"
|
||||
} | zs gen
|
||||
|
Loading…
Reference in New Issue
Block a user