Fix base and index template

This commit is contained in:
James Mills
2021-01-30 16:06:56 +10:00
parent a9be838b0b
commit de4d0539f0
3 changed files with 11 additions and 31 deletions

View File

@@ -13,14 +13,6 @@
<link rel="icon" type="image/png" href="/img/{{ .Commit}}/favicon.png" /> <link rel="icon" type="image/png" href="/img/{{ .Commit}}/favicon.png" />
{{ end }} {{ end }}
{{ range .Alternatives }}
<link rel="alternate" type="{{ .Type }}" title="{{ .Title }}" href="{{ .URL }}" />
{{ end }}
{{ range .Links }}
<link href="{{ .Href }}" rel="{{ .Rel }}" />
{{ end }}
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
@@ -104,7 +96,6 @@
<a href="/abuse" target="_blank" class="menu-item">Abuse</a> <a href="/abuse" target="_blank" class="menu-item">Abuse</a>
<a href="/help" target="_blank" class="menu-item">Help</a> <a href="/help" target="_blank" class="menu-item">Help</a>
<a href="/support" target="_blank" class="menu-item">Support</a> <a href="/support" target="_blank" class="menu-item">Support</a>
<a href="/atom.xml" target="_blank">Atom&nbsp;<i class="icss-rss"></i></a>
</div> </div>
</footer> </footer>
{{ if $.Debug }} {{ if $.Debug }}

View File

@@ -1,22 +1,11 @@
<!DOCTYPE html> {{define "content"}}
<html lang="en"> <article class="container">
<head> <form action="/search" method="GET">
<title>veri</title> <input type="text" id="search" name="q" placeholder="{{ $.SearchPrompt }}">
<meta name="viewport" content="width=device-width, initial-scale=1"> <button id="go" type="submit">
<link rel="stylesheet" href="https://cdn.simplecss.org/simple.min.css"> <i class="icss-search"></i>
</head> Go!
<body> </button>
<header> </form>
<a href="/"><h1>veri</h1></a> </article>
</header> {{end}}
<main>
<form action="/search" method="get">
<input type="text" id="search" name="q"><br><br>
<input type="submit" value="Search">
</form>
</main>
<footer>
<p><a href="https://sr.ht/~ols/veri/">about</a></p>
</footer>
</body>
</html>