Skip to content

Commit 28bcb85

Browse files
committed
fix(seo): regression introduced in PR #556
fix #505
1 parent c5be0eb commit 28bcb85

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

templates/base.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
{% from '_includes/_defaults.html' import SITE_DESCRIPTION with context %}
2525
{% if SITE_DESCRIPTION %}
2626
<meta name="description" content="{% block head_description %}{{ SITE_DESCRIPTION|e }}{% endblock head_description %}" />
27-
<meta name="twitter:description" content="{% block head_description2 %}{{ SITE_DESCRIPTION|e }}{% endblock head_description2 %}">
2827
{% endif %}
2928
{% block meta_tags_in_head %}
3029
{% from '_includes/_defaults.html' import TWITTER_USERNAME with context %}

templates/index.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
{% block meta_tags_in_head %}
88
{{ super() }}
9-
{% from '_includes/_defaults.html' import LANDING_PAGE_TITLE with context %}
9+
{% from '_includes/_defaults.html' import LANDING_PAGE_TITLE, FEATURED_IMAGE, SITE_DESCRIPTION with context %}
1010
{% if LANDING_PAGE_TITLE %}
1111
<meta property="og:title" content="{{ LANDING_PAGE_TITLE|e }}"/>
1212
<meta name="twitter:title" content="{{ LANDING_PAGE_TITLE|e }}">
@@ -17,18 +17,19 @@
1717
<meta property="og:url" content="{{ SITEURL }}" />
1818
<meta property="og:site_name" content="{{ SITENAME|striptags|e }}" />
1919
<meta property="og:article:author" content="{{ AUTHOR }}" />
20-
{% from '_includes/_defaults.html' import FEATURED_IMAGE with context %}
2120
{% if FEATURED_IMAGE %}
2221
<meta property="og:image" content="{{FEATURED_IMAGE}}" />
2322
<meta name="twitter:image" content="{{FEATURED_IMAGE}}" >
2423
{% endif %}
24+
{% if SITE_DESCRIPTION %}
25+
<meta property="og:description" content="{{SITE_DESCRIPTION|e}}" />
26+
<meta name="twitter:description" content="{{SITE_DESCRIPTION|e}}">
27+
{% endif %}
2528
<meta name="keywords" content="{% for tag, _ in tags|sort %} {{ tag }}, {% endfor %}{% for category, _ in categories|sort %} {{ category }}, {% endfor %}" />
2629
{% endblock meta_tags_in_head %}
2730

2831
{% block content %}
29-
{% from '_includes/_defaults.html' import LANDING_PAGE_TITLE with context %}
30-
{% from '_includes/_defaults.html' import PROJECTS with context %}
31-
{% from '_includes/_defaults.html' import PROJECTS_TITLE with context %}
32+
{% from '_includes/_defaults.html' import LANDING_PAGE_TITLE, PROJECTS, PROJECTS_TITLE with context %}
3233

3334
{% set landing_page = namespace(page=false) %}
3435
{% for p in hidden_pages if p.slug == "landing-page-about-hidden" %}

0 commit comments

Comments
 (0)