diff options
Diffstat (limited to 'templates/posts.html')
| -rw-r--r-- | templates/posts.html | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/templates/posts.html b/templates/posts.html deleted file mode 100644 index d4fc9e4..0000000 --- a/templates/posts.html +++ /dev/null @@ -1,30 +0,0 @@ -{# This Page Shows the Posts Grouped by Year: example.com/posts/ #} - -{% extends "base.html" %} - -{%- block seo %} - {{- super() }} - {%- set title = "Posts" %} - - {%- if config.title %} - {%- set title_addition = title_separator ~ config.title %} - {%- else %} - {%- set title_addition = "" %} - {%- endif %} - - {%- set description = config.description %} - - {{- macros_head::seo(config=config, title=title, title_addition=title_addition, description=description, is_home=true) }} -{%- endblock seo %} - -{%- block content %} -{%- set section_item = get_section(path="_index.md") %} - <div> - {%- for year, posts in section_item.pages | group_by(attribute="year") %} - <h2>{{ year }}</h2> - {%- for post in posts %} - <p><a href="{{ post.permalink | safe }}">{{ post.title }}</a> - <time datetime="{{ post.date }}">{{ post.date | date(format="%F") }}</time></p> - {%- endfor %} - {%- endfor %} - </div> -{%- endblock content %} |
