big refactor 1
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
{# -*-jinja2-*- #}
|
||||
<html>
|
||||
<head></head>
|
||||
<LINK href="/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css">
|
||||
<head></head>
|
||||
<LINK href="{{ url_for('static', filename='bootstrap/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 pagebreadcrumbs %}
|
||||
<a href="{{url_for('post',name=b.path)}}" class="breadcrumb-item">{{b.title}} </a>
|
||||
<a href="{{url_for('page',name=b.path)}}" class="breadcrumb-item">{{b.title}} </a>
|
||||
{% endfor %}
|
||||
<a href="{{url_for('post',name=post.path)}}" class="breadcrumb-item active">{{post.title}} </a>
|
||||
<a href="{{url_for('page',name=post.path)}}" class="breadcrumb-item active">{{post.title}} </a>
|
||||
</nav>
|
||||
|
||||
{% block content %}
|
||||
|
||||
@@ -1,15 +1,16 @@
|
||||
{# -*-jinja2-*- #}
|
||||
{% extends "layout.html" %}
|
||||
{% block content %}
|
||||
|
||||
<h1>{{post.title}}</h1>
|
||||
{{post.date}}
|
||||
{% if spi|length > 0 %}
|
||||
{% if spi | length > 0 %}
|
||||
<hr/>
|
||||
<b id="up_head"> Unterseiten: </b>
|
||||
<ul class="nav flex-column flex-sm-row " labeledby="up_head">
|
||||
{% for d in spi %}
|
||||
<li class="nav-item">
|
||||
<a href="{{url_for('post',name=d['path'])}}" class="nav-link">
|
||||
<a href="{{url_for('page',name=d['path'])}}" class="nav-link">
|
||||
<h6> {{d.title}} <small class="text-muted">{{'/'.join(d.path.split('/')[-2:-1])}} </small>
|
||||
</h6>
|
||||
</a>
|
||||
@@ -26,7 +27,7 @@
|
||||
<ul class="nav flex-column flex-sm-row" labeledby="inf_head">
|
||||
{% for d in sp %}
|
||||
<li class="nav-item">
|
||||
<a href="{{url_for('post',name=d['path'])}}" class="nav-link text-info">
|
||||
<a href="{{url_for('page',name=d['path'])}}" class="nav-link text-info">
|
||||
<h6> {{d.title}} <small class="text-muted">{{d.path.split('/')[-1]}} </small>
|
||||
</h6>
|
||||
</a>
|
||||
@@ -41,7 +42,8 @@
|
||||
<ul>
|
||||
{% for d in ld %}
|
||||
<li>
|
||||
<a href="/{{pth}}/{{d}}">{{d}} </a>
|
||||
<a href="{{url_for('page', name=d)}}">{{d}} </a>
|
||||
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user