feat: mount custom theme template to inject CSS and favicon
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>
This commit is contained in:
@@ -14,8 +14,8 @@
|
||||
<% end %>
|
||||
|
||||
<!-- Custom Pivoine Rose Theme -->
|
||||
<link rel="stylesheet" href="/theme/custom.css" />
|
||||
<link rel="icon" type="image/svg+xml" href="/theme/favicon.svg" />
|
||||
<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)}>
|
||||
|
||||
@@ -11,6 +11,7 @@ services:
|
||||
- ./theme/custom.css:/opt/app/lib/asciinema-1.0.0/priv/static/assets/custom.css:ro
|
||||
- ./theme/favicon.svg:/opt/app/lib/asciinema-1.0.0/priv/static/images/favicon-custom.svg:ro
|
||||
- ./theme/custom.js:/opt/app/lib/asciinema-1.0.0/priv/static/js/custom.js:ro
|
||||
- ./app.html.heex:/opt/app/lib/asciinema-1.0.0/lib/asciinema_web/templates/layout/app.html.heex:ro
|
||||
environment:
|
||||
SECRET_KEY_BASE: ${ASCIINEMA_SECRET_KEY}
|
||||
URL_HOST: ${ASCIINEMA_TRAEFIK_HOST}
|
||||
|
||||
Reference in New Issue
Block a user