Skip to content

Commit

Permalink
replaced categories loop with posts loop in index
Browse files Browse the repository at this point in the history
  • Loading branch information
elotroalex committed Feb 1, 2016
1 parent 5c21a0c commit bb83534
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 10 deletions.
5 changes: 2 additions & 3 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,15 @@
<body>

<!-- This if statement decides which sidebar to use -->
{% if page.layout == 'narrative' %}
{% if page.layout == 'narrative' || 'drama' %}
{% include sidebar-toc.html %}
{% else %}
{% include sidebar.html %}
{% endif %}



<!-- Wrap is the content to shift when toggling the sidebar. We wrap the
content to avoid any CSS collisions with our real content. -->
<!-- Wrap is the content to shift when toggling the sidebar. We wrap the content to avoid any CSS collisions with our real content. -->
<div class="wrap">
<div class="masthead">
<div class="container">
Expand Down
2 changes: 1 addition & 1 deletion _posts/2016-01-16-a-julia.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: poem
title: A Julia de Burgos
categories: toc
category: toc
author: Julia de Burgos
source: Ciudad Seva
---
Expand Down
2 changes: 1 addition & 1 deletion _posts/2016-01-16-delayed.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: poem
title: Delayed till she had ceased to know
categories: toc
category: toc
author: Emily Dickinson
source: Bartleby.com
---
Expand Down
2 changes: 1 addition & 1 deletion _posts/2016-01-16-dreams.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: poem
title: Dreams
categories: toc
category: toc
author: Langston Hughes
source: Project Guttenberg
---
Expand Down
2 changes: 1 addition & 1 deletion _posts/2016-01-16-narrative.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
layout: narrative
title: "The Narrative of the Life of Frederick Douglass"
categories: toc
author: Frederick Douglass
rights: Public Domain
source: Project Guttenberg
sidebar: yes
---

<p class="citation"> by {{ page.author }}</p>
Expand Down
2 changes: 1 addition & 1 deletion _posts/2016-01-16-o-captain.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: poem
title: O Captain! My Captain!
categories: toc
category: toc
author: Walt Whitman
source: Poetry Foundation
---
Expand Down
2 changes: 1 addition & 1 deletion _posts/2016-01-16-raising.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: drama
title: A Raisin in the Sun
categories: toc
category: toc
author: Lorraine Hansberry
source: "Hansberry, Lorraine, and Robert Nemiroff. A Raisin in the Sun. Rep Rei edition. New York: Vintage, 2004. Print."

Expand Down
12 changes: 11 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ <h1>A Brief Introduction</h1>
<div class="toc">
<h2>Sample texts</h2>
<ul class="post">
{% for item in site.categories.toc do %}
{% for item in site.posts do %}

<li class="post-title">
<a href="{{ site.baseurl }}{{ item.url }}">
Expand All @@ -24,6 +24,16 @@ <h2>Sample texts</h2>
</li>
{% endfor %}
</ul>
<!-- <ul class="post">
{% for item in site.categories.toc do %}
<li class="post-title">
<a href="{{ site.baseurl }}{{ item.url }}">
{{ item.title }}
</a>
</li>
{% endfor %}
</ul> -->
</div>


Expand Down

0 comments on commit bb83534

Please sign in to comment.