forked from Makerspace-Amiens/craft-the-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
67c0cbe
commit 1c19785
Showing
2 changed files
with
65 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<!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-10' %} | ||
{% else %} | ||
{% assign content_width = 'is-12' %} | ||
{% endif %} | ||
|
||
<html | ||
dir="{{ site.direction | default: 'ltr' }}" | ||
lang="{{ site.lang | default: 'en' }}" | ||
class="{% if site.fixed_navbar %} has-navbar-fixed-{{ site.fixed_navbar }} {% endif %} {% if site.force_theme %} theme-{{ site.force_theme }} {% endif %}" | ||
> | ||
{% include head.html %} | ||
<body> | ||
{% if site.cookie_policy %} | ||
{% include cookie-banner.html %} | ||
{% endif %} | ||
{% include header.html %} | ||
{% unless page.hide_hero %} | ||
{% include hero.html %} | ||
{% endunless %} | ||
{% include callouts.html %} | ||
<section class="section"> | ||
<div class="container"> | ||
<div class="columns is-multiline"> | ||
{% if page.menubar_toc %} | ||
<div class="column is-2-desktop is-2-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-2-desktop is-2-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-2-desktop is-2-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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters