summaryrefslogtreecommitdiff
path: root/lists
diff options
context:
space:
mode:
Diffstat (limited to 'lists')
-rw-r--r--lists/default.md.do6
1 files changed, 1 insertions, 5 deletions
diff --git a/lists/default.md.do b/lists/default.md.do
index 121955e..55abe6f 100644
--- a/lists/default.md.do
+++ b/lists/default.md.do
@@ -1,10 +1,6 @@
1#!/usr/bin/env bash 1#!/usr/bin/env bash
2redo-ifchange "$2/title" 2redo-ifchange "$2/title"
3 3
4extracttitle() {
5 runhaskell -package-conf=$(find ../.cabal-sandbox -maxdepth 1 -iname '*.conf.d' | head -n 1) ../build/extract-title.hs $@ 2>&1 | grep 'title: ' | cut -d ' ' -f '2-'
6}
7
8POSTS=() 4POSTS=()
9while read -r -d $'\0'; do 5while read -r -d $'\0'; do
10 post=$(realpath --relative-to=. "$REPLY") 6 post=$(realpath --relative-to=. "$REPLY")
@@ -24,7 +20,7 @@ EOF
24 20
25POST_TITLES=() 21POST_TITLES=()
26for x in "${POSTS[@]}"; do 22for x in "${POSTS[@]}"; do
27 title=$(pandoc -t json "$x" | extracttitle) 23 title=$(pandoc -t json "$x" | ../build/extract-title.hs)
28 POST_TITLES+=("$title") 24 POST_TITLES+=("$title")
29done 25done
30 26