Update 2023-11-03 13:48:17
This commit is contained in:
parent
6603818525
commit
cf4a147140
@ -20,8 +20,13 @@ EOF
|
|||||||
# print list
|
# print list
|
||||||
ls -r1 *.ps *.pm *.ph *.pa *.pt 2>/dev/null | fgrep '.draft.' | while read line
|
ls -r1 *.ps *.pm *.ph *.pa *.pt 2>/dev/null | fgrep '.draft.' | while read line
|
||||||
do
|
do
|
||||||
TITLE="$(echo "${line%%.*}" | tr '_' ' ')"
|
if [ $(echo "${line##*.}") == "pm" ]
|
||||||
URI="posts/${line%.*}.html"
|
then
|
||||||
|
TITLE="$(head -1 "$line" | sed 's/^# //g')"
|
||||||
|
else
|
||||||
|
TITLE="$(echo "${line%%.*}" | tr '_' ' ')"
|
||||||
|
fi
|
||||||
|
URI="posts/${line%%.*}.html"
|
||||||
|
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
<li>
|
<li>
|
||||||
|
@ -20,7 +20,12 @@ EOF
|
|||||||
# print list
|
# print list
|
||||||
ls -r1 *.ps *.pm *.ph *.pa *.pt 2>/dev/null | fgrep -v '.draft.' | while read line
|
ls -r1 *.ps *.pm *.ph *.pa *.pt 2>/dev/null | fgrep -v '.draft.' | while read line
|
||||||
do
|
do
|
||||||
TITLE="$(echo "${line%%.*}" | tr '_' ' ')"
|
if [ $(echo "${line##*.}") == "pm" ]
|
||||||
|
then
|
||||||
|
TITLE="$(head -1 "$line" | sed 's/^# //g')"
|
||||||
|
else
|
||||||
|
TITLE="$(echo "${line%%.*}" | tr '_' ' ')"
|
||||||
|
fi
|
||||||
URI="posts/${line%%.*}.html"
|
URI="posts/${line%%.*}.html"
|
||||||
|
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
|
Loading…
Reference in New Issue
Block a user