WIP local fonts
[Ultimately_Untrue_Thought.git] / theme / templates / base.html
1 <!doctype html>
2 <html lang="{{ HTML_LANG }}">
3 <head>
4         <meta charset="utf-8"/>
5         <title>{% block title %}{{ SITENAME }}{%endblock%}</title>
6         <meta name="author" content="{{ AUTHOR }}">
7
8         {% block extra_meta %}
9         {% endblock %}
10
11         {% if IS_DEVELOPMENT %}
12
13           {# TODO: local fonts?! #}
14         {% else %}
15           <link rel="top" href="#" /><link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,300italic,400italic,600italic|Source+Code+Pro' rel='stylesheet' type='text/css'></link>
16           <link rel="stylesheet" href="{{ SITEURL }}/theme/css/{{ CSS_FILE }}" type="text/css" />
17         {% endif %}
18
19         {% block scripts %}
20         {% endblock %}
21
22     {% if FEED_ALL_ATOM %}
23     <link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom Feed" />
24     {% endif %}
25     {% if FEED_ALL_RSS %}
26     <link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" />
27     {% endif %}
28 </head>
29
30 <body>
31 {{ FEED_ATOM }}
32     <div class="container">
33
34           <header role="banner">
35             <div class="feeds">
36               {% if FEED_ALL_ATOM %}
37                 <a href="{{ SITEURL }}/{{ FEED_ALL_ATOM }}" rel="alternate"><img src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/feed-32px.png" alt="atom feed"/></a>
38               {% endif %}
39           {% if FEED_ALL_RSS %}
40             <a href="{{ SITEURL }}/{{ FEED_ALL_RSS }}" rel="alternate"><img src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/feed-32px.png" alt="rss feed"/></a>
41           {% endif %}
42             </div>
43             {% if pages %}
44               <nav class="pages">
45                 {% for p in pages %}
46                           <a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a>
47                           {% if not loop.last %}-{% endif %}
48                         {% endfor %}
49               </nav>
50             {% endif %}
51             <a href="{{ SITEURL }}" class="title">☆✦ {{ SITENAME }} ✦☆♀ …</a>
52       </header>
53
54           <div class="wrapper">
55
56                   <div role="main" class="content">
57                     {% block content %}{% endblock %}
58                   </div>
59
60                   <div class="sidebar">
61
62                 <nav>
63                   <h2>Categories</h2>
64                   <ul>
65                     {% for cat, null in categories %}
66                       <li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
67                     {% endfor %}
68                   </ul>
69                 </nav>
70
71                 {% if SOCIAL %}
72                   <aside>
73                   <h2>Social</h2>
74                             <ul class="social">
75                                   {% for name, link in SOCIAL %}
76                                   <li><a href="{{ link }}">{{ name }}</a><i></i></li>
77                                   {% endfor %}
78                             </ul>
79                           </aside>
80                         {% endif %}
81
82                 {% if LINKS %}
83                   <aside>
84                     <h2>Blogroll</h2>
85                     <ul>
86                       {% for name, link in LINKS %}
87                         <li><a href="{{ link }}">{{ name }}</a></li>
88                       {% endfor %}
89                     </ul>
90                   </aside>
91                 {% endif %}
92
93                 <aside class="tag-cloud">
94                   <h2>Tags</h2>
95                   {% for tag in tag_cloud %}
96                     <span class="tag-{{ tag.1 }}">
97                       <a href="{{ SITEURL }}/{{ tag.0.url }}">
98                         {{ tag.0 }}
99                       </a>
100                     </span>
101                   {% endfor %}
102                 </aside>
103
104                   </div>
105
106           </div>
107
108       <footer>
109         <p>
110           ©2016–2018 {{ AUTHOR }} • <a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/80x15.png" /></a> This work is licensed under a <a rel="license" href="https://creativecommons.org/licenses/by/4.0/legalcode">Creative Commons Attribution 4.0 International License</a>.
111         </p>
112         <p>
113           Proudly powered by <a href="https://blog.getpelican.com/">Pelican</a>. Theme modified from <a href="https://github.com/fle/pelican-simplegrey">pelican-simplegrey</a>. <a href="http://unremediatedgender.space/source?p=Ultimately_Untrue_Thought.git">Site source</a>.
114         </p>
115
116       </footer>
117
118         </div>
119
120         {% if GOOGLE_ANALYTICS %}
121           <script>
122            (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
123                (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
124                                     m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
125            })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
126
127            ga('create', '{{ GOOGLE_ANALYTICS }}', 'auto');
128            ga('send', 'pageview');
129           </script>
130         {% endif %}
131
132 </body>
133 </html>