aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap2/templates/base.html
blob: 6aba1f75a408e8fa848d171142e7c1e863005580 (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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>{% block title %}{{ SITENAME }}{%endblock%}</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <!-- Le styles -->
    <link rel="stylesheet" href="{{ SITEURL }}/theme/css/bootstrap.css" type="text/css" />
    <style type="text/css">
      body {
        padding-top: 60px;
        padding-bottom: 40px;
      }
      .sidebar-nav {
        padding: 9px 0;
      }
	
	.tag-1 {
		font-size: 13pt;
	}
	
	.tag-2 {
		font-size: 10pt;
	}
	
	.tag-2 {
		font-size: 8pt;
	}

	.tag-4 {
		font-size: 6pt;
	}
	
    </style>
    <link href="{{ SITEURL }}/theme/css/bootstrap-responsive.css" rel="stylesheet">
	<link href="{{ SITEURL }}/theme/css/font-awesome.css" rel="stylesheet">
	
    <link href="{{ SITEURL }}/theme/css/pygments.css" rel="stylesheet">

    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    <!-- Le fav and touch icons -->
    <link rel="shortcut icon" href="{{ SITEURL }}/theme/images/favicon.ico">
    <link rel="apple-touch-icon" href="{{ SITEURL }}/theme/images/apple-touch-icon.png">
    <link rel="apple-touch-icon" sizes="72x72" href="{{ SITEURL }}/theme/images/apple-touch-icon-72x72.png">
    <link rel="apple-touch-icon" sizes="114x114" href="{{ SITEURL }}/theme/images/apple-touch-icon-114x114.png">

    <link href="{{ SITEURL }}/{{ FEED }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} ATOM Feed" />
    {% if FEED_RSS %}
    <link href="{{ SITEURL }}/{{ FEED_RSS }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" />
    {% endif %}

  </head>

  <body>

    <div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container-fluid">
          <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>
          <a class="brand" href="{{ SITEURL }}/index.html">{{ SITENAME }} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a>
          <div class="nav-collapse">
            <ul class="nav">
              {% for title, link in MENUITEMS %}
                  <li><a href="{{ link }}">{{ title }}</a></li>
              {% endfor %}
              {% if DISPLAY_PAGES_ON_MENU %}
              {% for page in PAGES %}
                <li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
              {% endfor %}
			  <li class="divider-vertical"></li>
              {% endif %}
              {% for cat, null in categories %}
                  <li {% if cat == category %}class="active"{% endif %}>
                    <a href="{{ SITEURL }}/category/{{ cat }}.html">
						<i class="icon-folder-open icon-large"></i>{{ cat }}
					</a>
                  </li>
              {% endfor %}
			  
			  <li class="divider-vertical"></li>
			  
			  <li><a href="{{ SITEURL }}/archives.html"><i class="icon-th-list"></i>Archives</a></li>
			  </li>
			  
            </ul>
            <!--<p class="navbar-text pull-right">Logged in as <a href="#">username</a></p>-->
          </div><!--/.nav-collapse -->
        </div>
      </div>
    </div>

    <div class="container-fluid">
      <div class="row">
		<div class="span3 well sidebar-nav" id="sidebar">
            <ul class="nav nav-list">
            {% if LINKS %}
            <li class="nav-header"><h4><i class="icon-external-link"></i>blogroll</h4></li>
            {% for name, link in LINKS %}
                <li><i class="icon-external-link"></i><a href="{{ link }}">{{ name }}</a></li>
            {% endfor %}
            {% endif %}
            {% if SOCIAL %}
            <li class="nav-header"><h4><i class="icon-home icon-large"></i> social</h4></li>
            <li><a href="{{ SITEURL }}/{{ FEED }}" rel="alternate"><i class="icon-bookmark icon-large"></i>atom feed</a></li>
            {% if FEED_RSS %}
            <li><a href="{{ SITEURL }}/{{ FEED_RSS }}" rel="alternate"><i class="icon-bookmark icon-large"></i>rss feed</a></li>
            {% endif %}
            {% for name, link in SOCIAL %}
                <li><a href="{{ link }}"><i class="icon-{{ name }}-sign icon-large"></i>{{ name }}</a></li>
            {% endfor %}
            {% endif %}
			
			<li class="nav-header"><h4><i class="icon-folder-close icon-large"></i>Catagories</h4></li>
			{% for cat, null in categories %}
			<li>
			<a href="{{ SITEURL }}/category/{{ cat }}.html">
				<i class="icon-folder-open icon-large"></i>{{ cat }}
			</a>
			</li>
            {% endfor %}
			
			<li class="nav-header"><h4><i class="icon-tags icon-large"></i>Tags</h4></li>
			{% for tag in tag_cloud %}
			<li class="tag-{{ tag.1 }}">
				<a href="{{ SITEURL }}/tag/{{ tag.0 }}.html">
					<i class="icon-tag icon-large"></i>{{ tag.0 }}
				</a>
			</li>
			{% endfor %}
			
			{% include 'twitter_profile.html' %}
            </ul>
        </div><!--/.well -->
		
        <div class="span9" id="content">
        {% block content %}
        {% endblock %}
        </div><!--/span-->

      </div><!--/row-->

      <hr>

      <footer>
        <address id="about">
                Proudly powered by <a href="http://pelican.notmyidea.org/">Pelican <i class="icon-external-link"></i></a>,
				which takes great advantage of <a href="http://python.org">Python <i class="icon-external-link"></i></a>.
        </address><!-- /#about -->

        <p>The theme is from <a href="http://twitter.github.com/bootstrap/">Bootstrap from Twitter <i class="icon-external-link"></i></a>, 
		   and <a href="http://fortawesome.github.com/Font-Awesome/">Font-Awesome <i class="icon-external-link"></i></a>, thanks!</p>
      </footer>

    </div><!--/.fluid-container-->


    {% include 'analytics.html' %}
    {% include 'piwik.html' %}
    {% include 'disqus_script.html' %}    


    <!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="{{ SITEURL }}/theme/js/jquery.js"></script>
    <script src="{{ SITEURL }}/theme/js/bootstrap-transition.js"></script>
    <script src="{{ SITEURL }}/theme/js/bootstrap-alert.js"></script>
    <script src="{{ SITEURL }}/theme/js/bootstrap-modal.js"></script>
    <script src="{{ SITEURL }}/theme/js/bootstrap-dropdown.js"></script>
    <script src="{{ SITEURL }}/theme/js/bootstrap-scrollspy.js"></script>
    <script src="{{ SITEURL }}/theme/js/bootstrap-tab.js"></script>
    <script src="{{ SITEURL }}/theme/js/bootstrap-tooltip.js"></script>
    <script src="{{ SITEURL }}/theme/js/bootstrap-popover.js"></script>
    <script src="{{ SITEURL }}/theme/js/bootstrap-button.js"></script>
    <script src="{{ SITEURL }}/theme/js/bootstrap-collapse.js"></script>
    <script src="{{ SITEURL }}/theme/js/bootstrap-carousel.js"></script>
    <script src="{{ SITEURL }}/theme/js/bootstrap-typeahead.js"></script>
	
	<!--<script src="{{ SITEURL }}/theme/js/autosidebar.js"></script>-->
  </body>
</html>