Skip to content
Snippets Groups Projects
Commit 56298028 authored by Fabian Nuraddin Alexander Gabel's avatar Fabian Nuraddin Alexander Gabel :speech_balloon:
Browse files

replace title and filename directives

parent 6ccfc404
No related branches found
No related tags found
2 merge requests!82Resolve "use ssio directives to produce webpage",!77Resolve "tuhh-deployment"
......@@ -24,8 +24,11 @@ echo -e "Including .html-files from $RESEARCH_TOPICS ..."
# replace "MARKER" in .html files with research topics
for f in $RESEARCH_TOPICS/*.html
do
title=`grep '<h1' $f | sed -e "s;<h1 id=\".*\">\(.*\)</h1>;\1;"`
filename=$(basename -- "$f")
echo "found $f"
sed -e "/TOPIC-CONTENT-MARKER/r $f" \
-e "s/TOPIC-FILE-MARKER/$filename/ " \
-e "s/TOPIC-TITLE-MARKER/$title/ " \
-e '/TOPIC-CONTENT-MARKER/d' $RESEARCH_STATIC/ssi/topic_template.shtml > "$RESEARCH_BUILD/${filename%.html}".html
done
<!--#set var="GERMAN_PAGE" value="TOPIC-FILE-MARKER" -->
<!--#set var="TITLE" value="TOPIC-FILE-MARKER" -->
<!--#set var="TITLE" value="TOPIC-TITLE-MARKER" -->
<!--#set var="HEAD_TITLE" value="$TITLE" -->
<!--#include virtual="/include/html/header.html" -->
<!--#include virtual="/include/html/brcr_begin.html" -->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment