Sha256: 7687f5d7cb5254c4ddab9924aa7047491a00901fc7fe96434e444f9e237fc40e

Contents?: true

Size: 1.69 KB

Versions: 28

Compression:

Stored size: 1.69 KB

Contents

{% case site.category_archive.type %}
  {% when "liquid" %}
    {% assign path_type = "#" %}
  {% when "jekyll-archives" %}
    {% assign path_type = nil %}
{% endcase %}

{% if page.collection != 'posts' %}
  {% assign path_type = nil %}
  {% assign crumb_path = '/' %}
{% else %}
  {% assign crumb_path = site.category_archive.path %}
{% endif %}

<nav class="breadcrumbs">
  <ol itemscope itemtype="https://schema.org/BreadcrumbList">
    {% assign crumbs = page.url | split: '/' %}
    {% assign i = 1 %}
    {% for crumb in crumbs offset: 1 %}
      {% if forloop.first %}
        <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
          <a href="{{ site.url }}{{ site.baseurl }}/" itemprop="item"><span itemprop="name">{{ site.data.ui-text[site.locale].breadcrumb_home_label | default: "Home" }}</span></a>
          <meta itemprop="position" content="{{ i }}" />
        </li>
        <span class="sep">{{ site.data.ui-text[site.locale].breadcrumb_separator | default: "/" }}</span>
      {% endif %}
      {% if forloop.last %}
        <li class="current">{{ page.title }}</li>
      {% else %}
        {% assign i = i | plus: 1 %}
        <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
          <a href="{{ crumb | downcase | replace: '%20', '-' | prepend: path_type | prepend: crumb_path | relative_url }}" itemprop="item"><span itemprop="name">{{ crumb | replace: '-', ' ' | replace: '%20', ' ' | capitalize }}</span></a>
          <meta itemprop="position" content="{{ i }}" />
        </li>
        <span class="sep">{{ site.data.ui-text[site.locale].breadcrumb_separator | default: "/" }}</span>
      {% endif %}
    {% endfor %}
  </ol>
</nav>

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
minimal-mistakes-jekyll-4.24.0 _includes/breadcrumbs.html
minimal-mistakes-jekyll-4.23.0 _includes/breadcrumbs.html
minimal-mistakes-jekyll-4.22.0 _includes/breadcrumbs.html
minimal-mistakes-jekyll-4.21.0 _includes/breadcrumbs.html
minimal-mistakes-jekyll-4.20.2 _includes/breadcrumbs.html
minimal-mistakes-jekyll-4.20.1 _includes/breadcrumbs.html
minimal-mistakes-jekyll-4.20.0 _includes/breadcrumbs.html
minimal-mistakes-jekyll-4.19.3 _includes/breadcrumbs.html
minimal-mistakes-jekyll-4.19.2 _includes/breadcrumbs.html
minimal-mistakes-jekyll-4.19.1 _includes/breadcrumbs.html
minimal-mistakes-jekyll-4.19.0 _includes/breadcrumbs.html
minimal-mistakes-jekyll-4.18.1 _includes/breadcrumbs.html
minimal-mistakes-jekyll-4.18.0 _includes/breadcrumbs.html
minimal-mistakes-jekyll-4.17.2 _includes/breadcrumbs.html
minimal-mistakes-jekyll-4.17.1 _includes/breadcrumbs.html
minimal-mistakes-jekyll-4.17.0 _includes/breadcrumbs.html
minimal-mistakes-jekyll-4.16.6 _includes/breadcrumbs.html
minimal-mistakes-jekyll-4.16.5 _includes/breadcrumbs.html
minimal-mistakes-jekyll-4.16.4 _includes/breadcrumbs.html
minimal-mistakes-jekyll-4.16.3 _includes/breadcrumbs.html