Browse Source

optionally hide sites from sitemap.xml

master
L3D 4 months ago
parent
commit
5465cfc689
Signed by untrusted user: L3D GPG Key ID: CD08445BFF4313D1
11 changed files with 48 additions and 1 deletions
  1. +2
    -0
      content/termine/intern.ics/contents.lr
  2. +5
    -0
      models/calendar.ini
  3. +4
    -1
      models/faq.ini
  4. +5
    -0
      models/home.ini
  5. +5
    -0
      models/htmlcalendar.ini
  6. +5
    -0
      models/membershipform.ini
  7. +5
    -0
      models/page.ini
  8. +5
    -0
      models/podcast-post.ini
  9. +5
    -0
      models/podcast.ini
  10. +5
    -0
      models/waffeln.ini
  11. +2
    -0
      templates/sitemap.xml

+ 2
- 0
content/termine/intern.ics/contents.lr View File

@ -140,3 +140,5 @@ name: WTF - interne Termine
color: deepskyblue
---
lang: de_DE
---
hide_from_global_index: yes

+ 5
- 0
models/calendar.ini View File

@ -42,3 +42,8 @@ width = 1/2
label = URL to more Information
type = string
default = https://vebit.xyz/termine/
[fields.hide_from_global_index]
label = Hide this site from global index like /sitemap.xml
type = boolean
default = false

+ 4
- 1
models/faq.ini View File

@ -21,4 +21,7 @@ label = Fragen
type = flow
flow_blocks = table
[fields.hide_from_global_index]
label = Hide this site from global index like /sitemap.xml
type = boolean
default = false

+ 5
- 0
models/home.ini View File

@ -96,3 +96,8 @@ label = Promobox2
width = 1/2
type = flow
flow_blocks = promobox
[fields.hide_from_global_index]
label = Hide this site from global index like /sitemap.xml
type = boolean
default = false

+ 5
- 0
models/htmlcalendar.ini View File

@ -23,3 +23,8 @@ default = Kalendar Abonieren
label = interne Kalender URL
type = string
default = /termine/wtf.ics
[fields.hide_from_global_index]
label = Hide this site from global index like /sitemap.xml
type = boolean
default = false

+ 5
- 0
models/membershipform.ini View File

@ -14,3 +14,8 @@ type = string
[fields.body]
label = Body
type = html
[fields.hide_from_global_index]
label = Hide this site from global index like /sitemap.xml
type = boolean
default = false

+ 5
- 0
models/page.ini View File

@ -13,3 +13,8 @@ type = string
[fields.body]
label = Body
type = markdown
[fields.hide_from_global_index]
label = Hide this site from global index like /sitemap.xml
type = boolean
default = false

+ 5
- 0
models/podcast-post.ini View File

@ -113,3 +113,8 @@ width = 1/2
[fields.podcasttitle]
label = Podcast sichtbarer Dateiname
type = string
[fields.hide_from_global_index]
label = Hide this site from global index like /sitemap.xml
type = boolean
default = false

+ 5
- 0
models/podcast.ini View File

@ -48,3 +48,8 @@ order_by = -pub_date, title
[pagination]
enabled = yes
per_page = 10
[fields.hide_from_global_index]
label = Hide this site from global index like /sitemap.xml
type = boolean
default = false

+ 5
- 0
models/waffeln.ini View File

@ -18,3 +18,8 @@ label = Termine
type = flow
flow_blocks = termine
[fields.hide_from_global_index]
label = Hide this site from global index like /sitemap.xml
type = boolean
default = false

+ 2
- 0
templates/sitemap.xml View File

@ -1,7 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<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…
Cancel
Save