Created
March 15, 2015 12:56
-
-
Save maysam/fca70712bdd84927d8a1 to your computer and use it in GitHub Desktop.
fb twitter header
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title> | |
<meta name="description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}"> | |
{% if page.tags %}<meta name="keywords" content="{{ page.tags | join: ', ' }}">{% endif %} | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui" /> | |
{% if site.owner.twitter %}<!-- Twitter Cards --> | |
{% if page.image.feature %}<meta name="twitter:card" content="summary_large_image"> | |
<meta name="twitter:image" content="{{ site.url }}/images/posts/{{ page.image.feature }}"> | |
{% else %}<meta name="twitter:card" content="summary"> | |
<meta name="twitter:image" content="{% if page.image.thumb %}{{ site.url }}/images/posts/{{ page.image.thumb }}{% else %}{{ site.url }}/images/{{ site.logo }}{% endif %}">{% endif %} | |
<meta name="twitter:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}"> | |
<meta name="twitter:description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}"> | |
<meta name="twitter:creator" content="@{{ site.owner.twitter }}">{% endif %} | |
<!-- Open Graph --> | |
<meta property="og:locale" content="en_US"> | |
<meta property="og:type" content="article"> | |
<meta property="og:image" content="{% if page.image.thumb %}{{ site.url }}/images/posts/{{ page.image.thumb }}{% else %}{{ site.url }}/images/{{ site.logo }}{% endif %}"> | |
<meta property="og:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}"> | |
<meta property="og:description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}"> | |
<meta property="og:url" content="{{ site.url }}{{ page.url }}"> | |
<meta property="og:site_name" content="{{ site.title }}"> | |
{% if site.google_verify %}<meta name="google-site-verification" content="{{ site.google_verify }}">{% endif %} | |
{% if site.bing_verify %}<meta name="msvalidate.01" content="{{ site.bing_verify }}">{% endif %} | |
{% capture canonical %}{{ site.url }}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' | strip_slash }}{% endif %}{% endcapture %} | |
<link rel="canonical" href="{{ canonical }}"> | |
<link href="{{ site.url }}/feed.xml" type="application/atom+xml" rel="alternate" title="{{ site.title }} Feed"> | |
<!-- http://t.co/dKP3o1e --> | |
<meta name="HandheldFriendly" content="True"> | |
<meta name="MobileOptimized" content="320"> | |
<!-- Icons --> | |
<!-- 16x16 --> | |
<link rel="shortcut icon" href="{{ site.url }}/images/logos/16x16.ico"> | |
<!-- 32x32 --> | |
<link rel="shortcut icon" href="{{ site.url }}/images/logos/32x32.png"> | |
<!-- 57x57 (precomposed) for iPhone 3GS, pre-2011 iPod Touch and older Android devices --> | |
<link rel="apple-touch-icon-precomposed" href="{{ site.url }}/images/logos/57x57.png"> | |
<!-- 72x72 (precomposed) for 1st generation iPad, iPad 2 and iPad mini --> | |
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{ site.url }}/images/logos/72x72.png"> | |
<!-- 114x114 (precomposed) for iPhone 4, 4S, 5 and post-2011 iPod Touch --> | |
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="{{ site.url }}/images/logos/114x114.png"> | |
<!-- 144x144 (precomposed) for iPad 3rd and 4th generation --> | |
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ site.url }}/images/logos/144x144.png"> | |
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700' rel='stylesheet' type='text/css'> | |
{% stylesheet app %} | |
</head> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment