Kaynağa Gözat

Move twitter:creator meta tag to base.html

Talha Mansoor 10 yıl önce
ebeveyn
işleme
874cdaef77

+ 0 - 4
templates/_includes/smo_metadata.html

@@ -12,10 +12,6 @@
 <meta property="" content="{{ article.modified.isoformat() }}" />
 {% endif %}
 <meta name="twitter:card" content="summary">
-{% from '_includes/_defaults.html' import TWITTER_USERNAME with context %}
-{%if TWITTER_USERNAME %}
-<meta name="twitter:creator" content="@{{TWITTER_USERNAME}}">
-{% endif %}
 <meta name="twitter:title" content="{{ article.title|striptags|e }} {%if article.subtitle %} - {{ article.subtitle|striptags|e }} {% endif %}">
 <meta name="twitter:description" content="{{article.summary|striptags|e}}">
 {% if article.featured_image %}

+ 4 - 0
templates/base.html

@@ -24,6 +24,10 @@
         {% if GOOGLE_PLUS_PROFILE_URL %}
         <link rel="author" href={{GOOGLE_PLUS_PROFILE_URL}} />
         {% endif %}
+        {% from '_includes/_defaults.html' import TWITTER_USERNAME with context %}
+        {%if TWITTER_USERNAME %}
+        <meta name="twitter:creator" content="@{{TWITTER_USERNAME}}">
+        {% endif %}
         {% endblock meta_tags_in_head %}
         <title>{% block title %}{{ SITENAME|striptags|e }}{% endblock title %}</title>
         {% block head_links %}

+ 0 - 4
templates/index.html

@@ -24,10 +24,6 @@
 <meta property="og:site_name" content="{{ SITENAME|striptags|e }}" />
 <meta property="og:article:author" content="{{ AUTHOR }}" />
 <meta name="twitter:card" content="summary">
-{% from '_includes/_defaults.html' import TWITTER_USERNAME with context %}
-{%if TWITTER_USERNAME %}
-<meta name="twitter:creator" content="@{{TWITTER_USERNAME}}">
-{% endif %}
 {% from '_includes/_defaults.html' import FEATURED_IMAGE with context %}
 {% if FEATURED_IMAGE %}
 <meta property="og:image" content="{{FEATURED_IMAGE}}" />