|
1 |
| -<!DOCTYPE html> |
2 |
| -<html> |
3 |
| -<head> |
4 |
| - <meta charset="utf-8"> |
5 |
| - <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
6 |
| - <meta name="viewport" |
7 |
| - content="width=device-width, initial-scale=1, |
8 |
| - minimum-scale=1, maximum-scale=1, user-scalable=no"> |
| 1 | +!!! |
| 2 | +%html |
| 3 | + %head |
| 4 | + %meta{:content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/ |
| 5 | + %meta{:charset => "utf-8"}/ |
| 6 | + %meta{:content => "IE=edge", "http-equiv" => "X-UA-Compatible"}/ |
| 7 | + %meta{:content => "width=device-width, initial-scale=1,\n\t\t minimum-scale=1, maximum-scale=1, user-scalable=no", :name => "viewport"}/ |
| 8 | + %title= full_title(yield(:title)) |
| 9 | + = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true |
| 10 | + = javascript_include_tag 'application', 'data-turbolinks-track' => true |
| 11 | + = csrf_meta_tags |
| 12 | + = scrivito_head_tags if using_scrivito? |
| 13 | + %meta{:content => "715330868", :property => "fb:admins"}/ |
| 14 | + %meta{:content => "805184859580207", :property => "fb:app_id"}/ |
| 15 | + %meta{:content => "#{full_title(yield(:title))}", :property => "og:title"}/ |
| 16 | + %meta{:content => "#{full_url(yield(:url))}", :property => "og:url"}/ |
| 17 | + %meta{:content => "#{meta_description(yield(:meta_description))}", :name => "description"}/ |
| 18 | + %meta{:content => "#{meta_description(yield(:meta_description))}", :property => "og:description"}/ |
| 19 | + %meta{:content => "website", :property => "og:type"}/ |
| 20 | + %meta{:content => "https://coderdojo.jp/og-image.png", :property => "og:image"}/ |
| 21 | + %meta{:content => "image/png", :property => "og:image:type"}/ |
| 22 | + %meta{:content => "CoderDojo Japan", :property => "og:site_name"}/ |
| 23 | + %meta{:content => "summary", :name => "twitter:card"}/ |
| 24 | + %meta{:content => "@CoderDojoJapan", :name => "twitter:site"}/ |
| 25 | + %meta{:content => "#{full_title(yield(:title))}", :name => "twitter:title"}/ |
| 26 | + %meta{:content => "#{meta_description(yield(:meta_description))}", :name => "twitter:description"}/ |
| 27 | + %meta{:content => "https://coderdojo.jp/og-image.png", :name => "twitter:image"}/ |
| 28 | + %meta{:content => "#{full_url(yield(:url))}", :name => "twitter:url"}/ |
| 29 | + %link{:href => "/img/apple-icon-57x57.png", :rel => "apple-touch-icon", :sizes => "57x57"}/ |
| 30 | + %link{:href => "/img/apple-icon-60x60.png", :rel => "apple-touch-icon", :sizes => "60x60"}/ |
| 31 | + %link{:href => "/img/apple-icon-72x72.png", :rel => "apple-touch-icon", :sizes => "72x72"}/ |
| 32 | + %link{:href => "/img/apple-icon-76x76.png", :rel => "apple-touch-icon", :sizes => "76x76"}/ |
| 33 | + %link{:href => "/img/apple-icon-114x114.png", :rel => "apple-touch-icon", :sizes => "114x114"}/ |
| 34 | + %link{:href => "/img/apple-icon-120x120.png", :rel => "apple-touch-icon", :sizes => "120x120"}/ |
| 35 | + %link{:href => "/img/apple-icon-144x144.png", :rel => "apple-touch-icon", :sizes => "144x144"}/ |
| 36 | + %link{:href => "/img/apple-icon-152x152.png", :rel => "apple-touch-icon", :sizes => "152x152"}/ |
| 37 | + %link{:href => "/img/apple-icon-180x180.png", :rel => "apple-touch-icon", :sizes => "180x180"}/ |
| 38 | + %link{:href => "/img/android-icon-192x192.png", :rel => "icon", :sizes => "192x192", :type => "image/png"}/ |
| 39 | + %link{:href => "/img/favicon-16x16.png", :rel => "icon", :sizes => "16x16", :type => "image/png"}/ |
| 40 | + %link{:href => "/img/favicon-32x32.png", :rel => "icon", :sizes => "32x32", :type => "image/png"}/ |
| 41 | + %link{:href => "/img/favicon-96x96.png", :rel => "icon", :sizes => "96x96", :type => "image/png"}/ |
| 42 | + %link{:href => "/manifest.json", :rel => "manifest"}/ |
| 43 | + %link{:color => "#1373ce", :href => "/img/safari-pinned-tab.svg", :rel => "mask-icon"}/ |
| 44 | + %meta{:content => "#ffffff", :name => "msapplication-TileColor"}/ |
| 45 | + %meta{:content => "/img/ms-icon-144x144.png", :name => "msapplication-TileImage"}/ |
| 46 | + %meta{:content => "#ffffff", :name => "theme-color"}/ |
| 47 | + %link{:href => "https://fonts.googleapis.com/css?family=Fjalla+One", :rel => "stylesheet", :type => "text/css"}/ |
| 48 | + / HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries |
| 49 | + / WARNING: Respond.js doesn't work if you view the page via file:// |
| 50 | + /[if lt IE 9] |
| 51 | + <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> |
| 52 | + <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> |
| 53 | + %body |
| 54 | + - flash.each do |message_type, message| |
| 55 | + %div{:class => "alert alert-#{message_type}"}= message |
| 56 | + = yield |
| 57 | + = scrivito_body_tags if using_scrivito? |
| 58 | + = render 'shared/footer' |
| 59 | + #fb-root |
| 60 | + :javascript |
| 61 | + (function(d, s, id) { |
| 62 | + var js, fjs = d.getElementsByTagName(s)[0]; |
| 63 | + if (d.getElementById(id)) return; |
| 64 | + js = d.createElement(s); js.id = id; |
| 65 | + js.src = "//connect.facebook.net/ja_JP/sdk.js#xfbml=1&version=v2.8&appId=805184859580207"; |
| 66 | + fjs.parentNode.insertBefore(js, fjs); |
| 67 | + }(document, 'script', 'facebook-jssdk')); |
| 68 | + :javascript |
| 69 | + (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
| 70 | + (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |
| 71 | + m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
| 72 | + })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); |
9 | 73 |
|
10 |
| - <title><%= full_title(yield(:title)) %></title> |
11 |
| - |
12 |
| - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> |
13 |
| - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> |
14 |
| - <%= csrf_meta_tags %> |
15 |
| - <%= scrivito_head_tags if using_scrivito? %> |
16 |
| - |
17 |
| - <meta property="fb:admins" content="715330868" /> |
18 |
| - <meta property="fb:app_id" content="805184859580207" /> |
19 |
| - <meta property="og:title" content="<%= full_title(yield(:title)) %>"> |
20 |
| - <meta property="og:url" content="<%= full_url(yield(:url)) %>"> |
21 |
| - <meta name="description" content="<%= meta_description(yield(:meta_description)) %>" /> |
22 |
| - <meta property="og:description" content="<%= meta_description(yield(:meta_description)) %>" /> |
23 |
| - |
24 |
| - <meta property="og:type" content="website"> |
25 |
| - <meta property="og:image" content="https://coderdojo.jp/og-image.png"> |
26 |
| - <meta property="og:image:type" content="image/png"> |
27 |
| - <meta property="og:site_name" content="CoderDojo Japan"> |
28 |
| - |
29 |
| - <meta name="twitter:card" content="summary" /> |
30 |
| - <meta name="twitter:site" content="@CoderDojoJapan" /> |
31 |
| - <meta name="twitter:title" content="<%= full_title(yield(:title)) %>" /> |
32 |
| - <meta name="twitter:description" content="<%= meta_description(yield(:meta_description)) %>" /> |
33 |
| - <meta name="twitter:image" content="https://coderdojo.jp/og-image.png" /> |
34 |
| - <meta name="twitter:url" content="<%= full_url(yield(:url)) %>" /> |
35 |
| - |
36 |
| - <link rel="apple-touch-icon" sizes="57x57" href="/img/apple-icon-57x57.png"> |
37 |
| - <link rel="apple-touch-icon" sizes="60x60" href="/img/apple-icon-60x60.png"> |
38 |
| - <link rel="apple-touch-icon" sizes="72x72" href="/img/apple-icon-72x72.png"> |
39 |
| - <link rel="apple-touch-icon" sizes="76x76" href="/img/apple-icon-76x76.png"> |
40 |
| - <link rel="apple-touch-icon" sizes="114x114" href="/img/apple-icon-114x114.png"> |
41 |
| - <link rel="apple-touch-icon" sizes="120x120" href="/img/apple-icon-120x120.png"> |
42 |
| - <link rel="apple-touch-icon" sizes="144x144" href="/img/apple-icon-144x144.png"> |
43 |
| - <link rel="apple-touch-icon" sizes="152x152" href="/img/apple-icon-152x152.png"> |
44 |
| - <link rel="apple-touch-icon" sizes="180x180" href="/img/apple-icon-180x180.png"> |
45 |
| - <link rel="icon" type="image/png" sizes="192x192" href="/img/android-icon-192x192.png"> |
46 |
| - <link rel="icon" type="image/png" sizes="16x16" href="/img/favicon-16x16.png"> |
47 |
| - <link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png"> |
48 |
| - <link rel="icon" type="image/png" sizes="96x96" href="/img/favicon-96x96.png"> |
49 |
| - <link rel="manifest" href="/manifest.json"> |
50 |
| - <link rel="mask-icon" href="/img/safari-pinned-tab.svg" color="#1373ce"> |
51 |
| - <meta name="msapplication-TileColor" content="#ffffff"> |
52 |
| - <meta name="msapplication-TileImage" content="/img/ms-icon-144x144.png"> |
53 |
| - <meta name="theme-color" content="#ffffff"> |
54 |
| - |
55 |
| - <link href='https://fonts.googleapis.com/css?family=Fjalla+One' rel='stylesheet' type='text/css'> |
56 |
| - |
57 |
| - <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> |
58 |
| - <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> |
59 |
| - <!--[if lt IE 9]> |
60 |
| - <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> |
61 |
| - <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> |
62 |
| - <![endif]--> |
63 |
| -</head> |
64 |
| -<body> |
65 |
| - <% flash.each do |message_type, message| %> |
66 |
| - <div class="alert alert-<%= message_type %>"><%= message %></div> |
67 |
| - <% end %> |
68 |
| - <%= yield %> |
69 |
| - <%= scrivito_body_tags if using_scrivito? %> |
70 |
| - <%= render 'shared/footer' %> |
71 |
| -</body> |
72 |
| - |
73 |
| -<div id="fb-root"></div> |
74 |
| -<script>(function(d, s, id) { |
75 |
| - var js, fjs = d.getElementsByTagName(s)[0]; |
76 |
| - if (d.getElementById(id)) return; |
77 |
| - js = d.createElement(s); js.id = id; |
78 |
| - js.src = "//connect.facebook.net/ja_JP/sdk.js#xfbml=1&version=v2.8&appId=805184859580207"; |
79 |
| - fjs.parentNode.insertBefore(js, fjs); |
80 |
| -}(document, 'script', 'facebook-jssdk'));</script> |
81 |
| - |
82 |
| -<script> |
83 |
| - (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
84 |
| - (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |
85 |
| - m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
86 |
| - })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); |
87 |
| - |
88 |
| - ga('create', 'UA-62337761-1', 'auto'); |
89 |
| - ga('send', 'pageview'); |
90 |
| -</script> |
91 |
| - |
92 |
| -</html> |
| 74 | + ga('create', 'UA-62337761-1', 'auto'); |
| 75 | + ga('send', 'pageview'); |
0 commit comments