aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-03-07 00:38:29 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-03-07 00:38:29 -0800
commit3738ed493b569e14026278c186d6d118cc771bcc (patch)
tree352ee48c6152a90988fe86d1f4a1c8f213aca535 /python
parent526538853a5015cc5dfa265c656493a9fd3ed320 (diff)
downloadfatcat-3738ed493b569e14026278c186d6d118cc771bcc.tar.gz
fatcat-3738ed493b569e14026278c186d6d118cc771bcc.zip
webface: microdata for searchbox
Diffstat (limited to 'python')
-rw-r--r--python/fatcat_web/templates/base.html2
-rw-r--r--python/fatcat_web/templates/home.html13
2 files changed, 11 insertions, 4 deletions
diff --git a/python/fatcat_web/templates/base.html b/python/fatcat_web/templates/base.html
index dd0e786d..c3343652 100644
--- a/python/fatcat_web/templates/base.html
+++ b/python/fatcat_web/templates/base.html
@@ -13,7 +13,7 @@
/* bnewbold: fix light grey bars in header */
.ui.inverted.menu .item:before { background: none; }
</style>
-
+ {% block extra_head %}{% endblock %}
</head>
<body style="margin-bottom: 100px; height: auto;">
diff --git a/python/fatcat_web/templates/home.html b/python/fatcat_web/templates/home.html
index 9581d6b5..99e91ec3 100644
--- a/python/fatcat_web/templates/home.html
+++ b/python/fatcat_web/templates/home.html
@@ -1,6 +1,12 @@
{% extends "base.html" %}
+
+{% block extra_head %}
+ <link rel="canonical" href="https://{{ config.FATCAT_DOMAIN }}/">
+{% endblock %}
+
{% block body %}
-<div class="ui container text">
+<div class="ui container text" itemscope itemtype="https://schema.org/WebSite">
+<meta itemprop="url" content="https://{{ config.FATCAT_DOMAIN }}/"/>
<!-- <h1 class="ui header centered" style="font-size: 2.5rem;">Fatcat: The Universal Research Catalog</h1><br> -->
@@ -8,10 +14,11 @@
<br>
<h2 class="ui header centered">Cataloging of millions of research publications</h2>
-<form class="" role="search" action="/release/search" method="get">
+<form class="" role="search" action="/release/search" method="get" itemprop="potentialAction" itemscope itemtype="https://schema.org/SearchAction">
+ <meta itemprop="target" content="https://{{ config.FATCAT_DOMAIN }}/release/search?q={q}"/>
<div class="ui form">
<div class="ui action input huge fluid">
- <input type="text" placeholder="Query..." name="q" aria-label="search release metadata">
+ <input type="text" placeholder="Query..." name="q" aria-label="search release metadata" required itemprop="query-input">
<button class="ui button">Search</button>
</div>
</div>