update templates, adding robots
This commit is contained in:
parent
839d63b687
commit
43ebdf2881
9 changed files with 31 additions and 5 deletions
2
assets/robots.txt
Normal file
2
assets/robots.txt
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
User-agent: *
|
||||||
|
Disallow: /
|
|
@ -1,4 +1,5 @@
|
||||||
_template: config.js
|
_template: config.js
|
||||||
---
|
---
|
||||||
_model: none
|
|
||||||
_discoverable: no
|
_discoverable: no
|
||||||
|
---
|
||||||
|
_hidden: yes
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
_model: html5infobeamer
|
_model: html5infobeamer
|
||||||
---
|
---
|
||||||
title: Overview Schedule Aalen
|
title: Vortragsraum Schedule Aalen Geekend 23
|
||||||
---
|
---
|
||||||
body:
|
body:
|
||||||
|
|
||||||
This is a basic demo website that shows how to use Lektor for a basic
|
This is a basic demo website that shows how to use Lektor for a basic
|
||||||
website with some pages.
|
website with some pages.
|
||||||
|
---
|
||||||
|
schedule: rendered_schedule-vortragsraum.js
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
_model: html5infobeamer
|
_model: html5infobeamer
|
||||||
---
|
---
|
||||||
title: Overview Schedule Aalen
|
title: Overview Schedule Aalen Geekend 23
|
||||||
---
|
---
|
||||||
body:
|
body:
|
||||||
|
|
||||||
|
|
4
content/sitemap.xml/contents.lr
Normal file
4
content/sitemap.xml/contents.lr
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
_template: sitemap.xml
|
||||||
|
---
|
||||||
|
_model: none
|
||||||
|
_discoverable: no
|
|
@ -13,4 +13,4 @@ type = markdown
|
||||||
[fields.schedule]
|
[fields.schedule]
|
||||||
label = Schedule Javascript Address
|
label = Schedule Javascript Address
|
||||||
type = string
|
type = string
|
||||||
|
default = rendered_schedule.js
|
||||||
|
|
|
@ -4,6 +4,10 @@
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
<title>{{ this.title }}</title>
|
<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 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">
|
<link rel="stylesheet" href="{{ '/css/schedule.css'|asseturl }}" rel="stylesheet" type="text/css">
|
||||||
<script src="/config.js"></script>
|
<script src="/config.js"></script>
|
||||||
|
@ -17,6 +21,6 @@
|
||||||
<script src="{{ '/js/luxon/luxon.min.js' | asseturl }}"></script>
|
<script src="{{ '/js/luxon/luxon.min.js' | asseturl }}"></script>
|
||||||
<script src="{{ '/js/preact/preact.min.js' | asseturl }}"></script>
|
<script src="{{ '/js/preact/preact.min.js' | asseturl }}"></script>
|
||||||
<script src="{{ '/js/htm/htm.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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
<title>{{ this.title }}</title>
|
<title>{{ this.title }}</title>
|
||||||
<link href="{{ '/static/fork-awesome/css/fork-awesome.min.css'|asseturl }}" rel="stylesheet" type="text/css">
|
<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">
|
<link rel="stylesheet" href="{{ '/css/root_index.css'|asseturl }}" rel="stylesheet" type="text/css">
|
||||||
<script src="/config.js"></script>
|
<script src="/config.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
12
templates/sitemap.xml
Normal file
12
templates/sitemap.xml
Normal 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>
|
Loading…
Reference in a new issue