summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild.sh4
-rw-r--r--config.toml1
-rw-r--r--themes/new_theme/layouts/partials/ranklist.html2
3 files changed, 5 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index 6b745c1..d60d54b 100755
--- a/build.sh
+++ b/build.sh
@@ -6,7 +6,9 @@ else
SED=sed
fi
+TEST_URL=`grep strus_url config.toml | cut -f 2 -d '"'`
+
rm -rf public
hugo -v -b http://www.andreasbaumann.cc
-$SED -i 's@http://euromac.lan:8080/strus/query/wwwandreasbaumanncc@http://www.andreasbaumann.cc/strus/query/wwwandreasbaumanncc@g' \
+$SED -i "s@$TEST_URL@http://www.andreasbaumann.cc/strus/query/wwwandreasbaumanncc@g" \
public/search/index.html
diff --git a/config.toml b/config.toml
index 24d081f..6e4f758 100644
--- a/config.toml
+++ b/config.toml
@@ -14,6 +14,7 @@ SectionPagesMenu = "main"
location = "Zurich"
copyright_years = "2009 - 2017"
opengraph = true
+ strus_url = "http://eeepc.lan:8080/strus/query/wwwandreasbaumanncc"
[Params.widgets]
search = true
diff --git a/themes/new_theme/layouts/partials/ranklist.html b/themes/new_theme/layouts/partials/ranklist.html
index a83dc99..03ebde8 100644
--- a/themes/new_theme/layouts/partials/ranklist.html
+++ b/themes/new_theme/layouts/partials/ranklist.html
@@ -189,7 +189,7 @@
$.ajax( {
type : 'POST',
- url : 'http://euromac.lan:8080/strus/query/wwwandreasbaumanncc',
+ url : {{ .Site.Params.strus_url }},
data : json,
contentType : 'application/json'
} )