{{ define "header" }}
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />	
	<title>{{ .Data.Title }} - {{ .SiteName }}</title>
	<meta name="description" content="{{ .Data.Description }}" />
	<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1" />

	{{ if .EnablePublicArchive }}
		<link rel="alternate" type="application/rss+xml" title="{{ L.T "public.archiveTitle" }} - {{ .SiteName }}"
			href="{{ .RootURL }}/archive.xml" />
	{{ end }}

	<link href="/public/static/style.css?v2.3.0" rel="stylesheet" type="text/css" />
	<link href="/public/custom.css" rel="stylesheet" type="text/css">
	<script src="/public/custom.js" async defer></script>

	{{ if ne .FaviconURL "" }}
		<link rel="shortcut icon" href="{{ .FaviconURL }}" type="image/x-icon" />
	{{ else }}
		<link rel="shortcut icon" href="/public/static/favicon.png" type="image/x-icon" />
	{{ end }}
</head>
<body>
    <div class="container wrap">
		<header class="header">
			<div class="logo">
				<a href="{{ if .EnablePublicSubPage }}{{ .RootURL}}/subscription/form{{ end }}">
				{{ if ne .LogoURL "" }}
					<img src="{{ .LogoURL }}" alt="{{ .Data.Title }}" /></a>
				{{ else }}
					<img src="/public/static/logo.svg" alt="{{ .Data.Title }}" />
				{{ end }}
				</a>
			</div>
		</header>
{{ end }}

{{ define "footer" }}
	</div>
	
	<footer class="container">
		{{ L.T "public.poweredBy" }} <a target="_blank" href="https://listmonk.app">listmonk</a>
	</footer>
</body>
</html>
{{ end }}
