Skip to content

Commit

Permalink
fix: Move custom theme CSS at end of <head>
Browse files Browse the repository at this point in the history
Our custom theme CSS was not taken into account because cozy-ui CSS was inserted after.
  • Loading branch information
zatteo committed May 29, 2024
1 parent f02342a commit 9732c55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/photos/targets/browser/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<head>
<meta charset="utf-8" />
<title><%= htmlWebpackPlugin.options.title %></title>
{{.ThemeCSS}}
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16" />
Expand All @@ -19,6 +18,7 @@
{{.CozyClientJS}}
{{.CozyFonts}}
<% } %>
{{.ThemeCSS}}
</head>
<div
role="application"
Expand Down
2 changes: 1 addition & 1 deletion src/photos/targets/public/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="robots" content="noindex, nofollow, noimageindex">
<title>Public Cozy Photos</title>
{{.ThemeCSS}}
<% _.forEach(htmlWebpackPlugin.files.css, function(file) { %>
<link rel="stylesheet" href="<%- file %>">
<% }); %>
<% if (__STACK_ASSETS__) { %>
{{.CozyClientJS}}
{{.CozyFonts}}
<% } %>
{{.ThemeCSS}}
</head>
<body>
<div
Expand Down

0 comments on commit 9732c55

Please sign in to comment.