Skip to content

Commit

Permalink
fix category links with more than 1 word
Browse files Browse the repository at this point in the history
  • Loading branch information
wowthemesnet committed Mar 1, 2019
1 parent 2642baa commit 94238af
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _layouts/categories.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<div class="row listrecent">
{% for category in site.categories %}
<div class="section-title col-md-12 mt-4">
<h2 id="{{ category[0] | downcase }}">Category <span class="text-capitalize">{{ category[0] }}</span></h2>
<h2 id="{{ category[0] | replace: " ","-" }}">Category <span class="text-capitalize">{{ category[0] }}</span></h2>
</div>
{% assign pages_list = category[1] %}
{% for post in pages_list %}
Expand Down
2 changes: 1 addition & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h1 class="posttitle">{{ page.title }}</h1>
{% assign sortedCategories = page.categories | sort %}
{% for category in sortedCategories %}
<li>
<a class="smoothscroll" href="{{site.baseurl}}/categories.html#{{ category | downcase }}">{{ category }}</a>
<a class="smoothscroll" href="{{site.baseurl}}/categories.html#{{ category | replace: " ","-" }}">{{ category }}</a>
</li>
{% endfor %}
</ul>
Expand Down
2 changes: 1 addition & 1 deletion _posts/2018-01-12-is-intelligence-enough.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: post
title: "External Featured Image"
author: sal
categories: [ Jekyll, tutorial ]
categories: [ Jekyll, tutorial, web development ]
image: "https://images.unsplash.com/photo-1541544537156-7627a7a4aa1c?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=a20c472bc23308e390c8ffae3dd90c60&auto=format&fit=crop&w=750&q=80"
---
Education must also train one for quick, resolute and effective thinking. To think incisively and to think for one's self is very difficult.
Expand Down

0 comments on commit 94238af

Please sign in to comment.