refactor: use .hbs extension

This commit is contained in:
Axel Cocat 2022-03-05 15:45:16 +01:00
parent ab5dcd3640
commit 28432b6523
11 changed files with 9 additions and 9 deletions

29
static/layout.hbs Normal file
View file

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{{title}}</title>
<link rel="stylesheet" type="text/css" href="/css/bulma.min.css">
<link rel="stylesheet" type="text/css" href="/css/armory.css">
</head>
<body>
{{#if iframeMode.enabled}}
<script type="application/javascript">
if (window === window.parent) {
// If not embedded, redirect to the main website with the iframe in it
window.location.href = `{{iframeMode.url}}/?${window.location.pathname.trim().replace(/^\//, "")}`;
}
</script>
<script type="application/javascript" src="/js/sync-url.js"></script>
<script type="application/javascript" src="https://cdn.jsdelivr.net/npm/iframe-resizer@4.3.2/js/iframeResizer.contentWindow.min.js"></script>
{{/if}}
<script type="application/javascript" src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<section class="section">
{{{ body }}}
</section>
</body>