diff --git a/assets/robots.txt b/assets/robots.txt new file mode 100644 index 0000000..1f53798 --- /dev/null +++ b/assets/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: / diff --git a/content/config.js/contents.lr b/content/config.js/contents.lr index f7a564b..54f91e3 100644 --- a/content/config.js/contents.lr +++ b/content/config.js/contents.lr @@ -1,4 +1,5 @@ _template: config.js --- -_model: none _discoverable: no +--- +_hidden: yes diff --git a/content/schedule-vortragssaal/contents.lr b/content/schedule-vortragssaal/contents.lr index d73a5c2..617d4d2 100644 --- a/content/schedule-vortragssaal/contents.lr +++ b/content/schedule-vortragssaal/contents.lr @@ -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 diff --git a/content/schedule/contents.lr b/content/schedule/contents.lr index d73a5c2..7133c6c 100644 --- a/content/schedule/contents.lr +++ b/content/schedule/contents.lr @@ -1,6 +1,6 @@ _model: html5infobeamer --- -title: Overview Schedule Aalen +title: Overview Schedule Aalen Geekend 23 --- body: diff --git a/content/sitemap.xml/contents.lr b/content/sitemap.xml/contents.lr new file mode 100644 index 0000000..ffd5fad --- /dev/null +++ b/content/sitemap.xml/contents.lr @@ -0,0 +1,4 @@ +_template: sitemap.xml +--- +_model: none +_discoverable: no diff --git a/models/html5infobeamer.ini b/models/html5infobeamer.ini index 64013cf..abe1181 100644 --- a/models/html5infobeamer.ini +++ b/models/html5infobeamer.ini @@ -13,4 +13,4 @@ type = markdown [fields.schedule] label = Schedule Javascript Address type = string - +default = rendered_schedule.js diff --git a/templates/html5infobeamer.html b/templates/html5infobeamer.html index 14b975b..20deb5c 100644 --- a/templates/html5infobeamer.html +++ b/templates/html5infobeamer.html @@ -4,6 +4,10 @@ {{ this.title }} + + + + @@ -17,6 +21,6 @@ - + diff --git a/templates/root.html b/templates/root.html index c216bf1..8f6785b 100644 --- a/templates/root.html +++ b/templates/root.html @@ -5,6 +5,7 @@ {{ this.title }} + diff --git a/templates/sitemap.xml b/templates/sitemap.xml new file mode 100644 index 0000000..95680f4 --- /dev/null +++ b/templates/sitemap.xml @@ -0,0 +1,12 @@ + +{%- if '/css/sitemap.min.css'|asseturl is defined -%} + +{%- endif %} + + {%- for page in [site.root] if page != this recursive %} + {%- if not page.hide_from_global_index %} + {{ page|url(external=true) }} + {{- loop(page.children) }} + {%- endif %} + {%- endfor %} +