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