Ronbun/ui/html/pages/base.tmpl
2026-07-11 17:00:58 +02:00

51 lines
2.3 KiB
Go Template

{{define "base"}}
<!doctype html>
<html lang='en'>
<head>
<meta charset='utf-8'>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta http-equiv="X-UA-Compatible" content="ie=edge"/>
{{if ne .Theme "raw"}}
<link rel="stylesheet" href="/static/index.css">
<script src="/static/index.js"></script>
<link rel="preload" href="/static/fonts/subsetted/Inter-roman.var-subset.woff2" as="font" type="font/woff2"
crossorigin="anonymous"/>
<link rel="preload" href="/static/fonts/subsetted/EditorialNew-Regular-subset.woff2" as="font" type="font/woff2"
crossorigin="anonymous"/>
{{end}}
{{if eq .Theme "raw"}}
{{template "rawcss" .}}
{{end}}
<title>{{.Page.Name}} - Thomasorus</title>
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,<svg></svg>"/>
<link rel="alternate" type="application/atom+xml" href="https://thomasorus.com/feed" />
<meta name="description" content="{{ .Page.Summary }}">
<meta property="og:title" content="{{ .Page.Name }}">
<meta property="og:type" content="website">
<meta property="og:description" content="{{ .Page.Summary }}">
<meta property="og:site_name" content="Thomasorus">
<meta property="og:url" content="https://thomasorus.com/{{.Page.Slug}}">
<meta property="og:image" content="https://thomasorus.com/og/{{.Page.Slug}}">
<meta property="og:image:height" content="1200">
<meta property="og:image:width" content="630">
<meta property="og:image:type" content="image/jpg">
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@thomasorus">
<meta name="twitter:title" content="{{ .Page.Name }}">
<meta name="twitter:image" content="https://thomasorus.com/og/{{.Page.Slug}}">
<meta name="twitter:image:alt" content="{{ .Page.Name }}">
</head>
<body theme="{{.Theme}}" class="{{.Page.Category}}">
{{template "header" .}}
{{template "body" .}}
{{template "footer" .}}
{{template "patterns" .}}
</body>
</html>
{{end}}