-
-
Notifications
You must be signed in to change notification settings - Fork 472
/
default.html
58 lines (56 loc) · 2.04 KB
/
default.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE html>
{% if page.menubar or page.menubar_toc %}
{% assign has_left_sidebar = true %}
{% endif %}
{% if page.show_sidebar and has_left_sidebar %}
{% assign content_width = 'is-4' %}
{% elsif page.show_sidebar or has_left_sidebar %}
{% assign content_width = 'is-8' %}
{% else %}
{% assign content_width = 'is-12' %}
{% endif %}
<html
lang="{{ site.lang | default: 'en' }}"
{% if site.fixed_navbar %}class="has-navbar-fixed-{{ site.fixed_navbar }}"{% endif %}>
{% include head.html %}
<body>
{% include header.html %}
{% unless page.hide_hero %}
{% include hero.html %}
{% endunless %}
{% include callouts.html %}
<section class="section">
<div class="container">
<div class="columns">
{% if page.menubar_toc %}
<div class="column is-4-desktop is-4-tablet">
{% assign contentsTitle = page.toc_title | default: 'Contents' %}
{% include toc.html html=content class='menu-list' h_min=2 h_max=3 contents_title=contentsTitle %}
</div>
{% elsif page.menubar %}
<div class="column is-4-desktop is-4-tablet">
{% include menubar.html %}
</div>
{% endif %}
<div class="column {{ content_width }}">
{% include tabs.html %}
{% include showcase.html %}
{% include sponsors.html %}
{% include gallery.html %}
{{ content }}
</div>
{% if site.posts and page.show_sidebar %}
<div class="column is-4-desktop is-12-tablet">
{% include latest-posts.html %}
</div>
{% endif %}
</div>
</div>
</section>
{% unless page.hide_footer %}
{% include footer.html %}
{% endunless %}
<script src="{{ site.baseurl }}/assets/js/app.js" type="text/javascript"></script>
{%- include footer-scripts.html -%}
</body>
</html>