Created
April 2, 2014 06:29
-
-
Save yymm/9928926 to your computer and use it in GitHub Desktop.
Flask(Jinja2)でstaticにMobile Boilerplate置いた場合のindex.html
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
<!DOCTYPE html> | |
<html class="no-js"> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<meta name="description" content=""> | |
<meta name="HandheldFriendly" content="True"> | |
<meta name="MobileOptimized" content="320"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, minimal-ui"> | |
<meta http-equiv="cleartype" content="on"> | |
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ url_for('static', filename='img/touch/apple-touch-icon-144x144-precomposed.png') }}"> | |
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="{{ url_for('static', filename='img/touch/apple-touch-icon-114x114-precomposed.png') }}"> | |
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{ url_for('static', filename='img/touch/apple-touch-icon-72x72-precomposed.png') }}"> | |
<link rel="apple-touch-icon-precomposed" href="{{ url_for('static', filename='img/touch/apple-touch-icon-57x57-precomposed.png') }}"> | |
<link rel="shortcut icon" sizes="196x196" href="{{ url_for('static', filename='img/touch/touch-icon-196x196.png') }}"> | |
<link rel="shortcut icon" href="{{ url_for('static', filename='img/touch/apple-touch-icon.png') }}"> | |
<!-- Tile icon for Win8 (144x144 + tile color) --> | |
<meta name="msapplication-TileImage" content="{{ url_for('static', filename='img/touch/apple-touch-icon-144x144-precomposed.png') }}"> | |
<meta name="msapplication-TileColor" content="#222222"> | |
<!-- SEO: If mobile URL is different from desktop URL, add a canonical link to the desktop page --> | |
<!-- | |
<link rel="canonical" href="http://www.example.com/" > | |
--> | |
<!-- Add to homescreen for Chrome on Android --> | |
<!-- | |
<meta name="mobile-web-app-capable" content="yes"> | |
--> | |
<!-- For iOS web apps. Delete if not needed. https://github.com/h5bp/mobile-boilerplate/issues/94 --> | |
<!-- | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black"> | |
<meta name="apple-mobile-web-app-title" content=""> | |
--> | |
<!-- This script prevents links from opening in Mobile Safari. https://gist.github.com/1042026 --> | |
<!-- | |
<script>(function(a,b,c){if(c in b&&b[c]){var d,e=a.location,f=/^(a|html)$/i;a.addEventListener("click",function(a){d=a.target;while(!f.test(d.nodeName))d=d.parentNode;"href"in d&&(d.href.indexOf("http")||~d.href.indexOf(e.host))&&(a.preventDefault(),e.href=d.href)},!1)}})(document,window.navigator,"standalone")</script> | |
--> | |
<link rel="stylesheet" href="{{ url_for('static', filename='css/normalize.css') }}"> | |
<link rel="stylesheet" href="{{ url_for('static', filename='css/main.css') }}"> | |
<script src="{{ url_for('static', filename='js/vendor/modernizr-2.7.1.min.js') }}"></script> | |
</head> | |
<body> | |
<!-- Add your site or application content here --> | |
<script src="{{ url_for('static', filename='js/vendor/jquery-2.1.0.min.js') }}"></script> | |
<script src="{{ url_for('static', filename='js/helper.js') }}"></script> | |
<script src="{{ url_for('static', filename='js/main.js') }}"></script> | |
<!-- Google Analytics: change UA-XXXXX-X to be your site's ID. --> | |
<script> | |
(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]= | |
function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date; | |
e=o.createElement(i);r=o.getElementsByTagName(i)[0]; | |
e.src='//www.google-analytics.com/analytics.js'; | |
r.parentNode.insertBefore(e,r)}(window,document,'script','ga')); | |
ga('create','UA-XXXXX-X');ga('send','pageview'); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment