diff --git a/content/theme/main.html b/content/theme/main.html index 9d1b06f9a4..390d02e051 100644 --- a/content/theme/main.html +++ b/content/theme/main.html @@ -65,13 +65,17 @@ {# Meta type #} +{% set page_type = "article" %} {% if page.is_homepage or page.abs_url == "/" %} -{% set type = "website" %} +{% set page_type = "website" %} +{% elif "rdp/" in page.url %} +{% set page_type = "geordp" %} +{% elif "team/" in page.url %} +{% set page_type = "author_profile" %} {% else %} -{% set type = "article" %} +{% set page_type = "article" %} {% endif %} - {# JSON Feed #} {% include "partials/json_feed.html.jinja2" %} {# Semantic web - schemas.org #} @@ -81,6 +85,10 @@ {# Social cards - Twitter #} {% include "partials/cards_twitter.html.jinja2" %} +{# Store custom Geotribu tags #} + + + {% endblock %} diff --git a/content/theme/partials/schemas.html.jinja2 b/content/theme/partials/schemas.html.jinja2 index 4aa8205236..6d76683d63 100644 --- a/content/theme/partials/schemas.html.jinja2 +++ b/content/theme/partials/schemas.html.jinja2 @@ -1,5 +1,5 @@ {# Structured data using schema.org #} -{% if type == "article" %} +{% if page_type in ("article", "geordp") %} -{% elif type == "website" %} +{% elif page_type == "author_profile" %} + +{% elif page_type == "website" %}