Home

ugit @22cdff623a8ec2342b9f90cc60f4d66f0e7ec712 - 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
package html

type BaseContext struct {
	Title string
	Description string
}

templ base(bc BaseContext) {
	<!DOCTYPE html>
	<html>
		<head>
			<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-auto 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>
}