aboutsummaryrefslogtreecommitdiffstats
path: root/backdrop/templates/base.html
blob: 92caf9b0eab7200de1f6941cfe4bdcb2ba5b157c (plain)
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
<!doctype html>
<html class="no-js" lang="en">
    <head>
        <link rel="shortcut icon" href="{{ FAVICON|replace('{filename}',SITEURL)|replace('|filename|',SITEURL) }}" />

        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <meta name="author" content="{{AUTHOR}}" />
        <title>{% block title %}{{ SITENAME }}{% endblock title %}</title>
        
        {% block description %}
        <meta name="description" content="{{ SITESUBTITLE }}" />
        <meta name="keywords" content="Blog{% for keyword in BLOGKEYWORDS %} {{ keyword }}{% endfor %} "/>
        {% endblock description %}

        <!--[if !IE 7]>
        <style type="text/css">
            #main-content {display:table;height:100%}
        </style>
        <![endif]-->
        <link rel="stylesheet" href="{{ SITEURL }}/theme/css/backdrop.css" />
        <link rel="stylesheet" href="{{ SITEURL }}/theme/css/pygments.css" />
        <script src="{{ SITEURL }}/theme/js/modernizr.js"></script>

        {% if FEED_ALL_ATOM %}
        <link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Full Atom Feed" />
        {% endif %}
        {% if FEED_ALL_RSS %}
        <link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Full RSS Feed" />
        {% endif %}
        {% if FEED_ATOM %}
        <link href="{{ FEED_DOMAIN }}/{{ FEED_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom Feed" />
        {% endif %}
        {% if FEED_RSS %}
        <link href="{{ FEED_DOMAIN }}/{{ FEED_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" />
        {% endif %}
        {% if CATEGORY_FEED_ATOM and category %}
        <link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_ATOM|format(category.slug) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Categories Atom Feed" />
        {% endif %}
        {% if CATEGORY_FEED_RSS and category %}
        <link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_RSS|format(category.slug) }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Categories RSS Feed" />
        {% endif %}
        {% if TAG_FEED_ATOM and tag %}
        <link href="{{ FEED_DOMAIN }}/{{ TAG_FEED_ATOM|format(tag.slug) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Tags Atom Feed" />
        {% endif %}
        {% if TAG_FEED_RSS and tag %}
        <link href="{{ FEED_DOMAIN }}/{{ TAG_FEED_RSS|format(tag.slug) }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Tags RSS Feed" />
        {% endif %}

        {% if DISQUS_SITENAME %}
        <script type="text/javascript">
            var disqus_shortname = '{{ DISQUS_SITENAME }}'; 

            (function () {
                var s = document.createElement('script'); s.async = true;
                s.type = 'text/javascript';
                s.src = '//' + disqus_shortname + '.disqus.com/count.js';
                (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
            }());
        </script>
        {% endif %}
    </head>
      

    <body>
        <div class="master-row">

            <div class="content-pane main-content">
                <nav class="top-bar" data-topbar role="navigation">
                    <ul class="title-area">
                        <li class="name"><!-- Leave this empty --></li>
                        <li class="toggle-topbar menu-icon"><a href="#"><span></span></a></li>
                    </ul>
                    <section class="top-bar-section">
                        <ul class="left">
                        {% for p in pages %}
                            <li{% if p == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li>
                        {% endfor %}
                        </ul>
                        <ul class="right">
                        {% for cat, null in categories %}
                            <li{% if cat == category %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
                        {% endfor %}
                        </ul>
                    </section>
                </nav>

                <div class="row title-bar">
                    <div class="small-12 columns">
                        <h1><a href="{{ SITEURL }}">{{ SITENAME }}</a></h1><h2> <small>{{ SITESUBTITLE }}</small></h2>
                        <hr>
                    </div>
                </div>
            
                <div id="contents">
                {% block content %}
                    <div class="row">
                    </div>
                {% endblock content %}
                </div>

                <footer class="show-for-large-up">
                    {% include 'footer.html' %}
                </footer>
            </div>
            
            <div class="image-pane main-content" style="background: url('{{ BACKDROP_IMAGE|replace('{filename}',SITEURL)|replace('|filename|',SITEURL) }}'); background-size:cover; background-position: right;">
                <div class="row">
                    <div class="small-12 medium-4 large-12 columns">
                    {% if SITE_DESCRIPTION or EMAIL or SOCIAL %}
                        <h5 class='text-center'>About</h5>
                        <div class="about-me">
                        {% if PROFILE_IMAGE %}
                            <div class="hide-for-medium-only small-3 columns no-buffer">
                                <a class="th" href="{{ PROFILE_IMAGE|replace('{filename}',SITEURL)|replace('|filename|',SITEURL) }}">
                                    <img src="{{ PROFILE_IMAGE|replace('{filename}',SITEURL)|replace('|filename|',SITEURL) }}">
                                </a>
                            </div>
                        {% endif %}
                            <div class="{% if PROFILE_IMAGE %}small-9 medium-12 large-9{% else %}small-12{% endif %} columns text-justify">
                                {{ SITE_DESCRIPTION }}
                            </div>
                        {% if EMAIL or SOCIAL %}
                            <div class="small-12 columns">
                                <ul class="inline-center social-list">
                                {% if EMAIL%}
                                    <li><a href="mailto:{{ EMAIL}}"><i class="fa fa-envelope"></i>&nbsp; Email</a></li>
                                {% endif %}
                                {% for name,link in SOCIAL %}
                                    <li><a href="{{ link }}"><i class="fa fa-{{ name|lower }}"></i>&nbsp; {{ name }}</a></li>
                                {% endfor %}
                                </ul>
                            </div>
                        {% endif %}
                        </div>
                    {% endif %}
                    </div>

                    <div class="small-12 medium-4  large-12 columns link-list">
                    {% if LINKS %}
                        <h5 class='text-center'>Links</h5>
                        <ul class="inline-center">
                        {% for name, url in LINKS %}
                            <li><a href="{{ url }}">{{ name }}</a></li>
                        {% endfor %}
                        </ul>
                    {% endif %}
                    </div>

<!--
                    <div class="small-12 medium-3 large-12 columns">
                    {% if GITHUB_ACTIVITY_FEED %}
                        <table class='transparent'>
                            <thead>
                                <th class='text-center'>GitHub Activity</th>
                            </thead>
                            <tbody>
                            {% for entry in github_activity %}
                                <tr><td>{{ entry[1] }}</td></tr>
                            {% endfor %}
                            </tbody>
                        </table>
                    {% endif %}
                    </div>
-->
               </div>
            </div>
        </div>
        
        
        <div class="row">
            <footer class="hide-for-large-up">
                {% include 'footer.html' %}
            </footer>
        </div>
        
        
        <script src="{{ SITEURL }}/theme/js/jquery.min.js"></script>
        <script src="{{ SITEURL }}/theme/js/foundation.min.js"></script>
        <script src="{{ SITEURL }}/theme/js/app.js"></script>
    </body>
  
</html>