diff --git a/content/archive/_index.md b/content/archive/_index.md new file mode 100644 index 0000000..8406ec7 --- /dev/null +++ b/content/archive/_index.md @@ -0,0 +1,4 @@ ++++ +sort_by = "date" +template= "archive.html" ++++ \ No newline at end of file diff --git a/templates/archive.html b/templates/archive.html new file mode 100644 index 0000000..4126818 --- /dev/null +++ b/templates/archive.html @@ -0,0 +1,26 @@ +{% extends "section.html" %} +{% block content %} +
+
+

Archive

+
+ {% set section = get_section(path="posts/_index.md") %} + {% for year, posts in section.pages + | sort(attribute="date") + | reverse + | group_by(attribute="year") %} +
+

{{ year }}

+ +
+ {% endfor %} +
+ {% include "footer.html" %} +{% endblock content %} \ No newline at end of file diff --git a/templates/footer.html b/templates/footer.html index a0a5f37..d9868b0 100644 --- a/templates/footer.html +++ b/templates/footer.html @@ -5,7 +5,10 @@ Posts ⬡ Tags + ⬡ + Archive + ⬡ Contact