owl-blogs/embed/initial/base.html

79 lines
2.2 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-09-06 19:48:38 +00:00
<title>{{ .Title }} - {{ .UserConfig.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 {
background-color: {{.UserConfig.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">
<h2><a class="p-name u-url" href="{{ .User.UrlPath }}">{{ .UserConfig.Title }}</a></h2>
<h3>{{ .UserConfig.SubTitle }}</h3>
</hgroup>
<div class="header-profile">
{{ if .User.AvatarUrl }}
<img class="u-logo avatar" src="{{ .User.AvatarUrl }}" alt="{{ .UserConfig.Title }}" width="100" height="100" />
{{ end }}
<div style="float: right; list-style: none;">
{{ if .UserConfig.TwitterHandle}}
<li><a href="https://twitter.com/{{.UserConfig.TwitterHandle}}" rel="me">@{{.UserConfig.TwitterHandle}} on Twitter</a>
</li>
{{ end }}
{{ if .UserConfig.GitHubHandle}}
<li><a href="https://github.com/{{.UserConfig.GitHubHandle}}" rel="me">@{{.UserConfig.GitHubHandle}} on GitHub</a>
</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>