mirror of
https://github.com/sammyshear/trivia-chase.git
synced 2025-12-06 03:55:53 +00:00
31 lines
906 B
Plaintext
31 lines
906 B
Plaintext
package layout
|
|
|
|
type PageInfo struct {
|
|
RequestURI string
|
|
Title string
|
|
Description string
|
|
Image string
|
|
ImageAlt string
|
|
}
|
|
|
|
templ BaseLayout(pageInfo PageInfo) {
|
|
<!DOCTYPE html>
|
|
<html lang="en" class="w-full h-full">
|
|
<head>
|
|
<meta charset="utf-8"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
|
<meta name="google" content="notranslate"/>
|
|
<title>{ pageInfo.Title }</title>
|
|
<meta property="og:title" content={ pageInfo.Title }/>
|
|
<meta property="og:description" content={ pageInfo.Description }/>
|
|
<link rel="stylesheet" href="static/styles.css"/>
|
|
<script defer src="/static/scripts.js"></script>
|
|
<script defer src="https://unpkg.com/htmx-ext-json-enc@2.0.0/json-enc.js"></script>
|
|
<!-- Add other head elements like favicons, canonical links, etc. -->
|
|
</head>
|
|
<body class="w-full h-full">
|
|
{ children... }
|
|
</body>
|
|
</html>
|
|
}
|