mirror of
https://github.com/knadh/listmonk.git
synced 2024-11-10 09:02:36 +08:00
48 lines
1.6 KiB
HTML
48 lines
1.6 KiB
HTML
{{ 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?v={{ .AssetVersion }}" rel="stylesheet" type="text/css" />
|
|
<link href="/public/custom.css?v={{ .AssetVersion }}" rel="stylesheet" type="text/css">
|
|
<script src="/public/custom.js?v={{ .AssetVersion }}" 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?v={{ .AssetVersion }}" 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?v={{ .AssetVersion }}" alt="{{ .Data.Title }}" />
|
|
{{ end }}
|
|
</a>
|
|
</div>
|
|
</header>
|
|
{{ end }}
|
|
|
|
{{ define "footer" }}
|
|
</div>
|
|
|
|
<footer class="container">
|
|
{{ L.T "public.poweredBy" }} <a target="_blank" rel="noreferrer" href="https://listmonk.app">listmonk</a>
|
|
</footer>
|
|
</body>
|
|
</html>
|
|
{{ end }}
|