diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-03-08 10:21:32 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2017-03-08 10:21:32 +0100 |
commit | a85e0b5aeb60f946c8c42952424447501620f375 (patch) | |
tree | 12e44c9bf403cc49d22e338cdba5461893bea638 | |
parent | 4980ff2d6c0e9e349c92f042ca1e07c643125491 (diff) | |
download | www-andreasbaumann-cc-a85e0b5aeb60f946c8c42952424447501620f375.tar.gz www-andreasbaumann-cc-a85e0b5aeb60f946c8c42952424447501620f375.tar.bz2 |
made test url of strus webservice a configuration parameter
-rwxr-xr-x | build.sh | 4 | ||||
-rw-r--r-- | config.toml | 1 | ||||
-rw-r--r-- | themes/new_theme/layouts/partials/ranklist.html | 2 |
3 files changed, 5 insertions, 2 deletions
@@ -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' } ) |