diff options
author | Zhiming Wang <zmwangx@gmail.com> | 2014-10-20 16:38:24 -0700 |
---|---|---|
committer | Zhiming Wang <zmwangx@gmail.com> | 2014-10-20 16:38:24 -0700 |
commit | d139da3a3277f73d7f01e4283d8dc01630a5317c (patch) | |
tree | 5a58aeb89869f09cc48543c0540a1fbd4910040e /source/_includes/head.html | |
parent | c434de5977c316c8406c00bb24221fa61ca8fe88 (diff) | |
download | my_new_personal_website-d139da3a3277f73d7f01e4283d8dc01630a5317c.tar.xz my_new_personal_website-d139da3a3277f73d7f01e4283d8dc01630a5317c.zip |
initial setup
Diffstat (limited to '')
-rw-r--r-- | source/_includes/head.html | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/source/_includes/head.html b/source/_includes/head.html new file mode 100644 index 00000000..6b5412ca --- /dev/null +++ b/source/_includes/head.html @@ -0,0 +1,30 @@ +<!DOCTYPE html> +<!--[if IEMobile 7 ]><html class="no-js iem7"><![endif]--> +<!--[if lt IE 9]><html class="no-js lte-ie8"><![endif]--> +<!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]--> +<head> + <meta charset="utf-8"> + <title>{% if page.title %}{% if site.titlecase %}{{ page.title | titlecase }}{% else %}{{ page.title }}{% endif %} - {% endif %}{{ site.title }}</title> + <meta name="author" content="{{ site.author }}"> + + {% capture description %}{% if page.description %}{{ page.description }}{% else %}{{ content | raw_content }}{% endif %}{% endcapture %} + <meta name="description" content="{{ description | strip_html | condense_spaces | truncate:150 }}"> + {% if page.keywords %}<meta name="keywords" content="{{ page.keywords }}">{% endif %} + + <!-- http://t.co/dKP3o1e --> + <meta name="HandheldFriendly" content="True"> + <meta name="MobileOptimized" content="320"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + + {% 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="{{ root_url }}/favicon.png" rel="icon"> + <link href="{{ root_url }}/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css"> + <link href="{{ site.subscribe_rss }}" rel="alternate" title="{{site.title}}" type="application/atom+xml"> + <script src="{{ root_url }}/javascripts/modernizr-2.0.js"></script> + <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> + <script>!window.jQuery && document.write(unescape('%3Cscript src="./javascripts/libs/jquery.min.js"%3E%3C/script%3E'))</script> + <script src="{{ root_url }}/javascripts/octopress.js" type="text/javascript"></script> + {% include custom/head.html %} + {% include google_analytics.html %} +</head> |