Sha256: 8b3e5ccbe1c2779f65f01e0720d2a8395de0bbd2bffb4f48e85edcbfdb6616fd
Contents?: true
Size: 798 Bytes
Versions: 3
Compression:
Stored size: 798 Bytes
Contents
{% capture api %} Swap `<header>` and `<navbar>` order by setting liquid `navbar: "top"` or `"bottom"` for pages or collections, in front matter or config defaults. - **Usage** `navbar: "bottom"` or `nil` 1. `<header>` 1. `<navbar>` `navbar: "top"` 1. `<navbar>` 1. `<header>` - **Called by** `_layouts/default.html` - **Call** `_includes/page/navbar.html`, `_includes/page/header.html` {% endcapture %} {%- include api/save.html -%} {%- if page.navbar == 'top' or collection.navbar == 'top' -%} {% include page/navbar.html nav=site.data.navbar %} {%- endif -%} {% include page/header.html %} {%- assign navbar_bottom = page.navbar | default: collection.navbar | default: 'bottom' -%} {%- if navbar_bottom == 'bottom' -%} {% include page/navbar.html nav=site.data.navbar %} {%- endif -%}
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jekyll-any-theme-0.1.2 | _includes/page/top.html |
jekyll-any-theme-0.1.1 | _includes/page/top.html |
jekyll-any-theme-0.1.0 | _includes/page/top.html |