diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/index.html | 28 | ||||
-rw-r--r-- | templates/notes.html | 8 |
2 files changed, 11 insertions, 25 deletions
diff --git a/templates/index.html b/templates/index.html index a740ef7..f16c3f8 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,27 +1,5 @@ -{% extends "base.html" %} {% block body %} -<h1>Archive</h1> +{% extends "base.html" %} -{% set notes_section = get_section(path="notes/_index.md") %} -<h2>{{notes_section.title}}</h2> -{{ notes_section.content | safe}} -<ul> - {% for page in notes_section.pages %} - <li><a href="{{ page.permalink | safe }}">... {{ page.title }}</a> ({{ page.date}})</li> - {% endfor %} -</ul> - -{% set photos_section = get_section(path="photos/_index.md") %} -<h2>{{photos_section.title}}</h2> -{{ photos_section.content | safe}} -<a href="{{ photos_section.permalink | safe }}">Check it out</a> - -<h2>Links</h2> -<ul> - <li><a href="https://git.boutalas.com">Repositories</a></li> - <li><a href="https://dump.boutalas.com">File dump</a></li> -</ul> -<footer> - <hr /> - <p class="center"><small>Feedback or patch? <a href="mailto:nikolas@boutalas.com">Don't send me an email</a></small></p> -</footer> +{% block body %} +{{ section.content | safe }} {% endblock body %} diff --git a/templates/notes.html b/templates/notes.html new file mode 100644 index 0000000..f49e822 --- /dev/null +++ b/templates/notes.html @@ -0,0 +1,8 @@ +{% extends "base.html" %} {% block body %} +<h1>{{ section.title }}</h1> +<ul> + {% for page in section.pages %} + <li><a href="{{ page.permalink | safe }}">... {{ page.title }}</a> ({{ page.date }})</li> + {% endfor %} +</ul> +{% endblock body %} |