aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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>