Skip to content

Commit

Permalink
add menu-bar example
Browse files Browse the repository at this point in the history
  • Loading branch information
nadarbreicq committed Nov 4, 2024
1 parent 67c0cbe commit 1c19785
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 1 deletion.
63 changes: 63 additions & 0 deletions _layouts/default.html
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>
3 changes: 2 additions & 1 deletion informations.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ doc_header: false
component_toc: true
hero_image: /assets/img/placeholder.png
hero_darken: true
title: Information sur le Site
title: Information sur le site
subtitle: Tout ce que vous devez savoir
menubar: menu_bar
---

## Bienvenue sur la Page d'Information
Expand Down

0 comments on commit 1c19785

Please sign in to comment.