golang-template/ui/html/base.tmpl

28 lines
858 B
Cheetah

{{define "base"}}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>{{template "title" .}} - Golang template</title>
<!-- Link to the CSS stylesheet and favicon -->
<link rel="stylesheet" href="/static/css/main.css" />
<link
rel="shortcut icon"
href="/static/img/favicon.ico"
type="image/x-icon"
/>
<!-- Also link to some fonts hosted by Google -->
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Ubuntu+Mono:400,700"
/>
<script src="https://unpkg.com/htmx.org@1.9.10"></script>
</head>
<body>
<main>{{template "main" .}}</main>
<footer>Powered by <a href="https://go.dev/">Go</a></footer>
<!-- And include the JavaScript file -->
<script src="/static/js/main.js" type="text/javascript"></script>
</body>
</html>
{{end}}