Skip to content

Commit c5be0eb

Browse files
iranzotalha131
authored andcommitted
feat(SEO): add SEO and SMO meta keywords in site's home page
Signed-off-by: Pablo Iranzo Gómez <Pablo.Iranzo@gmail.com>
1 parent 49c3b57 commit c5be0eb

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

THANKS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
3030

3131
<!-- markdownlint-enable -->
3232
<!-- prettier-ignore-end -->
33+
3334
<!-- ALL-CONTRIBUTORS-LIST:END -->
3435

3536
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!

templates/base.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
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 %}">
2728
{% endif %}
2829
{% block meta_tags_in_head %}
2930
{% from '_includes/_defaults.html' import TWITTER_USERNAME with context %}

templates/index.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,22 @@
77
{% block meta_tags_in_head %}
88
{{ super() }}
99
{% from '_includes/_defaults.html' import LANDING_PAGE_TITLE with context %}
10-
{% if LANDING_PAGE_TITLE %}
10+
{% if LANDING_PAGE_TITLE %}
1111
<meta property="og:title" content="{{ LANDING_PAGE_TITLE|e }}"/>
1212
<meta name="twitter:title" content="{{ LANDING_PAGE_TITLE|e }}">
1313
{% else %}
1414
<meta property="og:title" content="{{ SITENAME|striptags|e }}"/>
1515
<meta name="twitter:title" content="{{ SITENAME|striptags|e }}">
1616
{% endif %}
1717
<meta property="og:url" content="{{ SITEURL }}" />
18-
{% from '_includes/_defaults.html' import SITE_DESCRIPTION with context %}
19-
{% if SITE_DESCRIPTION %}
20-
<meta property="og:description" content="{{SITE_DESCRIPTION|e}}" />
21-
<meta name="twitter:description" content="{{SITE_DESCRIPTION|e}}">
22-
{% endif %}
2318
<meta property="og:site_name" content="{{ SITENAME|striptags|e }}" />
2419
<meta property="og:article:author" content="{{ AUTHOR }}" />
2520
{% from '_includes/_defaults.html' import FEATURED_IMAGE with context %}
2621
{% if FEATURED_IMAGE %}
2722
<meta property="og:image" content="{{FEATURED_IMAGE}}" />
2823
<meta name="twitter:image" content="{{FEATURED_IMAGE}}" >
2924
{% endif %}
25+
<meta name="keywords" content="{% for tag, _ in tags|sort %} {{ tag }}, {% endfor %}{% for category, _ in categories|sort %} {{ category }}, {% endfor %}" />
3026
{% endblock meta_tags_in_head %}
3127

3228
{% block content %}

0 commit comments

Comments
 (0)