honk/views/header.html

45 lines
1.2 KiB
HTML

<!doctype html>
<html>
<head>
<title>honk</title>
<link href="/style.css{{ .StyleParam }}" rel="stylesheet">
{{ if .LocalStyleParam }}
<link href="/local.css{{ .LocalStyleParam }}" rel="stylesheet">
{{ end }}
<style>
{{ .UserStyle }}
</style>
<link href="/icon.png" rel="icon">
<meta name="theme-color" content="#305">
<meta name="viewport" content="width=device-width">
</head>
<body>
<header>
{{ if .UserInfo }}
<details>
<summary>menu</summary>
<p>
<ul>
<li><a href="/{{ .UserSep }}/{{ .UserInfo.Username }}">{{ .UserInfo.Username }}</a></span>
<li><a href="/honkers">honkers</a></span>
<li><a href="/c">combos</a></span>
<li><a href="/about">about</a></span>
<li><a href="/front">front</a></span>
<li><a href="/xzone">xzone</a></span>
<li><a href="/zonkzone">zonkzone</a></span>
<li><a href="/funzone">funzone</a></span>
<li><a href="/account">account</a></span>
</details>
<p>
<span><a id="homelink" href="/">home</a></span>
<span><a id="atmelink" href="/atme">@me</a></span>
{{ else }}
<span><a id="homelink" href="/">home</a></span>
<span><a href="/about">about</a></span>
{{ if .ShowRSS }}
<span><a href="/rss">rss</a></span>
{{ end }}
<span><a href="/login">login</a></span>
{{ end }}
</header>