treehouse/template/components/_feed.hbs

20 lines
544 B
Handlebars

{{#if page.feed}}
<section class="feed">
<h1>{{ page.feed.title }}</h1>
{{#each page.feed.entries}}
<article>
<h2><a href="{{ url }}">{{{ title }}}</a></h2>
<div class="info">
<time datetime="{{ updated }}">{{ iso_date updated }}</time>
<ul class="categories">
{{#each tags as |tag|}}
<li><a href="{{ config.site }}/tag/{{ tag }}">#{{ tag }}</a></li>
{{/each}}
</ul>
</div>
</article>
{{/each}}
</section>
{{/if}}