X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=blobdiff_plain;f=examples%2Fhtdocs%2Ftopic.html;h=642941b5a96c31f5afe528b54d55e7c23209db4f;hp=af4e1d61a0076825fde2998853437aa74397d4ec;hb=fd5d0f9300f108fd5d1b867ef6bd187d16bb05c7;hpb=4cc79170722705d8409996f225e1cec94193138a diff --git a/examples/htdocs/topic.html b/examples/htdocs/topic.html index af4e1d6..642941b 100644 --- a/examples/htdocs/topic.html +++ b/examples/htdocs/topic.html @@ -34,8 +34,11 @@ return mkws.getParameterByName('q', obj[0]); } }); + Handlebars.registerHelper('mkws-topicurl', function(topic) { + return window.location.pathname + "?q=" + encodeURIComponent(topic); + }); - - @@ -62,7 +65,7 @@
-
@@ -70,10 +73,10 @@

Related Topics

- + data-mkws-config='{ "template": "topic-facet" }'>
@@ -82,8 +85,8 @@

Images

-
+
@@ -93,7 +96,7 @@

News

-
@@ -101,7 +104,7 @@

Articles

-
@@ -109,7 +112,7 @@

Books

-
@@ -119,7 +122,7 @@

Results from all targets

-
+