Skip to content

Commit

Permalink
Reorganize categories
Browse files Browse the repository at this point in the history
  • Loading branch information
donald-pinckney committed Nov 29, 2018
1 parent 253290f commit 22046b9
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 4 deletions.
4 changes: 4 additions & 0 deletions _includes/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ <h1>
<a class="horizontal-item sidebar-nav-item{% if page.url == bu %} active{% endif %}" href="{{ site.baseurl }}/">Home</a>

<a class="horizontal-item sidebar-nav-item{% if page.url == blog_bu or page.layout == 'post' or page.layout == 'bookpost' %} active{% endif %}" href="{{ site.baseurl }}/blog/">Blog Posts</a>
<!-- <ul>
<li><a class="horizontal-item sidebar-nav-item{% if page.url == blog_bu or page.layout == 'post' or page.layout == 'bookpost' %} active{% endif %}" href="{{ site.baseurl }}/blog/">Feed</a></li>
<li><a class="horizontal-item sidebar-nav-item{% if page.url == blog_bu or page.layout == 'post' or page.layout == 'bookpost' %} active{% endif %}" href="{{ site.baseurl }}/blog/">Categories</a></li>
</ul> -->

{% comment %}
The code below dynamically generates a sidebar nav of pages with
Expand Down
4 changes: 4 additions & 0 deletions _layouts/blogfeed_layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
layout: default
---

<div style="float: right; padding-top: 0.5em">
<b><a href="{{site.baseurl}}/blog/categories/">See Post Categories</a></b>
</div>

<div class="posts">
{% for post in paginator.posts %}
<div class="post">
Expand Down
2 changes: 1 addition & 1 deletion _layouts/bookpost.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h1 class="post-title titular">{{ page.title }}</h1>
{% else %}
<a href="{{site.repo}}/blob/src/{{page.path}}" target="_blank">
{% endif %}
<i class="fa fa-pencil"></i>Edit this page</a>
<i class="fa fa-github"></i>Edit this page</a>

</div>
{% endif %}
Expand Down
2 changes: 0 additions & 2 deletions categories.html → _layouts/categories_layout.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
---
layout: page
permalink: /categories/
title: Categories
---


Expand Down
2 changes: 1 addition & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h1 class="post-title titular">{{ page.title }}</h1>
{% else %}
<a href="{{site.repo}}/blob/src/{{page.path}}" target="_blank">
{% endif %}
<i class="fa fa-pencil"></i>Edit this page</a>
<i class="fa fa-github"></i>Edit this page</a>

</div>
{% endif %}
Expand Down
5 changes: 5 additions & 0 deletions blog/categories.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
layout: categories_layout
title: Categories
permalink: /blog/categories/
---

0 comments on commit 22046b9

Please sign in to comment.