hyde icon indicating copy to clipboard operation
hyde copied to clipboard

Add a all posts page

Open westlinkin opened this issue 10 years ago • 5 comments

It should has a all-posts page, which shows all the posts.

westlinkin avatar Jan 09 '15 02:01 westlinkin

As in an index or archive page like http://markdotto.com?

mdo avatar Jan 09 '15 02:01 mdo

Yes. Maybe some space between every month's posts.

westlinkin avatar Jan 09 '15 03:01 westlinkin

I actually put this together from a post where someone else had done it on a Jekyll site.

ghost avatar Apr 24 '15 18:04 ghost

Mdo, how can I implement an archive page like the one you posted on the sidebar?

Thanks!

Hipomenes avatar Jun 08 '15 14:06 Hipomenes

I added an archive to my Hyde-based blog: http://fredrikaverpil.github.io/archive/

The source code is available here, but essentially;

  1. Create archive.md in the root of your website:
---
layout: page
title: Archive
---

{% for post in site.posts %}{{ post.date | date_to_string }} » [ {{ post.title }} ]({{ post.url }})  
{% endfor %}

fredrikaverpil avatar Dec 01 '15 16:12 fredrikaverpil