hn-classics/_layouts/book.html

28 lines
693 B
HTML

---
layout: default
---
<h1>Hacker News Classics: {{page.start}}-{{page.end}}</h1>
<h2>Table of Contents</h2>
<!-- Do a stable sort of stories -->
{% assign stories = site.stories | sort_by: 'year', 'objectID' %}
<ol>
{% for story in stories %}
{% if story.year >= page.start and story.year <= page.end and story.blacklist != true %}
<li>{{story.blacklist}}<a href="#{{story.objectID}}">{{ story.title }}</a></li>
{%endif%}
{% endfor %}
<ol>
{% for story in stories %}
{% if story.year >= page.start and story.year <= page.end and story.blacklist !=true %}
<h2 id="{{story.objectID}}">{{ story.title }}</h2>
<div>
{{story.content | markdownify}}
</div>
{%endif%}
{% endfor %}