Skip to content

Commit

Permalink
fix for issue #12
Browse files Browse the repository at this point in the history
  • Loading branch information
philipmjohnson committed Sep 26, 2023
1 parent a8a636c commit e36aaa3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
11 changes: 9 additions & 2 deletions _includes/essays/essays.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,15 @@ <h1 class="display-4 text-start">Essays</h1>
{% endfor %}
</div>

{% if essay_pages.size > include.limit %}
<p class="text-center pt-4"><a href="{{ site.baseurl}}/essays/">See all {{ essay_pages.size }} essays</a></p>
{% assign not_draft = 0 %}
{% for page in essay_pages %}
{% unless page.draft %}
{% assign not_draft = not_draft | plus: 1 %}
{% endunless %}
{% endfor %}

{% if not_draft > include.limit %}
<p class="text-center pt-4"><a href="{{ site.baseurl}}/essays/">See all {{ not_draft }} essays</a></p>
{% endif %}

</div>
Expand Down
11 changes: 9 additions & 2 deletions _includes/projects/projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,15 @@ <h1 class="display-4 text-start">Projects</h1>
{% endfor %}
</div>

{% if project_pages.size > include.limit %}
<p class="text-center pt-4"><a href="{{ site.baseurl}}/projects/">See all {{ project_pages.size }} projects</a></p>
{% assign not_draft = 0 %}
{% for page in project_pages %}
{% unless page.draft %}
{% assign not_draft = not_draft | plus: 1 %}
{% endunless %}
{% endfor %}

{% if not_draft > include.limit %}
<p class="text-center pt-4"><a href="{{ site.baseurl}}/projects/">See all {{ not_draft }} projects</a></p>
{% endif %}

</div>
Expand Down

0 comments on commit e36aaa3

Please sign in to comment.