Skip to content

Instantly share code, notes, and snippets.

@brandonb927
Created June 7, 2013 20:30
Show Gist options
  • Save brandonb927/5732192 to your computer and use it in GitHub Desktop.
Save brandonb927/5732192 to your computer and use it in GitHub Desktop.
Postach.io theme head tags. These tags are used in every theme and will constantly be updated to accommodate newer tags and tag updates over time.
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="description" content="{{ site.bio }} - {{ site.author }}" />
<meta name="copyright" content="Copyright (c) 2013 {{ site.author }}" />
<meta name="classification" content="blog" />
{% if is_post %}
<meta property="article:published_time" content="{{ post.created_at }}" />
{% if post.tags %}
{% for tag in post.tags %}
<meta property="article:tag" content="{{ tag|format_tag(link=False, humanize=True) }}" />
{% endfor %}
{% endif %}
{% endif %}
<meta property="og:site_name" content="{{ site.name }}" />
<meta property="og:image" content="{{ account.email|gravatar(512) }}" />
{% if is_post %}
<meta property="og:type" content="article" />
<meta property="og:title" content="{{ post.title }}" />
<meta property="og:url" content="http://{{ site.domain }}{{ post.permalink }}" />
<meta property="og:description" content="{{ post.content|striptags|truncate(255)|e }}" />
{% elif is_page %}
<meta property="og:type" content="article" />
<meta property="og:title" content="{{ page.title }}" />
<meta property="og:url" content="http://{{ site.domain }}{{ page.permalink }}" />
<meta property="og:description" content="{{ page.content|striptags|truncate(255)|e }}" />
{% else %}
<meta property="og:type" content="website" />
<meta property="og:title" content="{{ site.name }}" />
<meta property="og:url" content="http://{{ site.domain }}" />
<meta property="og:description" content="{{ site.bio }}" />
{% endif %}
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@{{ site.twitter }}">
{% if is_post %}
<meta name="twitter:title" content="{{ post.title }}">
<meta name="twitter:description" content="{{ post.content|striptags|truncate(255)|e }}...">
{% elif is_page %}
<meta name="twitter:title" content="{{ page.title }}">
<meta name="twitter:description" content=" {{ page.content|striptags|truncate(255)|e }}...">
{% else %}
<meta name="twitter:title" content="{{ site.name }}">
<meta name="twitter:description" content="{{ site.bio|striptags|truncate(255)|e }}...">
{% endif %}
<meta name="twitter:creator" content="@{{ site.twitter }}">
<meta name="twitter:image:src" content="{{ account.email|gravatar(512) }}">
<meta name="twitter:domain" content="http://{{ site.domain }}">
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ site.atom_url }}" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment