2018-03-12 20:31:14 +01:00
|
|
|
|
|
|
|
<%
|
2019-03-20 18:43:55 +01:00
|
|
|
let contType = '',
|
|
|
|
indexBody = '',
|
|
|
|
ball = false,
|
|
|
|
misc,
|
2019-04-08 15:22:48 +02:00
|
|
|
post,
|
|
|
|
nt;
|
2018-03-12 20:31:14 +01:00
|
|
|
if (is_root()) {
|
|
|
|
contType = 'main__container';
|
2018-11-18 18:26:14 +01:00
|
|
|
indexBody = 'main';
|
2018-03-12 20:31:14 +01:00
|
|
|
}
|
2018-07-05 03:18:42 +02:00
|
|
|
if (page.layout == 'crystalball') {
|
|
|
|
ball = true;
|
|
|
|
}
|
2018-11-15 23:06:54 +01:00
|
|
|
if (page.layout == 'miscellaneous') {
|
|
|
|
misc = "miscellaneous";
|
|
|
|
}
|
2019-03-20 18:43:55 +01:00
|
|
|
if (page.layout == 'post') {
|
|
|
|
post = "post";
|
|
|
|
}
|
2019-04-08 15:22:48 +02:00
|
|
|
if (page.network) {
|
|
|
|
nt = "network";
|
|
|
|
}
|
2018-03-12 20:31:14 +01:00
|
|
|
%>
|
|
|
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
|
|
|
|
<%- partial('_partial/head') %>
|
2018-11-18 18:26:14 +01:00
|
|
|
<body class="<%= indexBody %>">
|
2018-03-12 20:31:14 +01:00
|
|
|
<main class="container-wrapper">
|
2018-11-03 18:47:04 +01:00
|
|
|
<!--[if lt IE 11]>
|
|
|
|
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please, upgrade</a>.</p>
|
2018-03-12 20:31:14 +01:00
|
|
|
<![endif]-->
|
|
|
|
<%- partial('_partial/navbar', null, {cache: !config.relative_link}) %>
|
2018-03-12 23:34:24 +01:00
|
|
|
<%- partial('_partial/sidebar') %>
|
2019-04-08 15:22:48 +02:00
|
|
|
<div class="container <%= contType %> <%= misc %> <%= post %> <%= nt %>">
|
2018-11-03 18:47:04 +01:00
|
|
|
<noscript><small class="no-js">You disabled Javascript. Some things won't work.</small></noscript>
|
|
|
|
<%- body %>
|
|
|
|
</div>
|
2018-03-12 20:31:14 +01:00
|
|
|
</main>
|
2018-07-09 05:23:08 +02: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 14:31:47 +02:00
|
|
|
|
2019-12-07 00:25:05 +01:00
|
|
|
<%- js('js/main.min.js') %>
|
|
|
|
<% if (is_root()) { %> <%- js('js/index.min.js') %> <% } %>
|
|
|
|
<% if (ball) { %> <%- js('js/ball.min.js') %> <% } %>
|
2018-03-12 20:31:14 +01:00
|
|
|
</body>
|
|
|
|
</html>
|