dummy content

This commit is contained in:
gws 2024-11-05 21:59:02 +01:00
parent e3fcde63d8
commit ee5145c21e
5 changed files with 918 additions and 0 deletions

20
templates/_macros.html Normal file
View file

@ -0,0 +1,20 @@
{% macro render_header() %}
{% set section = get_section(path="_index.md") %}
<a href="{{ section.permalink | safe }}">
<div class="logo">
<img src="{{ get_url(path=config.extra.juice_logo_path) }}" alt="logo">
{{ config.extra.juice_logo_name }}
</div>
</a>
<nav>
{% for page in section.pages %}
<a class="nav-item subtitle-text" href="{{ page.permalink | safe }}">{{ page.title }}</a>
{% endfor %}
{% if config.extra.juice_extra_menu %}
{% for menu in config.extra.juice_extra_menu %}
<a class="nav-item subtitle-text" href="{{ menu.link | safe }}">{{ menu.title }}</a>
{% endfor %}
{% endif %}
</nav>
{% endmacro render_header %}

42
templates/section.html Normal file
View file

@ -0,0 +1,42 @@
{% import "_macros.html" as macros %}
{% extends "index.html" %}
{% block title %}{{ section.title }} | {{ super() }} {% endblock title %}
{% block header %}
<header class="box-shadow">
{{ macros::render_header() }}
</header>
{% endblock header %}
{% block content %}
<div class="margin-left:20vw; margin-right: 20vw;">
<div class="heading-text">{{ section.title }}</div>
<ul>
{% for page in section.pages %}
<li>
<div>
<a href="{{ page.permalink | safe }}">
<strong class="title article-title">{{ page.title }}</strong>
</a>
{% if page.date %}
<div>
<span>{{ page.date | date(format="%F") }}</span>
</div>
{% endif %}
</div>
{% if page.summary %}
<div itemprop="summary" class="content article-body">
{{ page.summary | safe }}
<nav class="readmore">
<a itemprop="url" href="{{ page.permalink | safe }}">Read
More&nbsp;&raquo;
</a>
</nav>
</div>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
{% endblock content %}