Add search links.
This commit is contained in:
parent
26b8f548c6
commit
aa7b09f973
|
@ -127,7 +127,8 @@ def node(node):
|
|||
pushlinks=n.push_links() if n else [],
|
||||
pull_nodes=n.pull_nodes() 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>')
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
-->
|
||||
|
||||
<br />
|
||||
<div class="search"><strong>Search results (this Agora)</strong>
|
||||
<div class="search">
|
||||
<strong>Search (this Agora)</strong>
|
||||
<br>
|
||||
{% if search %}
|
||||
{% for subnode in search %}
|
||||
|
@ -26,10 +27,13 @@ No search results.
|
|||
{% endif %}
|
||||
</div>
|
||||
|
||||
<br />
|
||||
|
||||
<!--
|
||||
<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>
|
||||
-->
|
||||
|
||||
|
|
Loading…
Reference in New Issue