Initial commit on Forgejo
Fresh repository history for elektrine/tarakan hosted at https://git.elektrine.com/elektrine/tarakan.
This commit is contained in:
commit
af6077b9c3
455 changed files with 78366 additions and 0 deletions
69
lib/tarakan_web/components/layouts/root.html.heex
Normal file
69
lib/tarakan_web/components/layouts/root.html.heex
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
||||
<meta name="csrf-token" content={get_csrf_token()} />
|
||||
<% meta_description =
|
||||
assigns[:meta_description] ||
|
||||
"Local agents. Public Reports. Commit-pinned security record."
|
||||
|
||||
page_title =
|
||||
case assigns[:page_title] do
|
||||
title when is_binary(title) and title != "" -> title <> " · Tarakan"
|
||||
_ -> "Tarakan · public security record"
|
||||
end
|
||||
|
||||
canonical =
|
||||
if assigns[:canonical_path],
|
||||
do: TarakanWeb.Endpoint.url() <> assigns[:canonical_path],
|
||||
else: nil
|
||||
|
||||
og_image = assigns[:og_image] || TarakanWeb.Endpoint.url() <> "/images/og-image.png" %>
|
||||
<meta name="description" content={meta_description} />
|
||||
<link :if={canonical} rel="canonical" href={canonical} />
|
||||
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#f4f4f4" />
|
||||
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#000000" />
|
||||
<%!-- Open Graph / Twitter: organic share + crawler previews for the public record. --%>
|
||||
<meta property="og:site_name" content="Tarakan" />
|
||||
<meta property="og:type" content={assigns[:og_type] || "website"} />
|
||||
<meta property="og:title" content={page_title} />
|
||||
<meta property="og:description" content={meta_description} />
|
||||
<meta :if={canonical} property="og:url" content={canonical} />
|
||||
<meta property="og:image" content={og_image} />
|
||||
<meta property="og:image:alt" content="Tarakan - public security record" />
|
||||
<meta property="og:image:width" content="1200" />
|
||||
<meta property="og:image:height" content="630" />
|
||||
<meta name="twitter:card" content="summary" />
|
||||
<meta name="twitter:title" content={page_title} />
|
||||
<meta name="twitter:description" content={meta_description} />
|
||||
<meta name="twitter:image" content={og_image} />
|
||||
<link
|
||||
rel="alternate"
|
||||
type="application/atom+xml"
|
||||
title="Tarakan findings"
|
||||
href={TarakanWeb.Endpoint.url() <> "/feeds/findings.xml"}
|
||||
/>
|
||||
<link
|
||||
rel="alternate"
|
||||
type="application/atom+xml"
|
||||
title="Tarakan infestations"
|
||||
href={TarakanWeb.Endpoint.url() <> "/feeds/infestations.xml"}
|
||||
/>
|
||||
<.live_title default="Tarakan" suffix=" · Tarakan" phx-no-format>{assigns[:page_title]}</.live_title>
|
||||
<%!-- Blocking, and deliberately not deferred: it restores a manually
|
||||
chosen theme before the first paint. app.js is a deferred module and
|
||||
therefore always too late. --%>
|
||||
<script phx-track-static src={~p"/assets/js/theme.js"}>
|
||||
</script>
|
||||
<link phx-track-static rel="stylesheet" href={~p"/assets/css/app.css"} />
|
||||
<script defer phx-track-static type="module" src={~p"/assets/js/app.js"}>
|
||||
</script>
|
||||
<script :if={assigns[:json_ld]} type="application/ld+json">
|
||||
{Jason.encode!(assigns[:json_ld])}
|
||||
</script>
|
||||
</head>
|
||||
<body class="min-h-screen bg-ground selection:bg-signal/25 selection:text-ink">
|
||||
{@inner_content}
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue