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
Move (links to) files meant to be public into separate directory.
[redo-blog]
/
processor
/
default.html.do
diff --git
a/processor/default.html.do
b/processor/default.html.do
index 2a457a5ad2eda05c2f47e9953357da48af5de818..99be4638584ecc9b3cb6294c662b602c8ee02be0 100644
(file)
--- a/
processor/default.html.do
+++ b/
processor/default.html.do
@@
-1,9
+1,10
@@
#!/bin/sh
# Pull in global dependencies.
#!/bin/sh
# Pull in global dependencies.
-. ./helpers.sh
-intermediate_file="${1%.html}.intermediate"
-title_file=title.meta
+metadata_dir=.meta
+. "$metadata_dir"/helpers.sh
+intermediate_file="${metadata_dir}/${1%.html}.intermediate"
+title_file="${metadata_dir}"/title
redo-ifchange "$title_file"
redo-ifchange "$intermediate_file"
redo-ifchange "$title_file"
redo-ifchange "$intermediate_file"
@@
-23,6
+24,5
@@
EOF
# Write remaining entry head and body.
printf "<title>%s – %s</title>\n</head>\n<body>\n" "$blog_title" "$title_plaintext_escaped"
# Write remaining entry head and body.
printf "<title>%s – %s</title>\n</head>\n<body>\n" "$blog_title" "$title_plaintext_escaped"
-#printf "<title>%s – %s</title>\n</head>\n<body>\n" "$blog_title" "$entry_title"
printf "<h1>%s</h1>\n" "$title_html"
printf "<section>\n%s\n</section>\n</body>\n</html>" "$body"
printf "<h1>%s</h1>\n" "$title_html"
printf "<section>\n%s\n</section>\n</body>\n</html>" "$body"