owl-blogs/render/templates/base.tmpl

73 lines
2.9 KiB
Cheetah
Raw Normal View History

2023-07-06 20:16:52 +00:00
{{define "base"}}
<!doctype html>
2023-07-22 18:34:17 +00:00
<html lang='en' data-theme="light">
2023-07-06 20:16:52 +00:00
<head>
<meta charset='utf-8'>
2023-07-16 19:48:39 +00:00
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{template "title" .Data}} - {{ .SiteConfig.Title }}</title>
<meta property="og:title" content="{{template "title" .Data}}" />
2024-02-24 20:21:48 +00:00
{{ template "head" .}}
2024-02-24 20:53:39 +00:00
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
2023-08-09 18:36:44 +00:00
<link rel="webmention" href="/webmention/" />
2023-09-04 18:23:02 +00:00
<link rel="alternate" type="application/rss+xml" title="RSS" href="/index.xml">
2024-01-24 21:04:15 +00:00
2024-05-11 14:33:29 +00:00
<link rel='stylesheet' href='/static/owl.css'>
2024-01-24 21:04:15 +00:00
<link rel='stylesheet' href='/static/style.css'>
{{ .SiteConfig.HtmlHeadExtra }}
2023-07-06 20:16:52 +00:00
</head>
<body>
2024-05-11 14:33:29 +00:00
<header class="h-card">
{{ if .SiteConfig.AvatarUrl }}
<img class="u-photo u-logo avatar" src="{{ .SiteConfig.AvatarUrl }}" alt="{{ .SiteConfig.Title }}" />
{{ end }}
2024-05-09 14:11:13 +00:00
2024-05-11 14:33:29 +00:00
<hgroup>
<h1><a class="p-name u-url" href="/">{{ .SiteConfig.Title }}</a></h1>
<p class="p-note">{{ .SiteConfig.SubTitle }}</p>
</hgroup>
<nav>
<ul>
{{ range $link := .SiteConfig.HeaderMenu }}
{{ if $link.List }}
<li><a href="/lists/{{ $link.List }}">{{ $link.Title }}</a></li>
{{ else if $link.Post }}
<li><a href="/posts/{{ $link.Post }}">{{ $link.Title }}</a></li>
{{ else }}
<li><a href="{{ $link.Url }}">{{ $link.Title }}</a></li>
2023-07-18 19:03:33 +00:00
{{ end }}
2024-05-11 14:33:29 +00:00
{{ end }}
</ul>
</nav>
2023-07-06 20:16:52 +00:00
</header>
<main>
2023-07-16 19:48:39 +00:00
{{template "main" .Data}}
2023-07-06 20:16:52 +00:00
</main>
<footer>
2023-07-18 19:03:33 +00:00
<nav>
<ul>
2023-09-04 18:23:02 +00:00
<li><a target="_blank" href="/index.xml">RSS Feed</a></li>
2023-07-18 19:03:33 +00:00
{{ range $link := .SiteConfig.FooterMenu }}
{{ if $link.List }}
<li><a href="/lists/{{ $link.List }}">{{ $link.Title }}</a></li>
{{ else if $link.Post }}
<li><a href="/posts/{{ $link.Post }}">{{ $link.Title }}</a></li>
{{ else }}
<li><a href="{{ $link.Url }}">{{ $link.Title }}</a></li>
{{ end }}
{{ end }}
2024-05-11 19:21:39 +00:00
{{ range $me := .SiteConfig.Me }}
<li><a href="{{$me.Url}}" rel="me">{{$me.Name}}</a>
</li>
{{ end }}
2024-05-11 14:33:29 +00:00
<li><a href="/admin/">Editor</a></li>
2023-07-18 19:03:33 +00:00
</ul>
</nav>
2024-05-11 14:33:29 +00:00
<div>
{{ .SiteConfig.FooterExtra}}
</div>
2023-07-13 19:20:00 +00:00
</footer>
2023-07-06 20:16:52 +00:00
</body>
</html>
{{end}}