Browse Source

Add Google Authorship code to article and page

Update #15
Talha Mansoor 11 years ago
parent
commit
7ef30b487a
3 changed files with 6 additions and 0 deletions
  1. 1 0
      templates/article.html
  2. 4 0
      templates/base.html
  3. 1 0
      templates/page.html

+ 1 - 0
templates/article.html

@@ -11,6 +11,7 @@
 {% endblock head_description %}
 
 {% block meta_tags_in_head %}
+{{ super() }}
 {% if article.tags or article.category or article.keywords %}
 <meta name="keywords" content="{{ [article.tags|join(', '), article.category, article.keywords]|join(', ') }}" />
 {% endif %}

+ 4 - 0
templates/base.html

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

+ 1 - 0
templates/page.html

@@ -11,6 +11,7 @@
 {% endblock head_description %}
 
 {% block meta_tags_in_head %}
+{{ super() }}
 {% if page.keywords %}
 <meta name="keywords" content="{{ page.keywords }}" />
 {% endif %}