Sha256: c39b48d01a07c7697faf4131eab4fada1354dd92de1b865048a409e9846a8421

Contents?: true

Size: 1.11 KB

Versions: 7

Compression:

Stored size: 1.11 KB

Contents

{%- capture site_branding -%}
  <a href="{{ '/'| absolute_url }}">
    {% if site.logo -%}
      <img class="site-logo" src="{{- site.logo -}}" alt="{{ site.title }}" role="presentation" />
      <span class="screen-reader-text">{{ site.title }}</span>
    {%- else -%}
      {{ site.title }}
    {%- endif %}
  </a>
{%- endcapture -%}

<header class="site-header">
  <div class="container">
    {% if page.title -%}
      <span class="site-title">
        {{ site_branding }}
      </span>
    {%- else -%}
      <h1 class="site-title">
        {{ site_branding }}
      </h1>
    {%- endif %}
    
    {% if site.main_menu -%}
      <nav class="main-menu" id="navigation">
        {% if site.main_menu.title -%}
          <h2 class="screen-reader-text">
            {{ site.main_menu.title }}
          </h2>
        {%- endif %}
        
        {% for item in site.main_menu.items -%}
          <a class="menu-item" {% if item.color -%} style="--item-color: {{ item.color }}" {%- endif %} href="{{ item.path }}">
            {{ item.label }}
          </a>
        {%- endfor %}
      </nav>
    {%- endif %}
  </div>
</header>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
jekyll-theme-bean-1.0.4 _includes/site/header.html
jekyll-theme-bean-1.0.3 _includes/site/header.html
jekyll-theme-bean-1.0.2.pre.2 _includes/site/header.html
jekyll-theme-bean-1.0.2.pre.1 _includes/site/header.html
jekyll-theme-bean-1.0.2 _includes/site/header.html
jekyll-theme-bean-1.0.1 _includes/site/header.html
jekyll-theme-bean-1.0.0 _includes/site/header.html