Add search links.
This commit is contained in:
parent
26b8f548c6
commit
aa7b09f973
2 changed files with 10 additions and 5 deletions
|
@ -127,7 +127,8 @@ def node(node):
|
||||||
pushlinks=n.push_links() if n else [],
|
pushlinks=n.push_links() if n else [],
|
||||||
pull_nodes=n.pull_nodes() if n else [],
|
pull_nodes=n.pull_nodes() if n else [],
|
||||||
forwardlinks=n.forward_links() if n else [],
|
forwardlinks=n.forward_links() if n else [],
|
||||||
search=search_subnodes
|
search=search_subnodes,
|
||||||
|
query=n.wikilink.replace('-', '%20')
|
||||||
)
|
)
|
||||||
|
|
||||||
@bp.route('/subnode/<path:subnode>')
|
@bp.route('/subnode/<path:subnode>')
|
||||||
|
|
|
@ -15,7 +15,8 @@
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
<div class="search"><strong>Search results (this Agora)</strong>
|
<div class="search">
|
||||||
|
<strong>Search (this Agora)</strong>
|
||||||
<br>
|
<br>
|
||||||
{% if search %}
|
{% if search %}
|
||||||
{% for subnode in search %}
|
{% for subnode in search %}
|
||||||
|
@ -26,10 +27,13 @@ No search results.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<br />
|
||||||
|
|
||||||
<!--
|
|
||||||
<div class="search">
|
<div class="search">
|
||||||
Search results (the internet)
|
<strong>Search (the internet)</strong> <br />
|
||||||
|
<a href="https://www.google.com/search?q={{query}}">Google</a> <br />
|
||||||
|
<a href="https://www.duckduckgo.com/{{query}}">DuckDuckGo</a> <br />
|
||||||
|
<a href="https://en.wikipedia.org/w/index.php?search={{query}}&title=Special%3ASearch&fulltext=1">Wikipedia</a> <br />
|
||||||
|
<a href="https://twitter.com/search/?f=live&q={{format}}">Twitter</a> <br />
|
||||||
</div>
|
</div>
|
||||||
-->
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue