created a simple sample

This commit is contained in:
Andreas Stephanides
2020-02-13 18:44:50 +01:00
commit e7deab6430
15 changed files with 255 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
{# -*-jinja2-*- #}
<html>
<head></head>
<LINK href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<body>
<div class="container">
<div class="row">
<div class="col-12">
<nav class="breadcrumb" style="background-color: #FFF">
{% for b in post.breadcrumbs %}
<a href="{#url_for('page',name=b.path)#}{{b.url}}" class="breadcrumb-item">{{b.title}} </a>
{% endfor %}
</nav>
{% block content %}
{% endblock %}
</div>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,53 @@
{# -*-jinja2-*- #}
{% extends "layout.html" %}
{% block content %}
<h1>{{post.title}}</h1>
{{post.date}}
{% if post.sub_index_pages | length > 0 %}
<hr/>
<b id="up_head"> Unterseiten: </b>
<ul class="nav flex-column flex-sm-row " labeledby="up_head">
{% for d in post.sub_index_pages %}
<li class="nav-item">
<a href="{{d.url}}" class="nav-link">
<h6> {{d.title}} <small class="text-muted">{{d.desc}} </small> </h6>
</a>
</li>
{% endfor %}
</ul>
{% endif %}
{{ post.helloworld() }}
{{ post.html|safe }}
{% if post.sub_pages |length > 0 %}
<ul class="nav flex-column flex-sm-row" labeledby="inf_head">
{% for d in post.sub_pages %}
<li class="nav-item">
<a href="{{d.url}}" class="nav-link text-info">
<h6> {{d.title}} <small class="text-muted">{{d.desc}} </small>
</h6>
</a>
</li>
{% endfor %}
</ul>
{% endif %}
{% if post.list_files |length > 0 %}
<hr/>
<b id="inf_head">Files:</b>
<ul>
{% for d in post.list_files %}
<li>
<a href="{{d.url}}">{{d}} </a>
</li>
{% endfor %}
</ul>
{% endif %}
{% endblock %}