From df253d4da50e82119cd4df3e4da521f8eab9e99a Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 15 May 2017 19:00:17 +0100 Subject: [PATCH] Hide hidden talks from sitemap, add robots meta tag --- source/_partials/og.twig | 4 ++++ source/sitemap.xml | 12 +++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/source/_partials/og.twig b/source/_partials/og.twig index 226042e6..2e6c034f 100644 --- a/source/_partials/og.twig +++ b/source/_partials/og.twig @@ -40,3 +40,7 @@ {% endif %} + +{% if page.hide_page %} + +{% endif %} diff --git a/source/sitemap.xml b/source/sitemap.xml index 828c6a73..3de8e73e 100644 --- a/source/sitemap.xml +++ b/source/sitemap.xml @@ -1,6 +1,6 @@ --- permalink: sitemap.xml -use: [posts] +use: [posts, talks] --- @@ -36,4 +36,14 @@ use: [posts] 1.0 {% endfor %} + + {% for talk in data.talks if not talk.hide_page %} + + {{ site.url }}{{ talk.url }}/ + {{ talk.date|date('c') }} + weekly + 1.0 + + {% endfor %} +