Merge branch 'master' of git+ssh://code.ungleich.ch/ungleich-public/ungleich-staticcms

This commit is contained in:
sanghee 2020-12-03 17:02:30 +01:00
commit 43f70601c5
7 changed files with 33 additions and 10 deletions

View file

@ -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.

View file

@ -1,3 +1,7 @@
_model: comics
---
title: Penguin Comics
---
_discoverable: no
---
_hidden: yes

View file

@ -0,0 +1,3 @@
_template: sitemap.html
---
_model: none

View file

@ -1,6 +1,6 @@
[model]
name = Offers
label = Offers
label = {{ this.title }}
hidden = yes
[fields.title]

View file

@ -1,6 +1,6 @@
[model]
name = Products
label = Products
label = {{ this.title }}
hidden = yes
[fields.title]

View file

@ -148,7 +148,10 @@
<div class="container">
<span class="text-muted">Copyright
<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>
</footer>

20
templates/sitemap.html Normal file
View 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 %}