Scott Main | 2124a92 | 2016-10-10 16:06:03 -0700 | [diff] [blame] | 1 | <head> |
| 2 | <title><?cs |
| 3 | if:devsite ?><?cs |
| 4 | if:page.title ?><?cs |
| 5 | var:html_strip(page.title) ?><?cs |
| 6 | else ?>Android Developers<?cs |
| 7 | /if ?><?cs |
| 8 | else ?><?cs |
| 9 | if:page.title ?><?cs |
| 10 | var:page.title ?> | <?cs |
| 11 | /if ?>Android Developers |
| 12 | <?cs /if ?><?cs |
| 13 | # END if/else devsite ?></title><?cs |
| 14 | ####### If building devsite, add some meta data needed for when generating the top nav ######### ?><?cs |
| 15 | if:devsite ?> |
Scott Main | ae14dff | 2017-11-15 11:16:14 -0800 | [diff] [blame^] | 16 | <?cs # if this build set `library.root` then set a django variable to be used by the subsequent |
| 17 | # _reference-head-tags.html file for the book path (or ignored if its no longer needed) ?> |
| 18 | <?cs if:library.root |
| 19 | ?>{% setvar book_path %}/reference/<?cs var:library.root ?>/_book.yaml{% endsetvar %}<?cs |
| 20 | /if ?> |
| 21 | {% include "_shared/_reference-head-tags.html" %} |
| 22 | <meta name="body_class" value="api apilevel-<?cs var:class.since ?><?cs var:package.since ?>" /><?cs |
| 23 | else ?> |
Scott Main | 2124a92 | 2016-10-10 16:06:03 -0700 | [diff] [blame] | 24 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 25 | <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" /> |
| 26 | <meta content="IE=edge" http-equiv="X-UA-Compatible"> |
| 27 | <link rel="shortcut icon" type="image/x-icon" href="<?cs var:toroot ?>favicon.ico" /> |
| 28 | <link rel="alternate" href="http://developer.android.com/<?cs var:path.canonical ?>" hreflang="en" /> |
| 29 | <link rel="alternate" href="http://developer.android.com/intl/es/<?cs var:path.canonical ?>" hreflang="es" /> |
| 30 | <link rel="alternate" href="http://developer.android.com/intl/id/<?cs var:path.canonical ?>" hreflang="id" /> |
| 31 | <link rel="alternate" href="http://developer.android.com/intl/ja/<?cs var:path.canonical ?>" hreflang="ja" /> |
| 32 | <link rel="alternate" href="http://developer.android.com/intl/ko/<?cs var:path.canonical ?>" hreflang="ko" /> |
| 33 | <link rel="alternate" href="http://developer.android.com/intl/pt-br/<?cs var:path.canonical ?>" hreflang="pt-br" /> |
| 34 | <link rel="alternate" href="http://developer.android.com/intl/ru/<?cs var:path.canonical ?>" hreflang="ru" /> |
| 35 | <link rel="alternate" href="http://developer.android.com/intl/vi/<?cs var:path.canonical ?>" hreflang="vi" /> |
| 36 | <link rel="alternate" href="http://developer.android.com/intl/zh-cn/<?cs var:path.canonical ?>" hreflang="zh-cn" /> |
| 37 | <link rel="alternate" href="http://developer.android.com/intl/zh-tw/<?cs var:path.canonical ?>" hreflang="zh-tw" /> |
| 38 | <?cs /if ?><?cs |
| 39 | # END if/else !devsite ?><?cs |
| 40 | |
| 41 | if:page.metaDescription ?> |
| 42 | <meta name="description" content="<?cs var:page.metaDescription ?>"><?cs |
| 43 | /if ?><?cs |
| 44 | if:!devsite ?> |
| 45 | <!-- STYLESHEETS --> |
| 46 | <link rel="stylesheet" |
| 47 | href="<?cs |
| 48 | if:android.whichdoc != 'online' ?>http:<?cs |
| 49 | /if ?>//fonts.googleapis.com/css?family=Roboto+Condensed"> |
| 50 | <link rel="stylesheet" href="<?cs |
| 51 | if:android.whichdoc != 'online' ?>http:<?cs |
| 52 | /if ?>//fonts.googleapis.com/css?family=Roboto:light,regular,medium,thin,italic,mediumitalic,bold" |
| 53 | title="roboto"> |
| 54 | <?cs |
| 55 | if:ndk ?><link rel="stylesheet" href="<?cs |
| 56 | if:android.whichdoc != 'online' ?>http:<?cs |
| 57 | /if ?>//fonts.googleapis.com/css?family=Roboto+Mono:400,500,700" title="roboto-mono" type="text/css"><?cs |
| 58 | /if ?> |
| 59 | <link href="<?cs var:toroot ?>assets/css/default.css?v=16" rel="stylesheet" type="text/css"> |
| 60 | |
| 61 | <!-- JAVASCRIPT --> |
| 62 | <script src="<?cs if:android.whichdoc != 'online' ?>http:<?cs /if ?>//www.google.com/jsapi" type="text/javascript"></script> |
| 63 | <script src="<?cs var:toroot ?>assets/js/android_3p-bundle.js" type="text/javascript"></script><?cs |
| 64 | if:page.customHeadTag ?> |
| 65 | <?cs var:page.customHeadTag ?><?cs |
| 66 | /if ?> |
| 67 | <script type="text/javascript"> |
| 68 | var toRoot = "<?cs var:toroot ?>"; |
| 69 | var metaTags = [<?cs var:meta.tags ?>]; |
| 70 | var devsite = <?cs if:devsite ?>true<?cs else ?>false<?cs /if ?>; |
| 71 | var useUpdatedTemplates = <?cs if:useUpdatedTemplates ?>true<?cs else ?>false<?cs /if ?>; |
| 72 | </script> |
| 73 | <script src="<?cs var:toroot ?>assets/js/docs.js?v=17" type="text/javascript"></script> |
| 74 | |
| 75 | <script> |
| 76 | (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
| 77 | (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |
| 78 | m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
| 79 | })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); |
| 80 | |
| 81 | ga('create', 'UA-5831155-1', 'android.com'); |
| 82 | ga('create', 'UA-49880327-2', 'android.com', {'name': 'universal'}); // New tracker); |
| 83 | ga('send', 'pageview'); |
| 84 | ga('universal.send', 'pageview'); // Send page view for new tracker. |
| 85 | </script><?cs /if ?><?cs |
| 86 | # END if/else !devsite ?> |
Billy Lamberta | 1bce4b7 | 2017-03-10 17:16:35 -0800 | [diff] [blame] | 87 | |
| 88 | <?cs if:css.path ?><?cs |
| 89 | #include custom stylesheet ?> |
| 90 | <link rel="stylesheet" href="<?cs var:css.path ?>"><?cs |
| 91 | /if ?> |
Scott Main | 2124a92 | 2016-10-10 16:06:03 -0700 | [diff] [blame] | 92 | </head> |