Explorar el Código

Add SMO to categories page

Talha Mansoor hace 10 años
padre
commit
c7d9449779
Se han modificado 1 ficheros con 16 adiciones y 0 borrados
  1. 16 0
      templates/categories.html

+ 16 - 0
templates/categories.html

@@ -8,6 +8,22 @@ All Categories · {{ super() }}
 All categories of the {{ SITENAME|striptags|e }} blog. 
 {% endblock head_description %}
 
+{% block meta_tags_in_head %}
+{{ super() }}
+<meta property="og:title" content="All Categories · {{ SITENAME|striptags|e }}"/>
+<meta name="twitter:title" content="All Categories · {{ SITENAME|striptags|e }}">
+<meta property="og:url" content="{{ SITEURL }}/categories.html" />
+<meta property="og:description" content="All categories of the {{ SITENAME|striptags|e }} blog" />
+<meta name="twitter:description" content="All categories of the {{ SITENAME|striptags|e }} blog">
+<meta property="og:site_name" content="{{ SITENAME|striptags|e }}" />
+<meta property="og:article:author" content="{{ AUTHOR }}" />
+{% from '_includes/_defaults.html' import FEATURED_IMAGE with context %}
+{% if FEATURED_IMAGE %}
+<meta property="og:image" content="{{FEATURED_IMAGE}}" />
+<meta name="twitter:image" content="{{FEATURED_IMAGE}}" >
+{% endif %}
+{% endblock meta_tags_in_head %}
+
 {% block feed_links %}
 {{ super() }}
 {% include '_includes/feeds_categories.html' %}