summaryrefslogtreecommitdiff
path: root/views/header.ejs
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-11-14 17:53:31 +0100
committerTor Andersson <tor@ccxvii.net>2021-11-14 17:53:31 +0100
commitb9d5983b17adbd238fdb8a41d926dacf53730675 (patch)
tree994df12beb4a91d9255aea656050ddc9afda0688 /views/header.ejs
parentbf9b4ddafe5d11e510760f6af4479e29da6987ba (diff)
downloadserver-b9d5983b17adbd238fdb8a41d926dacf53730675.tar.gz
Inline style sheet in EJS template to prevent FOUC.
Diffstat (limited to 'views/header.ejs')
-rw-r--r--views/header.ejs6
1 files changed, 4 insertions, 2 deletions
diff --git a/views/header.ejs b/views/header.ejs
index 337290a..c8337fc 100644
--- a/views/header.ejs
+++ b/views/header.ejs
@@ -4,9 +4,11 @@
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1">
<% if (typeof refresh !== 'undefined' && refresh > 0) { %><meta http-equiv="refresh" content="<%= refresh %>"><% } %>
<link rel="icon" href="/favicon.svg">
-<link rel="stylesheet" href="/fonts/fonts.css">
-<link rel="stylesheet" href="/style.css">
<title><%= title %></title>
+<style>
+<%- include('../public/fonts/fonts.css') _%>
+<%- include('../public/style.css') _%>
+</style>
</head>
<body>
<div class="header">