Home

ugit @9f2748ccc998bffffe5bcb52c3f24195563bb4f0 - refs - log -
-
https://git.jolheiser.com/ugit.git
The code powering this h*ckin' site
ugit / internal / html / base.templ
- raw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package html

type BaseContext struct {
	Title string
	Description string
}

templ base(bc BaseContext) {
	<!DOCTYPE html>
	<html>
		<head>
			<meta charset="UTF-8"/>
			<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
			<title>{ bc.Title }</title>
			<link rel="icon" href="/_/favicon.svg"/>
			<link rel="stylesheet" href="/_/tailwind.css"/>
			<meta property="og:title" content={ bc.Title }/>
			<meta property="og:description" content={ bc.Description }/>
		</head>
		<body class="latte dark:mocha bg-base/50 dark:bg-base/95 max-w-7xl mx-5 my-10">
			<h2 class="text-text text-xl mb-3"><a class="underline decoration-text/50 decoration-dashed hover:decoration-solid" href="/">Home</a></h2>
			{ children... }
		</body>
	</html>
}