2018-03-12 19:31:14 +00:00
|
|
|
|
|
|
|
<%
|
|
|
|
let contType = '';
|
2018-11-18 17:26:14 +00:00
|
|
|
let indexBody = '';
|
2018-07-05 01:18:42 +00:00
|
|
|
let ball = false;
|
2018-11-15 22:06:54 +00:00
|
|
|
let misc;
|
2018-03-12 19:31:14 +00:00
|
|
|
if (is_root()) {
|
|
|
|
contType = 'main__container';
|
2018-11-18 17:26:14 +00:00
|
|
|
indexBody = 'main';
|
2018-03-12 19:31:14 +00:00
|
|
|
}
|
2018-07-05 01:18:42 +00:00
|
|
|
if (page.layout == 'crystalball') {
|
|
|
|
ball = true;
|
|
|
|
}
|
2018-11-15 22:06:54 +00:00
|
|
|
if (page.layout == 'miscellaneous') {
|
|
|
|
misc = "miscellaneous";
|
|
|
|
}
|
2018-03-12 19:31:14 +00:00
|
|
|
%>
|
|
|
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
|
|
|
|
<%- partial('_partial/head') %>
|
2018-11-18 17:26:14 +00:00
|
|
|
<body class="<%= indexBody %>">
|
2018-03-12 19:31:14 +00:00
|
|
|
<main class="container-wrapper">
|
2018-11-03 17:47:04 +00:00
|
|
|
<!--[if lt IE 11]>
|
|
|
|
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please, upgrade</a>.</p>
|
2018-03-12 19:31:14 +00:00
|
|
|
<![endif]-->
|
|
|
|
<%- partial('_partial/navbar', null, {cache: !config.relative_link}) %>
|
2018-03-12 22:34:24 +00:00
|
|
|
<%- partial('_partial/sidebar') %>
|
2018-11-15 22:06:54 +00:00
|
|
|
<div class="container <%= contType %> <%= misc %>">
|
2018-11-03 17:47:04 +00:00
|
|
|
<noscript><small class="no-js">You disabled Javascript. Some things won't work.</small></noscript>
|
|
|
|
<%- body %>
|
|
|
|
</div>
|
2018-03-12 19:31:14 +00:00
|
|
|
</main>
|
2018-07-09 03:23:08 +00:00
|
|
|
<!-- temporary https redirect hack -->
|
|
|
|
<script>
|
|
|
|
const host = "fediverse.party";
|
|
|
|
if ((host == window.location.host || "www." + host == window.location.host ) && (window.location.protocol != "https:")) {
|
|
|
|
window.location.protocol = "https";
|
|
|
|
}
|
|
|
|
</script>
|
2018-08-28 12:31:47 +00:00
|
|
|
|
2018-03-12 20:04:15 +00:00
|
|
|
<script src="/js/main.min.js"></script>
|
|
|
|
<% if (is_root()) { %> <script src="/js/index.min.js"></script> <% } %>
|
2018-07-05 01:18:42 +00:00
|
|
|
<% if (ball) { %> <script src="/js/ball.min.js"></script> <% } %>
|
2018-03-12 19:31:14 +00:00
|
|
|
</body>
|
|
|
|
</html>
|