diff --git a/templates/archive.html b/templates/archive.html index 4b2adbd..d80db8a 100644 --- a/templates/archive.html +++ b/templates/archive.html @@ -3,7 +3,19 @@ description %} {% block canonical %}{{ section.permalink }}{% endblock canonical %} {% block og_title %}{{ section.title }} | {{ config.title }}{% endblock og_title %} {% block og_description %}Chronological archive of every post on {{ config.title }}.{% endblock og_description %} {% block og_url %}{{ -section.permalink }}{% endblock og_url %} {% block content %} +section.permalink }}{% endblock og_url %} {% block head %} + + +{% endblock head %} {% block content %}

{{ config.extra.archive_page_title | default(value="Archive") }}

diff --git a/templates/base.html b/templates/base.html index 1b73037..932c525 100644 --- a/templates/base.html +++ b/templates/base.html @@ -15,6 +15,10 @@ + {% if config.extra.google_site_verification %} + + {% endif %} + diff --git a/templates/page.html b/templates/page.html index 194dd58..15fc49c 100644 --- a/templates/page.html +++ b/templates/page.html @@ -8,8 +8,10 @@ {% block og_title %}{{ page.title }}{% endblock og_title %} {% block og_description %}{{ page.description | default(value=config.description) }}{% endblock og_description %} {% block og_url %}{{ page.permalink }}{% endblock og_url %} -{% block og_type %}article{% endblock og_type %} +{% block og_type %}{% if page.ancestors is containing("posts/_index.md") %}article{% else %}website{% endif %}{% endblock og_type %} +{% block og_image %}{{ config.base_url }}{{ page.extra.image | default(value="/images/og-image.png") }}{% endblock og_image %} {% block og_extra %} + {% if page.ancestors is containing("posts/_index.md") %} {% if page.date %}{% endif %} {% if page.updated %}{% endif %} @@ -18,13 +20,16 @@ {% endfor %} {% endif %} + {% endif %} {% endblock og_extra %} {# Twitter Card overrides #} {% block twitter_title %}{{ page.title }}{% endblock twitter_title %} {% block twitter_description %}{{ page.description | default(value=config.description) }}{% endblock twitter_description %} +{% block twitter_image %}{{ config.base_url }}{{ page.extra.image | default(value="/images/og-image.png") }}{% endblock twitter_image %} {% block head %} + {% if page.ancestors is containing("posts/_index.md") %} + + + {% else %} + + + + + + {% endif %} + {% if page.extra.math %} diff --git a/templates/posts.html b/templates/posts.html index 7b528bb..2f6252a 100644 --- a/templates/posts.html +++ b/templates/posts.html @@ -30,7 +30,7 @@ og_description %}{{ config.extra.posts_page_subtitle | default(value="Exploring "@type": "BlogPosting", "@id": "{{ page.permalink | safe }}#article", "headline": {{ page.title | json_encode | safe }}, - "image": "{{ config.base_url | safe }}/images/og-image.png", + "image": "{{ config.base_url | safe }}{{ page.extra.image | default(value="/images/og-image.png") | safe }}", "url": "{{ page.permalink | safe }}" {% if page.date %},"datePublished": "{{ page.date | date(format="%+") }}"{% endif %} }{% if not loop.last %},{% endif %} @@ -39,6 +39,18 @@ og_description %}{{ config.extra.posts_page_subtitle | default(value="Exploring } + + + {% if paginator.previous %}{% endif %} {% if paginator.next %}{% endif %} {% endblock head %} {% diff --git a/templates/taxonomy_list.html b/templates/taxonomy_list.html index 56c848d..5165dd0 100644 --- a/templates/taxonomy_list.html +++ b/templates/taxonomy_list.html @@ -17,6 +17,18 @@ og_description %} {% block og_url %}{{ config.base_url }}/tags/{% endblock og_ur "inLanguage": "en-US" } + + + {% endblock head %} {% block content %}