"I Tell Myself" Sunday drafting session 2
[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         <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>
12         <link rel="stylesheet" href="{{ SITEURL }}/theme/css/{{ CSS_FILE }}" type="text/css" />
13
14         {% block scripts %}
15         {% endblock %}
16
17     {% if FEED_ALL_ATOM %}
18     <link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom Feed" />
19     {% endif %}
20     {% if FEED_ALL_RSS %}
21     <link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" />
22     {% endif %}
23 </head>
24
25 <body>
26 {{ FEED_ATOM }}
27     <div class="container">
28
29           <header role="banner">
30             <div class="feeds">
31               {% if FEED_ALL_ATOM %}
32                 <a href="{{ SITEURL }}/{{ FEED_ALL_ATOM }}" rel="alternate"><img src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/feed-32px.png" alt="atom feed"/></a>
33               {% endif %}
34           {% if FEED_ALL_RSS %}
35             <a href="{{ SITEURL }}/{{ FEED_ALL_RSS }}" rel="alternate"><img src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/feed-32px.png" alt="rss feed"/></a>
36           {% endif %}
37             </div>
38             {% if pages %}
39               <nav class="pages">
40                 {% for p in pages %}
41                           <a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a>
42                           {% if not loop.last %}-{% endif %}
43                         {% endfor %}
44               </nav>
45             {% endif %}
46             <a href="{{ SITEURL }}" class="title">☆✦ {{ SITENAME }} ✦☆♀ …</a>
47       </header>
48
49           <div class="wrapper">
50
51                   <div role="main" class="content">
52                     {% block content %}{% endblock %}
53                   </div>
54
55                   <div class="sidebar">
56
57                 <nav>
58                   <h2>Categories</h2>
59                   <ul>
60                     {% for cat, null in categories %}
61                       <li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
62                     {% endfor %}
63                   </ul>
64                 </nav>
65
66                 {% if SOCIAL %}
67                   <aside>
68                   <h2>Social</h2>
69                             <ul class="social">
70                                   {% for name, link in SOCIAL %}
71                                   <li><a href="{{ link }}">{{ name }}</a><i></i></li>
72                                   {% endfor %}
73                             </ul>
74                           </aside>
75                         {% endif %}
76
77                 {% if LINKS %}
78                   <aside>
79                     <h2>Blogroll</h2>
80                     <ul>
81                       {% for name, link in LINKS %}
82                         <li><a href="{{ link }}">{{ name }}</a></li>
83                       {% endfor %}
84                     </ul>
85                   </aside>
86                 {% endif %}
87
88                 <aside class="tag-cloud">
89                   <h2>Tags</h2>
90                   {% for tag in tag_cloud %}
91                     <span class="tag-{{ tag.1 }}">
92                       <a href="{{ SITEURL }}/{{ tag.0.url }}">
93                         {{ tag.0 }}
94                       </a>
95                     </span>
96                   {% endfor %}
97                 </aside>
98
99                   </div>
100
101           </div>
102
103       <footer>
104         <p>
105           ©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>.
106         </p>
107         <p>
108           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>.
109         </p>
110
111       </footer>
112
113         </div>
114
115         {% if GOOGLE_ANALYTICS %}
116           <script>
117            (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
118                (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
119                                     m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
120            })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
121
122            ga('create', '{{ GOOGLE_ANALYTICS }}', 'auto');
123            ga('send', 'pageview');
124           </script>
125         {% endif %}
126
127 </body>
128 </html>