diff --git a/templates/base.html b/templates/base.html index 6bf78375e38e7be604e9f9ef52e795caa42689ef..0eaba4a1d0710c03f018126e0d4789745eba040b 100644 --- a/templates/base.html +++ b/templates/base.html @@ -4,7 +4,7 @@ {% set thing = section -%} {% endif -%} <!DOCTYPE html> -<html lang="{{ lang }}" data-theme="light" {% if current_path %}resource="https://www.teckids.org{{ current_path }}"{% endif %}> +<html lang="{{ lang }}" data-theme="light" {% if current_path %}resource="https://www.teckids.org{{ current_path }}"{% endif %} typeof="{% block rdfa_type %}{{ thing.extra.microdata.type | default(value='schema:WebPage') }}{% endblock rdfa_type %}"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> diff --git a/templates/blog/post.html b/templates/blog/post.html index dfd04c3d86f4b41d3d11a4c7dada0c298f22f4de..defa153bddb2e8749ce39ed222e3022f801e236a 100644 --- a/templates/blog/post.html +++ b/templates/blog/post.html @@ -1,9 +1,11 @@ {% extends "page.html" %} +{% block rdfa_type %}schema:BlogPosting{% endblock %} + {% block content %} {% set blog_section = get_section(path="blog/_index.md") %} {% set post = page -%} - <div class="columns mt-4" typeof="schema:BlogPosting"> + <div class="columns mt-4"> <meta property="schema:isPartOf" href="{{ blog_section.permalink }}" /> {% if post.extra.microdata.about %} {% for about in post.extra.microdata.about %} diff --git a/templates/index.html b/templates/index.html index 87b375fa22ad57f8020cd5720e821a05c6fc84fa..397036c55265f40dfef7d400754337ab462c1d05 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,6 +1,7 @@ {% extends "base.html" %} {% block og_type %}website{% endblock %} +{% block rdfa_type %}schema:WebSite{% endblock %} {% block main %} {% include "frontpage/claim.html" %}