Merge branch 'master' of git+ssh://code.ungleich.ch/ungleich-public/ungleich-staticcms
This commit is contained in:
commit
43f70601c5
7 changed files with 33 additions and 10 deletions
|
@ -1,7 +0,0 @@
|
||||||
title: About this Website
|
|
||||||
---
|
|
||||||
body:
|
|
||||||
|
|
||||||
This is a website that was made with the Lektor quickstart.
|
|
||||||
|
|
||||||
And it does not contain a lot of information.
|
|
|
@ -1,3 +1,7 @@
|
||||||
_model: comics
|
_model: comics
|
||||||
---
|
---
|
||||||
title: Penguin Comics
|
title: Penguin Comics
|
||||||
|
---
|
||||||
|
_discoverable: no
|
||||||
|
---
|
||||||
|
_hidden: yes
|
||||||
|
|
3
content/u/sitemap/contents.lr
Normal file
3
content/u/sitemap/contents.lr
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
_template: sitemap.html
|
||||||
|
---
|
||||||
|
_model: none
|
|
@ -1,6 +1,6 @@
|
||||||
[model]
|
[model]
|
||||||
name = Offers
|
name = Offers
|
||||||
label = Offers
|
label = {{ this.title }}
|
||||||
hidden = yes
|
hidden = yes
|
||||||
|
|
||||||
[fields.title]
|
[fields.title]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[model]
|
[model]
|
||||||
name = Products
|
name = Products
|
||||||
label = Products
|
label = {{ this.title }}
|
||||||
hidden = yes
|
hidden = yes
|
||||||
|
|
||||||
[fields.title]
|
[fields.title]
|
||||||
|
|
|
@ -148,7 +148,10 @@
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<span class="text-muted">Copyright
|
<span class="text-muted">Copyright
|
||||||
<a class=footer-link href="https://ungleich.ch">ungleich
|
<a class=footer-link href="https://ungleich.ch">ungleich
|
||||||
glarus ag</a>. All prices excluding VAT if not specified otherwise.</span>
|
glarus ag</a>. All prices excluding VAT if not specified
|
||||||
|
otherwise. Looking for an overview? Checkout the
|
||||||
|
<a href="/u/sitemap/">sitemap.</a>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
|
20
templates/sitemap.html
Normal file
20
templates/sitemap.html
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{% extends "layout-2020.html" %}
|
||||||
|
{% block title %}Sitemap{% endblock %}
|
||||||
|
{% block content %}
|
||||||
|
<div class="container">
|
||||||
|
<div class="row mb-3">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<ul class="sitemap">
|
||||||
|
{% for page in [site.root] if page.record_label recursive %}
|
||||||
|
<li><a href="{{ page|url }}">{{ page.record_label }}</a>
|
||||||
|
{% if page.children %}
|
||||||
|
<ul>{{ loop(page.children|sort(attribute='path')) }}</ul>
|
||||||
|
{% endif %}
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{% endblock %}
|
Loading…
Reference in a new issue