hexo-theme-amane/layout/layout.ejs

35 lines
1.2 KiB
Plaintext
Raw Normal View History

2018-10-16 05:28:42 +00:00
<!DOCTYPE html>
<html <%- has_config('language') ? ' lang="' + get_config('language').substring(0, 2) + '"' : '' %>>
<head>
<%- partial('common/head') %>
</head>
<body class="is-<%= column_count() %>-column">
<%- partial('common/navbar', { page }) %>
<% function main_column_class() {
switch (column_count()) {
case 1:
return 'is-12';
case 2:
return 'is-8-tablet is-8-desktop is-8-widescreen';
case 3:
return 'is-8-tablet is-8-desktop is-6-widescreen'
}
return '';
} %>
2018-10-16 05:28:42 +00:00
<section class="section">
<div class="container">
<div class="columns main">
<div class="column <%= main_column_class() %> has-order-2"><%- body %></div>
2018-10-16 05:28:42 +00:00
<%- partial('common/widget', { position: 'left' }) %>
<%- partial('common/widget', { position: 'right' }) %>
</div>
2016-02-02 16:19:44 +00:00
</div>
2018-10-16 05:28:42 +00:00
</section>
<%- partial('common/footer') %>
<%- partial('common/scripts') %>
<% if (has_config('search.type')) { %>
<%- partial('search/' + get_config('search.type')) %>
<% } %>
2015-03-19 14:25:53 +00:00
</body>
</html>