diff options
| -rw-r--r-- | content/_index.md | 1 | ||||
| -rw-r--r-- | content/posts/_index.md | 8 | ||||
| -rw-r--r-- | templates/posts-page.html | 4 | ||||
| -rw-r--r-- | templates/posts-section.html | 9 |
4 files changed, 22 insertions, 0 deletions
diff --git a/content/_index.md b/content/_index.md index 053f290..a92549e 100644 --- a/content/_index.md +++ b/content/_index.md @@ -4,5 +4,6 @@ title = "Boutalas" # Links +- [Posts](posts/) - [Repositories](git/) - [File dump](files/) diff --git a/content/posts/_index.md b/content/posts/_index.md new file mode 100644 index 0000000..34b0f21 --- /dev/null +++ b/content/posts/_index.md @@ -0,0 +1,8 @@ ++++ +title="Posts" +sort_by = "date" +template = "posts-section.html" +page_template = "posts-page.html" ++++ + +Software (probably) related thoughts. Will try to keep them updated... diff --git a/templates/posts-page.html b/templates/posts-page.html new file mode 100644 index 0000000..a3b0b8a --- /dev/null +++ b/templates/posts-page.html @@ -0,0 +1,4 @@ +{% extends "base.html" %} {% block body %} +<h1>{{ page.title }}</h1> +<p>{{ page.date }}</p> +{{ page.content | safe }} {% endblock body %} diff --git a/templates/posts-section.html b/templates/posts-section.html new file mode 100644 index 0000000..77e8c3b --- /dev/null +++ b/templates/posts-section.html @@ -0,0 +1,9 @@ +{% extends "base.html" %} {% block body %} +<h1>{{ section.title }}</h1> +<p>{{ section.content | safe }}</p> +<ul> + {% for page in section.pages %} + <li><a href="{{ page.permalink | safe }}">{{ page.title }}</a> ({{ page.date }})</li> + {% endfor %} +</ul> +{% endblock body %} |
