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') %>
2018-10-16 05:28:42 +00:00
</head>
<body class="is-<%= column_count() %>-column">
<%- _partial('common/navbar') %>
<% 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">
<div class="column <%= main_column_class() %> has-order-2 column-main"><%- body %></div>
<%- _partial('common/widget', { position: 'left' }) %>
<%- _partial('common/widget', { position: 'right' }) %>
2018-10-16 05:28:42 +00:00
</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') %>
2018-10-16 05:28:42 +00:00
<% if (has_config('search.type')) { %>
<%- _partial('search/' + get_config('search.type')) %>
2018-10-16 05:28:42 +00:00
<% } %>
2015-03-19 14:25:53 +00:00
</body>
</html>