summaryrefslogtreecommitdiff
path: root/_layouts/global.html
blob: 9f1eb221308409c53a8e6fef4a69dc66bf56db95 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!DOCTYPE html>
<!--[if IE 6]>
<html id="ie6" dir="ltr" lang="en-US">
<![endif]-->
<!--[if IE 7]>
<html id="ie7" dir="ltr" lang="en-US">
<![endif]-->
<!--[if IE 8]>
<html id="ie8" dir="ltr" lang="en-US">
<![endif]-->
<!--[if !(IE 6) | !(IE 7) | !(IE 8)  ]><!-->
<html dir="ltr" lang="en-US">
<!--<![endif]-->
<head>
  <link rel="shortcut icon" href="{{site.url}}favicon.ico" />
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width" />
  <title>
    {% if page.custom_title %} {{page.custom_title}}
    {% else %} {{page.title}} | Apache Spark
    {% endif %}
  </title>

  <link rel="stylesheet" type="text/css" media="all" href="{{site.url}}css/style.css" />
  <link rel="stylesheet" href="{{site.url}}css/pygments-default.css">

  <script type="text/javascript">
  <!-- Google Analytics initialization -->
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-32518208-2']);
  _gaq.push(['_trackPageview']);
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

  <!-- Adds slight delay to links to allow async reporting -->
  function trackOutboundLink(link, category, action) {  
    try { 
      _gaq.push(['_trackEvent', category , action]); 
    } catch(err){}
 
    setTimeout(function() {
      document.location.href = link.href;
    }, 100);
  }
  </script>

  <link rel='canonical' href='{{site.url}}index.html' />

  <style type="text/css">
    #site-title,
    #site-description {
      position: absolute !important;
      clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
      clip: rect(1px, 1px, 1px, 1px);
    }
  </style>
  <style type="text/css" id="custom-background-css">
    body.custom-background { background-color: #f1f1f1; }
  </style>
</head>

<!--body class="page {% if page.sidebar %}two-column right-sidebar{% else %}singular{% endif%}"-->
<body class="{{page.type}}">
<div id="page" class="hfeed">

  {% include navbar.html %}

  <div id="main">
    <div id="primary">
      <div id="content" role="main">
        {% if page.type contains 'archive' %}
          {{ content }}
        {% else %}
          <article class="page type-page status-publish hentry">
            {{ content }}
          </article><!-- #post -->
        {% endif %}
      </div><!-- #content -->
      {% if page.sidebar %}
      <div id="secondary" class="widget-area" role="complementary">
        {{ page.sidebar | markdownify }}
      </div>
      {% endif %}
      {% include footer.html %}
    </div><!-- #primary -->
  </div><!-- #main -->
</div><!-- #page -->


</body>
</html>