2024-10-06 17:04:37 +03:00
|
|
|
package tpl
|
|
|
|
|
|
|
|
templ Layout(params HeaderParams) {
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8"/>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
|
|
<meta name="color-scheme" content="light dark"/>
|
|
|
|
<link rel="stylesheet" href="/css/pico.css"/>
|
|
|
|
<link rel="stylesheet" href="/css/style.css"/>
|
|
|
|
<link rel="stylesheet" href="/css/fork-awesome.min.css"/>
|
2024-10-08 03:43:08 +03:00
|
|
|
<link rel="alternate" type="application/rss+xml" title="RSS feed" href="/feed/rss">
|
|
|
|
<link rel="alternate" type="application/atom+xml" title="ATOM feed" href="/feed/atom">
|
|
|
|
<link rel="alternate" type="application/json" title="json feed" href="/feed/json">
|
2024-10-06 17:04:37 +03:00
|
|
|
<meta property="og:title" content={ params.Title }/>
|
|
|
|
<meta property="og:url" content={ params.URL }/>
|
|
|
|
<meta property="og:description" content={ params.Description }/>
|
2024-10-08 03:43:08 +03:00
|
|
|
<meta name="yandex-verification" content="ee0e23da00ce9fe4" />
|
2024-10-06 17:04:37 +03:00
|
|
|
<title>ШОргРу</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<main class="container">
|
2024-10-08 18:48:55 +03:00
|
|
|
<div class="header">
|
|
|
|
<a href="/"><strong>ШОргРу</strong></a>
|
|
|
|
<div class="top-menu" hx-boost="true" hx-indicator=".loader">
|
2024-10-08 03:43:08 +03:00
|
|
|
<span aria-busy="true" class="loader htmx-indicator">Загрузка...</span>
|
2024-10-08 18:48:55 +03:00
|
|
|
<a href="/">Главная</a>
|
|
|
|
<a href="/random">Рандом</a>
|
|
|
|
<a href="/top">Топ</a>
|
|
|
|
<a href="/add">Добавить</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-10-06 17:04:37 +03:00
|
|
|
{ children... }
|
|
|
|
</main>
|
|
|
|
</body>
|
|
|
|
<footer>
|
|
|
|
<main class="container">
|
|
|
|
<nav>
|
|
|
|
<ul>
|
|
|
|
<li>Сделал <a href="https://neonxp.ru/">NeonXP</a> в 2024 году.</li>
|
|
|
|
</ul>
|
|
|
|
<ul>
|
|
|
|
<a href="https://gitrepo.ru/NeonXP/ShOrgRu">Исходный код</a>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</main>
|
|
|
|
</footer>
|
2024-10-07 04:18:59 +03:00
|
|
|
<script src="/js/htmx.min.js"></script>
|
2024-10-06 17:04:37 +03:00
|
|
|
</html>
|
|
|
|
}
|
|
|
|
|
|
|
|
type HeaderParams struct {
|
|
|
|
Title string
|
|
|
|
URL string
|
|
|
|
Description string
|
|
|
|
}
|