update templates, adding robots

This commit is contained in:
L3D 2023-11-01 17:14:41 +01:00
parent 839d63b687
commit 43ebdf2881
No known key found for this signature in database
GPG key ID: AD65B920933B4B20
9 changed files with 31 additions and 5 deletions

2
assets/robots.txt Normal file
View file

@ -0,0 +1,2 @@
User-agent: *
Disallow: /

View file

@ -1,4 +1,5 @@
_template: config.js
---
_model: none
_discoverable: no
---
_hidden: yes

View file

@ -1,8 +1,10 @@
_model: html5infobeamer
---
title: Overview Schedule Aalen
title: Vortragsraum Schedule Aalen Geekend 23
---
body:
This is a basic demo website that shows how to use Lektor for a basic
website with some pages.
---
schedule: rendered_schedule-vortragsraum.js

View file

@ -1,6 +1,6 @@
_model: html5infobeamer
---
title: Overview Schedule Aalen
title: Overview Schedule Aalen Geekend 23
---
body:

View file

@ -0,0 +1,4 @@
_template: sitemap.xml
---
_model: none
_discoverable: no

View file

@ -13,4 +13,4 @@ type = markdown
[fields.schedule]
label = Schedule Javascript Address
type = string
default = rendered_schedule.js

View file

@ -4,6 +4,10 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>{{ this.title }}</title>
<meta name="description" content="{{ this.description }}">
<meta name="robots" content="noindex">
<link rel="sitemap" type="application/xml" title="Sitemap" href="/sitemap.xml">
<meta name="author" content="L3D">
<link href="{{ '/static/fork-awesome/css/fork-awesome.min.css'|asseturl }}" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="{{ '/css/schedule.css'|asseturl }}" rel="stylesheet" type="text/css">
<script src="/config.js"></script>
@ -17,6 +21,6 @@
<script src="{{ '/js/luxon/luxon.min.js' | asseturl }}"></script>
<script src="{{ '/js/preact/preact.min.js' | asseturl }}"></script>
<script src="{{ '/js/htm/htm.js' | asseturl }}"></script>
<script src="{{ '/rendered_schedule.js' | asseturl }}"></script>
<script src="{{ this.schedule | asseturl }}"></script>
</body>
</html>

View file

@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>{{ this.title }}</title>
<link href="{{ '/static/fork-awesome/css/fork-awesome.min.css'|asseturl }}" rel="stylesheet" type="text/css">
<meta name="robots" content="noindex">
<link rel="stylesheet" href="{{ '/css/root_index.css'|asseturl }}" rel="stylesheet" type="text/css">
<script src="/config.js"></script>
</head>

12
templates/sitemap.xml Normal file
View file

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
{%- if '/css/sitemap.min.css'|asseturl is defined -%}
<?xml-stylesheet href="{{ '/css/sitemap.min.css'|asseturl }}" type="text/css" ?>
{%- endif %}
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{%- for page in [site.root] if page != this recursive %}
{%- if not page.hide_from_global_index %}
<url><loc>{{ page|url(external=true) }}</loc></url>
{{- loop(page.children) }}
{%- endif %}
{%- endfor %}
</urlset>