philomena/lib/philomena_web/templates/layout/app.html.slime
Nighty 42cd107b2a
Vite (#240)
* begin vite stuff (does not work yet)

* finalize vite switch + cleanup package.json

* Assets path, re-add async, fix z

* Remove source-map-support

---------

Co-authored-by: Liam <byteslice@airmail.cc>
2024-04-29 20:39:52 -04:00

33 lines
1.4 KiB
Text

doctype html
html lang="en"
head
meta http-equiv="X-UA-Compatible" content="IE=edge"
= viewport_meta_tag(@conn)
title
= if assigns[:title] do
=> assigns[:title]
' - Derpibooru
- else
' Derpibooru
link rel="stylesheet" href=stylesheet_path(@conn, @current_user)
= if is_nil(@current_user) do
link rel="stylesheet" href=dark_stylesheet_path(@conn) media="(prefers-color-scheme: dark)"
link rel="icon" href="/favicon.ico" type="image/x-icon"
link rel="icon" href="/favicon.svg" type="image/svg+xml"
meta name="generator" content="philomena"
meta name="theme-color" content="#618fc3"
meta name="format-detection" content="telephone=no"
= csrf_meta_tag()
script type="module" src=Routes.static_path(@conn, "/js/app.js") async="async"
= render PhilomenaWeb.LayoutView, "_opengraph.html", assigns
body data-theme=theme_name(@current_user)
= render PhilomenaWeb.LayoutView, "_burger.html", assigns
#container class=container_class(@current_user)
= render PhilomenaWeb.LayoutView, "_header.html", assigns
= render PhilomenaWeb.LayoutView, "_flash_warnings.html", assigns
main#content class=layout_class(@conn)
= @inner_content
= render PhilomenaWeb.LayoutView, "_footer.html", assigns
form.hidden: input.js-interaction-cache type="hidden" value="{}"
= clientside_data(@conn)