.github
_data
_includes
analytics-providers
comments-providers
footer
head
analytics.html
archive-single.html
author-profile-custom-links.html
author-profile.html
base_path
breadcrumbs.html
browser-upgrade.html
category-list.html
comment.html
comments.html
feature_row
figure
footer.html
gallery
group-by-array
head.html
masthead.html
nav_list
page__hero.html
page__hero_video.html
page__taxonomy.html
paginator.html
post_pagination.html
read-time.html
scripts.html
seo.html
sidebar.html
social-share.html
tag-list.html
toc
toc.html
video
_layouts
_sass
assets
docs
test
.editorconfig
.gitattributes
.gitignore
CHANGELOG.md
Gemfile
LICENSE.txt
README.md
Rakefile
_config.yml
banner.js
index.html
minimal-mistakes-jekyll.gemspec
package.json
screenshot-layouts.png
screenshot.png
staticman.yml
40 lines
1.7 KiB
HTML
40 lines
1.7 KiB
HTML
{% 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="http://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="http://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="http://schema.org/ListItem">
|
|
<a href="{{ crumb | downcase | replace: '%20', '-' | prepend: path_type | prepend: crumb_path | absolute_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>
|