summaryrefslogtreecommitdiff
path: root/lib/lsg_web
diff options
context:
space:
mode:
authorhref <href@random.sh>2021-09-02 08:06:50 +0200
committerhref <href@random.sh>2021-09-02 08:06:50 +0200
commit1fbd63419355e8ddd482c3cb62641bed1366763b (patch)
tree370ce63fcf19f2fd8b1f5136fc19a317050ba0f3 /lib/lsg_web
parenttxt: don't search in files with dot, display them below in web (diff)
Phoenix 1.6rc0 & Use proper Esbuild/Tailwind/Npm
Diffstat (limited to 'lib/lsg_web')
-rw-r--r--lib/lsg_web/endpoint.ex4
-rw-r--r--lib/lsg_web/templates/layout/app.html.eex6
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/lsg_web/endpoint.ex b/lib/lsg_web/endpoint.ex
index e89dc12..37f7e84 100644
--- a/lib/lsg_web/endpoint.ex
+++ b/lib/lsg_web/endpoint.ex
@@ -8,8 +8,8 @@ defmodule LSGWeb.Endpoint do
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug Plug.Static,
- at: "/assets", from: :lsg, gzip: false,
- only: ~w(css fonts images js favicon.ico robots.txt)
+ at: "/", from: :lsg, gzip: false,
+ only: ~w(assets css js fonts images favicon.ico robots.txt)
# Code reloading can be explicitly enabled under the
# :code_reloader configuration of your endpoint.
diff --git a/lib/lsg_web/templates/layout/app.html.eex b/lib/lsg_web/templates/layout/app.html.eex
index 9e78e8e..9ad05a6 100644
--- a/lib/lsg_web/templates/layout/app.html.eex
+++ b/lib/lsg_web/templates/layout/app.html.eex
@@ -8,7 +8,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noindex, noarchive, nofollow, nosnippet" />
<title><%= Map.get(assigns, :title, "") %></title>
- <link rel="stylesheet" href="<%= static_path(@conn, "/assets/css/tailwind-ui.min.css") %>">
+ <link rel="stylesheet" href="<%= static_path(@conn, "/assets/site.css") %>">
+ <script src="<%= static_path(@conn, "/assets/site.js") %>" defer></script>
</head>
<body>
@@ -132,13 +133,12 @@
<div class="max-w-7xl mx-auto pb-12 px-4 sm:px-6 lg:px-8">
<!-- Replace with your content -->
<div class="bg-white rounded-lg shadow px-5 py-6 sm:px-6">
- <%= render @view_module, @view_template, assigns %>
+ <%= @inner_content %>
</div>
<!-- /End replace -->
</div>
</main>
</div>
- <script src="<%= static_path(@conn, "/assets/js/app.js") %>"></script>
</body>
</html>