post tags and archive
This commit is contained in:
32
archive.html
Normal file
32
archive.html
Normal file
@@ -0,0 +1,32 @@
|
||||
---
|
||||
layout: default
|
||||
title: "Post Archive"
|
||||
permalink: /archive.html
|
||||
---
|
||||
<h1>All my posts organized by their tags</h1>
|
||||
|
||||
<div id="tags-list">
|
||||
{% for tag in site.tags %}
|
||||
{% assign tag_name = tag | first %}
|
||||
{% assign tag_name_pretty = tag_name | replace: "_", " " | capitalize %}
|
||||
<div class="tag-list">
|
||||
<div id="#{{ tag_name | slugize }}"></div>
|
||||
<h3 class="post-list-heading line-bottom"> In #{{ tag_name }}: </h3>
|
||||
<a name="{{ tag_name | slugize }}"></a>
|
||||
<ul class="post-list post-list-narrow">
|
||||
{% for post in site.tags[tag_name] %}
|
||||
<li>
|
||||
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
|
||||
<b>
|
||||
<a href="{{ post.url | relative_url }}">
|
||||
{{ post.title | escape }}
|
||||
</a>
|
||||
</b> - <i>{{ post.date | date: date_format }}</i>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<!-- Code partially taken from https://emmatheeng.github.io/projects/blog_setup/blog-tags.html -->
|
||||
Reference in New Issue
Block a user