Add Algolia search

This commit is contained in:
Matthew Holt 2020-03-26 12:57:10 -06:00
parent 1d696eb4de
commit 208c48130d
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5
7 changed files with 45 additions and 180 deletions

View file

@ -1,8 +1,9 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="/resources/images/favicon.png">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Crimson+Text:400,800|Maven+Pro:400,700,900|Montserrat:400,700|PT+Mono&display=swap">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter:400,700|Maven+Pro:400,700,900|Montserrat:400,700|PT+Mono&display=swap">
<link rel="stylesheet" href="/resources/css/common.css">
<script src="/resources/js/common.js"></script>
<!-- General metatags -->
<meta name="author" content="Caddy Web Server">
@ -21,3 +22,7 @@
<meta name="twitter:description" value="Caddy is a powerful, enterprise-ready, open source web server with automatic HTTPS written in Go">
<meta name="twitter:image" content="https://caddyserver.com/resources/images/caddy-open-graph.jpg">
<meta name="twitter:url" value="https://caddyserver.com/">
<!-- Algolia -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css">
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>

View file

@ -1,5 +1,6 @@
<!--TODO: add class="current" to the current link-->
<nav>
<input type="search" id="search" placeholder="🔍 Search...">
<a href="https://github.com/caddyserver/caddy/releases">Download</a>
<a href="/docs/">Documentation</a>
<a href="https://github.com/caddyserver/caddy">GitHub</a>