2018-03-12 20:31:14 +01:00
|
|
|
|
|
|
|
<%
|
|
|
|
let contType = '';
|
2018-07-05 03:18:42 +02:00
|
|
|
let ball = false;
|
2018-03-12 20:31:14 +01:00
|
|
|
if (is_root()) {
|
|
|
|
contType = 'main__container';
|
|
|
|
}
|
2018-07-05 03:18:42 +02:00
|
|
|
if (page.layout == 'crystalball') {
|
|
|
|
ball = true;
|
|
|
|
}
|
2018-03-12 20:31:14 +01:00
|
|
|
%>
|
|
|
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
|
|
|
|
<%- partial('_partial/head') %>
|
|
|
|
<body>
|
|
|
|
<main class="container-wrapper">
|
|
|
|
<!--[if lt IE 9]>
|
|
|
|
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade</a>.</p>
|
|
|
|
<![endif]-->
|
|
|
|
<noscript><small class="no-js">You disabled Javascript. Please, enable it for better experience.</small></noscript>
|
|
|
|
<%- partial('_partial/navbar', null, {cache: !config.relative_link}) %>
|
2018-03-12 23:34:24 +01:00
|
|
|
<%- partial('_partial/sidebar') %>
|
2018-03-12 20:31:14 +01:00
|
|
|
<div class="container <%= contType %>"><%- body %></div>
|
2018-07-05 03:18:42 +02:00
|
|
|
<h1><%=page.title%></h1>
|
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-07-07 22:51:02 +02:00
|
|
|
<!-- temporary gitlab pages redirect hack -->
|
|
|
|
<script>
|
|
|
|
const url = window.location.href;
|
|
|
|
if(url.match(/gitlab.io/)){
|
|
|
|
window.location = "https://fediverse.party";
|
|
|
|
}
|
|
|
|
</script>
|
2018-03-12 21:04:15 +01:00
|
|
|
<script src="/js/main.min.js"></script>
|
|
|
|
<% if (is_root()) { %> <script src="/js/index.min.js"></script> <% } %>
|
2018-07-05 03:18:42 +02:00
|
|
|
<% if (ball) { %> <script src="/js/ball.min.js"></script> <% } %>
|
2018-03-12 20:31:14 +01:00
|
|
|
</body>
|
|
|
|
</html>
|