From 2381076947aad2e5f1be36cd60f2dadcf08cbe0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Sun, 9 Nov 2025 10:15:49 +0100 Subject: [PATCH] feat: mount custom theme template to inject CSS and favicon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- asciinema/app.html.heex | 4 ++-- asciinema/compose.yaml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/asciinema/app.html.heex b/asciinema/app.html.heex index f3a06b3..48c49d6 100644 --- a/asciinema/app.html.heex +++ b/asciinema/app.html.heex @@ -14,8 +14,8 @@ <% end %> - - + + body_class(@conn)}> diff --git a/asciinema/compose.yaml b/asciinema/compose.yaml index 46ed47c..d7c08f1 100644 --- a/asciinema/compose.yaml +++ b/asciinema/compose.yaml @@ -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}