owl-blogs/embed/initial/base.html

79 lines
2.3 KiB
HTML
Raw Normal View History

2022-07-23 07:11:25 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
2022-10-07 17:51:13 +00:00
<title>{{ .Title }} - {{ .User.Config.Title }}</title>
2022-07-24 14:19:21 +00:00
<link rel="stylesheet" href="/static/pico.min.css">
2022-08-31 18:20:16 +00:00
<link rel="webmention" href="{{ .User.WebmentionUrl }}">
2022-07-27 19:53:56 +00:00
<style>
header {
2022-10-07 17:51:13 +00:00
background-color: {{.User.Config.HeaderColor}};
2022-07-27 19:53:56 +00:00
}
2022-08-21 10:36:10 +00:00
footer {
border-top: dashed 2px;
border-color: #ccc;
}
2022-09-10 13:22:18 +00:00
.avatar {
float: left;
margin-right: 1rem;
}
.header {
display: flex;
flex-flow: row wrap;
justify-content: space-between;
align-items: flex-start;
}
.header-title {
order: 0;
}
.header-profile {
order: 1;
}
2022-08-21 10:36:10 +00:00
hgroup h2 a { color: inherit; }
2022-07-27 19:53:56 +00:00
</style>
2022-07-23 07:11:25 +00:00
</head>
<body>
2022-07-27 19:53:56 +00:00
<header>
2022-09-10 13:22:18 +00:00
<div class="container header h-card">
<hgroup class="header-title">
2022-10-07 17:51:13 +00:00
<h2><a class="p-name u-url" href="{{ .User.UrlPath }}">{{ .User.Config.Title }}</a></h2>
<h3 class="p-note">{{ .User.Config.SubTitle }}</h3>
2022-09-10 13:22:18 +00:00
</hgroup>
<div class="header-profile">
{{ if .User.AvatarUrl }}
2022-10-10 19:26:24 +00:00
<img class="u-photo u-logo avatar" src="{{ .User.AvatarUrl }}" alt="{{ .User.Config.Title }}" width="100" height="100" />
2022-09-10 13:22:18 +00:00
{{ end }}
<div style="float: right; list-style: none;">
2022-10-07 17:51:13 +00:00
{{ if .User.Config.TwitterHandle}}
<li><a href="https://twitter.com/{{.User.Config.TwitterHandle}}" rel="me">@{{.User.Config.TwitterHandle}} on Twitter</a>
2022-09-10 13:22:18 +00:00
</li>
{{ end }}
2022-10-07 17:51:13 +00:00
{{ if .User.Config.GitHubHandle}}
<li><a href="https://github.com/{{.User.Config.GitHubHandle}}" rel="me">@{{.User.Config.GitHubHandle}} on GitHub</a>
2022-09-10 13:22:18 +00:00
</li>
{{ end }}
</div>
</div>
</div>
2022-07-27 19:53:56 +00:00
</header>
2022-07-27 19:26:37 +00:00
<main class="container">
{{ .Content }}
</main>
<footer class="container">
</footer>
2022-07-23 07:11:25 +00:00
</body>
</html>