Add page with all posts
This commit is contained in:
parent
7009e50ce9
commit
555128c88b
@ -1,2 +1,4 @@
|
|||||||
+++
|
+++
|
||||||
|
title = "All posts"
|
||||||
|
template = "posts.html"
|
||||||
+++
|
+++
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{% macro list_posts(section, count=0, taxonomy=false) %}
|
{% macro list_posts(section=false, count=0, taxonomy=false) %}
|
||||||
{% if taxonomy == false %}
|
{% if taxonomy == false and section != false %}
|
||||||
{% set section = get_section(path=section~"/_index.md") %}
|
{% set section = get_section(path=section~"/_index.md") %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% for page in section.pages %}
|
{% for page in section.pages %}
|
||||||
|
10
templates/posts.html
Normal file
10
templates/posts.html
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{% extends "index.html" %}
|
||||||
|
|
||||||
|
{% block title %}
|
||||||
|
{{ section.title }} — {{ config.title }}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
<h1>{{ section.title }}</h1>
|
||||||
|
{{ macros::list_posts() }}
|
||||||
|
{% endblock content %}
|
Loading…
Reference in New Issue
Block a user