~xdavidwu/xdavidwu.link

b2611c3f2e033df4c217e952d0767a970ee86cd5 — Michael Rose 8 years ago 0cba582
Fix path bugs in breadcrumbs
4 files changed, 13 insertions(+), 10 deletions(-)

M _config.yml
M _includes/breadcrumbs.html
M _layouts/archive-taxonomy.html
M _pages/tag-archive.html
M _config.yml => _config.yml +1 -2
@@ 58,7 58,6 @@ social:
    - "https://facebook.com/michaelrose"

# Reading Files
safe: true
include:
  - .htaccess
  - _pages


@@ 228,7 227,7 @@ tags:
#     category: archive-taxonomy
#     tag: archive-taxonomy
#   permalinks:
#     category: /:name/
#     category: /categories/:name/
#     tag: /tags/:name/

# HTML Compression

M _includes/breadcrumbs.html => _includes/breadcrumbs.html +1 -1
@@ 29,7 29,7 @@
      {% else %}
        {% assign i = i | plus: 1 %}
        <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
          <a href="{{ base_path }}{{ crumb | slugify | prepend: path_type | prepend: crumb_path }}" itemprop="item"><span itemprop="name">{{ crumb | replace: '-', ' ' | replace: '%20', ' ' | capitalize }}</span></a>
          <a href="{{ base_path }}{{ crumb | downcase | replace: '%20', '-' | prepend: path_type | prepend: crumb_path }}" itemprop="item"><span itemprop="name">{{ crumb | replace: '-', ' ' | replace: '%20', ' ' | capitalize }}</span></a>
          <meta itemprop="position" content="{{ i }}" />
        </li>
        <span class="sep">{{ site.breadcrumb_separator }}</span>

M _layouts/archive-taxonomy.html => _layouts/archive-taxonomy.html +10 -6
@@ 3,10 3,14 @@ layout: default
author_profile: false
---

<div class="archive">
  <h1 class="page__title">{{ page.title }}</h1>
  {% include base_path %}
  {% for post in page.posts %}
    {% include archive-single.html %}
  {% endfor %}
<div id="main" role="main">
  {% include sidebar.html %}

  <div class="archive">
    <h1 class="page__title">{{ page.title }}</h1>
    {% include base_path %}
    {% for post in page.posts %}
      {% include archive-single.html %}
    {% endfor %}
  </div>
</div>
\ No newline at end of file

M _pages/tag-archive.html => _pages/tag-archive.html +1 -1
@@ 10,7 10,7 @@ author_profile: false

{% for tag in group_names %}
  {% assign posts = group_items[forloop.index0] %}
  <h2 id="{{ tag | slugify }}" class="archive__subtitle">{{ tag }}</h2>
  <h2 id="{{ tag | downcase }}" class="archive__subtitle">{{ tag }}</h2>
  {% for post in posts %}
    {% include archive-single.html %}
  {% endfor %}