Skip to content
This repository has been archived by the owner on Aug 19, 2020. It is now read-only.

Commit

Permalink
smithtimmytim/ch37/recent posts not displaying for other authors (#163)
Browse files Browse the repository at this point in the history
* Fix how author posts are retrieved

* Add humans.txt
  • Loading branch information
Tim Smith authored Dec 17, 2016
1 parent 8370471 commit 3a050a8
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
8 changes: 3 additions & 5 deletions _layouts/author-archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@
<h2 class="subheader">Recent Posts</h2>

<div class="archive-list">
{% for p in site.posts limit: 10 %}
{% if p.author == page.author %}
<h3><a href="{{ site.url }}{{ p.url }}">{{ p.title }}</a><small class="pubdate"><time datetime="{{ p.date | date_to_xmlschema }}">{{ p.date | date: "%a, %b %d, %Y" }}</time></small></h3>
{% endif %}
{% assign posts = site.posts | where: 'author', page.author %}
{% for p in posts limit: 10 %}
<h3><a href="{{ site.url }}{{ p.url }}">{{ p.title }}</a><small class="pubdate"><time datetime="{{ p.date | date_to_xmlschema }}">{{ p.date | date: "%a, %b %d, %Y" }}</time></small></h3>
{% endfor %}
</div>

23 changes: 23 additions & 0 deletions humans.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
---
The Bold Report
is made by some truly awesome humans.

/* Site */
Designed and Developed by: Timothy B. Smith
Launched: September 23, 2013
Hosted with: Heroku

/* Tools */
MacBook Pro 2016
Atom
Hyper
Editorial
Jekyll

/* The Writing Team */
{% for author in site.data.authors %}
{{ author[1].display_name }} - {{ author[1].email }}
{% endfor %}

Last Updated: {{ site.time | date:"%Y-%m-%d" }}

0 comments on commit 3a050a8

Please sign in to comment.