summaryrefslogtreecommitdiffhomepage
path: root/website/content/blog/archive.html
diff options
context:
space:
mode:
authorAdin Scannell <ascannell@google.com>2020-05-06 14:15:15 -0700
committerAdin Scannell <ascannell@google.com>2020-05-06 14:15:15 -0700
commite8bb5832b32d865e8dc257b01bebfd7dafeaaccf (patch)
treec5ea0518f0aa7ac1fcc999119030e931500d864c /website/content/blog/archive.html
parent279f1eb7abb28966ef633fa61418bffad4a716b0 (diff)
parent957e26a6f30d40e2bff042d76a327d0a2cfbabae (diff)
Merge gvisor-website
Diffstat (limited to 'website/content/blog/archive.html')
-rwxr-xr-xwebsite/content/blog/archive.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/website/content/blog/archive.html b/website/content/blog/archive.html
new file mode 100755
index 000000000..b9fdcd544
--- /dev/null
+++ b/website/content/blog/archive.html
@@ -0,0 +1,22 @@
+---
+title: Archive
+layout: default
+permalink: /blog/archive/
+---
+{% for post in site.posts %}
+ {% assign yearOfPost = post.date | date: "%Y" %}
+ {% if yearOfPost != currentYear %}
+ {% unless forloop.first %}</ul>{% endunless %}
+ <h1>{{ yearOfPost }}</h1>
+ <ul>
+ {% assign currentYear = yearOfPost %}
+ {% endif %}
+ <li>
+ <a href="{{ post.url }}">
+ <span>{{ post.date | date: "%b %-d" }}</span> - {{ post.title }}
+ </a>
+ </li>
+ {% if forloop.last %}
+ </ul>
+ {% endif %}
+{% endfor %}