Add OpenSearch and Google site search support

This commit is contained in:
rubenwardy
2019-02-02 17:05:18 +00:00
parent a79cc758ed
commit e40b247a97
3 changed files with 25 additions and 0 deletions

View File

@@ -4,6 +4,21 @@
Welcome
{% endblock %}
{% block scriptextra %}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"url": "https://content.minetest.net/",
"potentialAction": {
"@type": "SearchAction",
"target": "https://content.minetest.net/packages?q={search_term_string}",
"query-input": "required name=search_term_string"
}
}
</script>
{% endblock %}
{% block content %}
<!-- <header class="jumbotron">
<div class="container">