소스 검색

Add SMO to tags page

Talha Mansoor 10 년 전
부모
커밋
a833b82c46
1개의 변경된 파일18개의 추가작업 그리고 0개의 파일을 삭제
  1. 18 0
      templates/tags.html

+ 18 - 0
templates/tags.html

@@ -8,6 +8,24 @@ All Tags · {{ super() }}
 All tags used in the {{ SITENAME|striptags|e }} blog.
 {% endblock head_description %}
 
+{% block meta_tags_in_head %}
+{{ super() }}
+<meta property="og:title" content="All Tags · {{ SITENAME|striptags|e }}"/>
+<meta name="twitter:title" content="All Tags · {{ SITENAME|striptags|e }}">
+<meta property="og:type" content="article" />
+<meta property="og:url" content="{{ SITEURL }}/tags.html" />
+<meta property="og:description" content="All tags used in the {{ SITENAME|striptags|e }} blog" />
+<meta name="twitter:description" content="All tags used in the {{ SITENAME|striptags|e }} blog">
+<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 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_tags.html' %}