Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/azmelanar/hugo-theme-pixyll.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkshcherban <k.scherban@gmail.com>2017-09-10 02:52:59 +0300
committerkshcherban <k.scherban@gmail.com>2017-09-10 02:52:59 +0300
commitf5f0da95e478705bea24f8bbbf61d41de94a9ed7 (patch)
treeceee90af633e153e774b1cbe840b4bfea4fa6ec1 /exampleSite
parent909b9c9ca5102f13d40b94c2b89b59fab2df6aa9 (diff)
Documented search and added script
Diffstat (limited to 'exampleSite')
-rw-r--r--exampleSite/config.toml2
-rw-r--r--exampleSite/content/search.md26
l---------exampleSite/create_json.py1
3 files changed, 28 insertions, 1 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 7ff017c..f6a6b2c 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -30,7 +30,7 @@ hrefTargetBlank = true
tag = "tags"
[params]
- #search_engine = true
+ search_engine = true
#google_analytics_id = ""
twitter_username = "username"
#disqus_shortname = ""
diff --git a/exampleSite/content/search.md b/exampleSite/content/search.md
new file mode 100644
index 0000000..7b93931
--- /dev/null
+++ b/exampleSite/content/search.md
@@ -0,0 +1,26 @@
++++
+date = "2014-11-09T13:49:44+04:00"
+draft = false
+title = "search"
+
++++
+
+<div>
+<link rel="stylesheet" type="text/css" href="../tipuesearch/tipuesearch.css">
+<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
+<script type="text/javascript" src="../tipuesearch/tipuesearch_set.js"></script>
+<script type="text/javascript" src="../tipuesearch/tipuesearch.min.js"></script>
+<script>
+$(document).ready(function() {
+ $('#tipue_search_input').tipuesearch({
+ 'mode' : 'json',
+ 'show': 10,
+ 'newWindow': true,
+ 'contentLocation': '../tipuesearch_content.json'
+ });
+});
+</script>
+<div class="span8 offset2">
+ <div id="tipue_search_content"><div id="tipue_search_loading"></div>
+</div>
+</div>
diff --git a/exampleSite/create_json.py b/exampleSite/create_json.py
new file mode 120000
index 0000000..4902329
--- /dev/null
+++ b/exampleSite/create_json.py
@@ -0,0 +1 @@
+../create_json.py \ No newline at end of file