www

my website
git clone https://tilde.team/~marisa/repo/www.git
Log | Files | Refs | README

commit 488b99025bb3f7511e46c5b95f63f20609c13cde
parent fead664ae5ef681d01f822662b0c040815cec3ac
Author: mokou <mokou@posteo.de>
Date:   Wed,  8 Jul 2020 13:19:00 +0200

Simplify layout

Diffstat:
Mtemplates/index.html | 48------------------------------------------------
1 file changed, 0 insertions(+), 48 deletions(-)

diff --git a/templates/index.html b/templates/index.html @@ -16,21 +16,6 @@ </head> <body> - {% block header %} - <header> - <nav itemscope itemtype="http://schema.org/SiteNavigationElement"> - {% for item in config.extra.menu %} - <a itemprop="url" - class="{% if item.url | replace(from='$BASE_URL', to=config.base_url) == current_url %}active{% endif %}" - href="{{ item.url | replace(from='$BASE_URL', to=config.base_url) }}"> - <span itemprop="name">{{ item.name }}</span> - </a> - {% endfor %} - </nav> - </header> - <hr /> - {% endblock header %} - <main> {% block content %} <div class="block block-highlighted"> @@ -59,39 +44,6 @@ If you want to contact me, see the links on my <a href="{{ get_url(path='@/contact.md') }}">contact page</a>! </p> </div> - <h2>Latest blog posts:</h2> - <hr /> - {% set section = get_section(path="blog/_index.md") %} - {% for page in section.pages | slice(end=5) %} - <article itemscope itemtype="http://schema.org/CreativeWork"> - <header> - <h2 itemprop="name"> - <a href="{{ page.permalink }}">{{ page.title }}</a> - </h2> - <div class="hushed"> - <svg style="margin-bottom:-3px" class="i-clock" viewBox="0 0 32 32" - width="16" height="16" fill="none" stroke="currentcolor" - stroke-linecap="round" stroke-linejoin="round" stroke-width="6.25%"> - <circle cx="16" cy="16" r="14"/> - <path d="M16 8 L16 16 20 20"/> - </svg> - <span>{{ page.reading_time }} minute read</span> - <svg style="margin-bottom: -3px" class="i-edit" viewBox="0 0 32 32" - width="16" height="16" fill="none" stroke="currentcolor" - stroke-linecap="round" stroke-linejoin="round" stroke-width="6.25%"> - <path d="M30 7 L25 2 5 22 3 29 10 27 Z M21 6 L26 11 Z M5 22 L10 27 Z"/> - </svg> - {% if page.date %}Published: {{ page.date | date(format='%F') }}{% endif %} - </div> - </header> - {% if page.summary %} - <div itemprop="summary" class="page-content"> - {{ page.summary | safe }} - <nav class="readmore"><a itemprop="url" href="{{ page.permalink }}">Read more&nbsp;&raquo;</a></nav> - </div> - {% endif %} - </article> - {% endfor %} {% endblock content %} </main> </body>