From f01d9d5a973008ed0dde2ef65e5ef2f958e1f442 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Tue, 14 Apr 2015 18:58:37 -0700 Subject: Fix backlinks compilation and index randomizelink --- scripts/compile.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/compile.sh b/scripts/compile.sh index ba89f5a..19cc962 100644 --- a/scripts/compile.sh +++ b/scripts/compile.sh @@ -75,8 +75,10 @@ case "$FILE" in --fix-head) # fix backlink head: compile.sh --fix-head a.back a.txt #{{{ title="$(getMeta toc "$2")"; id="$(getMeta id "$2")"; - sed -i "s/__TITLE__/$title/" "$1"; - sed -i "s/__ID__/$id/" "$1"; + sed -i "/__TITLE__/c\ + title: $title" "$1"; + sed -i "/__ID__/c\ + id: $id" "$1"; ;; #}}} *) # bad argument {{{ echo "Bad argument"; -- cgit 1.4.1-21-gabe81