home
·
contact
·
privacy
projects
/
redo-blog
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Simplify HTML file link path determination.
[redo-blog]
/
processor
/
metadata
/
default.index_snippet.do
diff --git
a/processor/metadata/default.index_snippet.do
b/processor/metadata/default.index_snippet.do
index d95b27b176de639c32025094c107269c74473367..e332350f23fe81f6b1b27dd5ac1208e5d4930053 100644
(file)
--- a/
processor/metadata/default.index_snippet.do
+++ b/
processor/metadata/default.index_snippet.do
@@
-9,6
+9,6
@@
html_file="${src_file%.*}.html"
redo-ifchange "$html_file"
# Get variables, write entry.
redo-ifchange "$html_file"
# Get variables, write entry.
-title_html=
`cat "$intermediate_file" | head -1`
-html_file_escaped=
`escape_url "${html_file#*/}"`
+title_html=
$(cat "$intermediate_file" | head -1)
+html_file_escaped=
$(escape_url "${1%.index_snippet}.html")
printf "<li><a href=\"%s\" />%s</a></li>\n" "$html_file_escaped" "$title_html"
printf "<li><a href=\"%s\" />%s</a></li>\n" "$html_file_escaped" "$title_html"