all repos — honk @ 3c7de003820ee24bbe125c9f24e6e792d1bf0853

my fork of honk

views/header.html (view raw)

 1<!doctype html>
 2<html>
 3  <head>
 4  <title>honk</title>
 5  <link href="https://cdn.icyphox.sh/fonts/inter.css" rel="stylesheet">
 6  <link href="/style.css{{ .StyleParam }}" rel="stylesheet">
 7    {{ if .LocalStyleParam }}
 8  <link href="/local.css{{ .LocalStyleParam }}" rel="stylesheet">
 9    {{ end }}
10  <style>
11  {{ .UserStyle }}
12  </style>
13  {{ .APAltLink }}
14  {{ .Honkology }}
15  <link rel="manifest" href="/manifest.webmanifest">
16  <link href="/icon.png" rel="icon">
17  <meta name="theme-color" media="(prefers-color-scheme: light) "content="#f4f4f4">
18  <meta name="theme-color" media="(prefers-color-scheme: dark) "content="#509c93">
19  <meta name="viewport" content="width=device-width">
20  <script>
21  if ('serviceWorker' in navigator) { navigator.serviceWorker.register('/sw.js') }
22  </script>
23  </head>
24  <body>
25    <header>
26      {{ if .UserInfo }}
27      <script src="/mecount.js"></script>
28      <nav>
29        <ul class="easylinks">
30      <li><a id="homelink" href="/">home</a>
31      <li><a id="atmelink" href="/atme">@me<span id=mecount>{{ if .UserInfo.Options.MeCount }}{{ .UserInfo.Options.MeCount }}{{ end }}</span></a>
32      <li><a href="/account">account</a>
33      <li><a href="/honkers">honkers</a>
34      <li><a href="/{{ .UserSep }}/{{ .UserInfo.Name }}">{{ .UserInfo.Name }}</a>
35    </ul>
36      </nav>
37
38      <details id="topmenu">
39        <summary>menu</summary>
40        <ul>
41          <li><a id="firstlink" href="/first">first</a>
42          <li style="list-style-type:none; margin-left:-1em">
43            <details>
44              <summary>combos</summary>
45              <ul>
46                {{ range .Combos }}
47                <li><a class="combolink" href="/c/{{ . }}">{{ . }}</a>
48                  {{ end }}
49              </ul>
50            </details>
51          <li><a href="/chatter">chatter<span id=chatcount>{{ if .UserInfo.Options.ChatCount }}({{ .UserInfo.Options.ChatCount }}){{ end }}</span></a>
52          <li><a href="/o">tags</a>
53          <li><a href="/events">events</a>
54          <li><a id="longagolink" href="/longago">long ago</a>
55          <li><a id="savedlink" href="/saved">saved</a>
56          <li><a href="/hfcs">filters</a>
57          <li style="list-style-type:none; margin-left:-1em">
58            <details>
59              <summary>more stuff</summary>
60              <ul>
61                <li><a href="/about">about</a>
62                <li><a href="/front">front</a>
63                <li><a href="/funzone">funzone</a>
64                <li><a href="/xzone">xzone</a>
65              </ul>
66            </details>
67          <li><a href="/help/honk.1.html">help</a>
68        </ul>
69      </details>
70      {{ else }}
71      <div id="topmenu">
72        <span><a id="homelink" href="/">home</a></span>
73        <span><a href="/o">tags</a></span>
74        <span><a href="/events">events</a></span>
75        <span><a href="/about">about</a></span>
76        {{ if .ShowRSS }}
77        <span><a href="/rss">rss</a></span>
78        {{ end }}
79        <span><a href="/login">login</a></span>
80      </div>
81      {{ end }}
82    </header>
83