Mirror of https://git.jolheiser.com/ugit
1package html
2
3type BaseContext struct {
4 Title string
5 Description string
6}
7
8templ base(bc BaseContext) {
9 <!DOCTYPE html>
10 <html>
11 <head>
12 <meta charset="UTF-8"/>
13 <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
14 <title>{ bc.Title }</title>
15 <link rel="icon" href="/_/favicon.svg"/>
16 <link rel="stylesheet" href="/_/tailwind.css"/>
17 <meta property="og:title" content={ bc.Title }/>
18 <meta property="og:description" content={ bc.Description }/>
19 </head>
20 <body class="latte dark:mocha bg-base/50 dark:bg-base/95 max-w-7xl mx-5 sm:mx-auto my-10">
21 <h2 class="text-text text-xl mb-3"><a class="underline decoration-text/50 decoration-dashed hover:decoration-solid" href="/">Home</a></h2>
22 { children... }
23 </body>
24 </html>
25}