Mount app.html.heex template with custom theme links: - Custom CSS at /assets/custom.css via Routes.static_path() - Custom favicon at /images/favicon-custom.svg Phoenix will use the external template file instead of compiled version. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
37 lines
1.4 KiB
Plaintext
37 lines
1.4 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no" />
|
|
<meta name="csrf-token" content={Plug.CSRFProtection.get_csrf_token()} />
|
|
<title>{page_title(@conn)}</title>
|
|
<link phx-track-static rel="stylesheet" href={Routes.static_path(@conn, "/assets/app.css")} />
|
|
<link rel="shortcut icon" href={Routes.static_path(@conn, "/images/favicon.png")} />
|
|
|
|
<%= if function_exported?(view_module(@conn), :head, 2) do %>
|
|
{view_module(@conn).head(view_template(@conn), assigns)}
|
|
<% end %>
|
|
|
|
<!-- Custom Pivoine Rose Theme -->
|
|
<link rel="stylesheet" href={Routes.static_path(@conn, "/assets/custom.css")} />
|
|
<link rel="icon" type="image/svg+xml" href={Routes.static_path(@conn, "/images/favicon-custom.svg")} />
|
|
</head>
|
|
|
|
<body class={"l-app " <> body_class(@conn)}>
|
|
{render("_header.html", conn: @conn, current_user: @current_user)}
|
|
{render("_flash.html", flash: @flash)}
|
|
|
|
<main role="main">
|
|
{@inner_content}
|
|
</main>
|
|
|
|
{render("_footer.html", conn: @conn)}
|
|
<script>
|
|
window.__asciinema__workerUrl = '<%= Routes.static_path(@conn, "/js/player-worker.min.js") %>';
|
|
</script>
|
|
<script phx-track-static src={Routes.static_path(@conn, "/assets/app.js")}>
|
|
</script>
|
|
</body>
|
|
</html>
|