aboutsummaryrefslogtreecommitdiffstats
path: root/syte/templates/base.html
blob: c9e48070fbef9a028dde48239db77cde5f14809f (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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8" />
  <meta name="description" content="{{ SITE_DESCRIPTION }}" />
  <meta name="keywords" content="{{ SITE_KEYWORDS }}" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>{% block title %}{{SITENAME}}{% endblock %}</title>
  <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->

{% assets filters="cssmin", output="css/styles.min.css", "css/styles.css", "css/pygments.css" %}
<<<<<<< HEAD
<link rel="stylesheet" href="{{ SITE_URL }}/{{ ASSET_URL }}">
=======
    <link rel="stylesheet" href="{{ SITE_URL }}/{{ ASSET_URL }}">
>>>>>>> 0515b40255724fe55835295743293d97627bf2c0
{% endassets %}

  <link rel="shortcut icon" type="image/png" href="{{ GRAVATAR }}" />
  {% block head %}{% endblock %}
</head>
<body>
<header class="main-header">
  {% include 'github.html' %}
  <hgroup>
    <div>
      <img src="{{ GRAVATAR }}" style="margin-left: 34px; margin-top: 30px;">
    </div>
    <h1><a href="/" id="home-link">{{ SITENAME }}</a></h1>
    <h2>{{ ABOUT }}</h2>
  </hgroup>
  <nav>
    <ul class="main-nav">
      {% if DISPLAY_HOME_ON_MENU %}
      <li><a href="{{ SITEURL }}/">Home</a></li>
      {% endif %}

      {% if DISPLAY_PAGES_ON_MENU %}
        {% for current_page in PAGES %}
      <li><a href="{{ SITEURL }}/{{ current_page.url }}">{{ current_page.title }}</a></li>
        {% endfor %}
      {% endif %}

      {% for title, url in SOCIAL %}
      <li><a href="{{ url }}" id="{{ title }}-link">{{ title }}</a></li>
      {% endfor %}

      <li><a href="{{ SITEURL }}/{{ FEED_RSS }}" id="feed-link">Feed</a></li>
      <li><a href="mailto:{{ CONTACT }}?subject=Hello" id="contact-link">Contact</a></li>
    </ul>
  </nav>
  <a href="http://pelican.notmyidea.org" class="fork-me">Powered by Pelican.</a>

</header>
{% block main_section %}{% endblock %}
<div class="mobile-nav">
  <span class="nav-btn" id="mobile-nav-btn">
    <span class="nav-btn-bar"></span>
    <span class="nav-btn-bar"></span>
    <span class="nav-btn-bar"></span>
  </span>
  <h3>
    <a href="{{ SITEURL }}/" id="mobile-title">{{ SITEURL }}</a>
  </h3>
</div>

{% assets filters="rjsmin", output="gen/packed.js", "js/libs/jquery-1.7.2.min.js", "js/libs/jquery.url.js", "js/libs/bootstrap-modal.js", "js/libs/handlebars.js", "js/libs/spin.min.js", "js/libs/moment.min.js", "js/common.js", "js/libs/github.js", "js/libs/google+.js", "js/libs/twitter.js", "js/libs/instagram.js" %}
<script src="{{ SITE_URL }}/{{ ASSET_URL }}"></script>
{% endassets %}

<script>
    // Function to get the Maximam value in Array
    Array.max = function( array ) {
        return Math.max.apply( Math, array );
    };

    var heights = [];
    heights.push($('.main-header').height());
    heights.push($('.main-section').height());
    heights.push($(window).height());

    var max_height = Array.max(heights);
    $('.main-header').height(max_height+80);

    $('#mobile-title').text(window.location.hostname);

{% if GITHUB_INTEGRATION_ENABLED %}
    var github_username = '{{ GITHUB_USERNAME }}';
{% endif %}

{% if GPLUS_INTEGRATION_ENABLED %}
    var google_username = '{{ GPLUS_USERNAME }}';
    var google_accesskey = '{{ GPLUS_API_ACCESS }}';
{% endif %}

{% if TWITTER_INTEGRATION_ENABLED %}
    var twitter_username = '{{ TWITTER_USERNAME }}';
{% endif %}

{% if INSTAGRAM_INTEGRATION_ENABLED %}
    var instagram_username = '{{ INSTAGRAM_USERNAME }}';
    var instagram_accesskey = '{{ INSTAGRAM_API_ACCESS }}';
{% endif %}
</script>

{% include "analytics.html" %}
{% include "piwik.html" %}
</body>