Browse Source

work in progress to add the stream plugin to the website

master
mb@mb 1 year ago
parent
commit
1fe3973d53

+ 3
- 2
pelicanconf.py View File

@@ -27,11 +27,10 @@ AUTHOR_FEED_ATOM = None
27 27
 AUTHOR_FEED_RSS = None
28 28
 
29 29
 DEFAULT_PAGINATION = 25
30
-# DEFAULT_DATE_FORMAT = '%a %d %B %Y'
31 30
 
32 31
 # Uncomment following line if you want document-relative URLs when developing
33 32
 PLUGIN_PATHS = ['./pelican-plugins', './plugins-custom']
34
-PLUGINS = ['dateish', 'extract_toc', 'i18n_subsites', 'summary', 'events-ics','complex_footnotes'] 
33
+PLUGINS = ['dateish', 'extract_toc', 'i18n_subsites', 'summary', 'events-ics','complex_footnotes', 'stream'] 
35 34
 MD_EXTENSIONS = ['codehilite','extra','toc']
36 35
 
37 36
 STATIC_PATHS = ['extra/favicon.ico', 'images', 'pdfs', 'stream']
@@ -63,3 +62,5 @@ PLUGIN_EVENTS = {
63 62
 }
64 63
 
65 64
 DATEISH_PROPERTIES = ['event_start', 'event_end']
65
+
66
+

+ 1
- 1
plugins-custom

@@ -1 +1 @@
1
-Subproject commit d91a9e910bffb850ecb597f5c77241678f197e24
1
+Subproject commit abb64b784e8fda8eb8628c32aa6c50dece37437a

+ 15
- 38
themes/varia/static/css/main.css View File

@@ -1,35 +1,29 @@
1
-@font-face{
2
-	font-family: "cmusans";
3
-	src:url('../fonts/cmunssdc.ttf');
4
-	font-weight: normal;
5
-	font-style: normal;
6
-}
7 1
 @font-face{
8 2
 	font-family: "header";
9
-	src:url('../fonts/CourierCode-Roman.ttf');
3
+	src:url('../fonts/cmunssdc.ttf');
10 4
 	font-weight: normal;
11 5
 	font-style: normal;
12 6
 }
13 7
 @font-face{
14
-	font-family: "brood";
8
+	font-family: "main";
15 9
 	src:url('../fonts/CourierCode-Roman.ttf');
16 10
 	font-weight: normal;
17 11
 	font-style: normal;
18 12
 }
19 13
 @font-face{
20
-	font-family: "brood";
14
+	font-family: "main";
21 15
 	src:url('../fonts/CourierCode-Bold.ttf');
22 16
 	font-weight: bold;
23 17
 	font-style: normal;
24 18
 }
25 19
 @font-face{
26
-	font-family: "brood";
20
+	font-family: "main";
27 21
 	src:url('../fonts/CourierCode-Italic.ttf');
28 22
 	font-weight: normal;
29 23
 	font-style: italic;
30 24
 }
31 25
 @font-face{
32
-	font-family: "brood";
26
+	font-family: "main";
33 27
 	src:url('../fonts/CourierCode-BoldItalic.ttf');
34 28
 	font-weight: bold;
35 29
 	font-style: italic;
@@ -42,7 +36,7 @@ body{
42 36
 	left:0px;
43 37
 	margin:0 auto 5em auto;
44 38
 	padding: 0px 15px;
45
-	font-family: "brood", monospace;
39
+	font-family: "main", monospace;
46 40
 	font-size: 14px;
47 41
 	line-height:1.8;
48 42
 	background-color: rgba(252, 255, 120, .7);
@@ -87,7 +81,6 @@ h1, h2, h3, h4, h5, h6, #header{
87 81
 	}
88 82
 	h2{
89 83
 		font-size: 100%;
90
-		font-family: "header";
91 84
 		font-weight: normal;
92 85
 		text-decoration: underline;
93 86
 	}
@@ -135,7 +128,7 @@ ul li{
135 128
 	}
136 129
 	/* category & translation link */
137 130
 	.post-info{
138
-		font-size: 11px;
131
+		font-size: 12px;
139 132
 		font-style: italic;
140 133
 	}
141 134
 		.post-info sup{
@@ -154,8 +147,8 @@ header {
154 147
 	margin-top:0;
155 148
 	margin-bottom:5em;
156 149
 	padding-bottom:1em;
157
-	font-family: 'header';
158
-	font-size: 12px;
150
+	font-family: 'main';
151
+	font-size: 14px;
159 152
 	line-height: 1.6;
160 153
 }
161 154
 	header img{
@@ -164,27 +157,17 @@ header {
164 157
 		margin: 0;
165 158
 		vertical-align: calc(-2px);
166 159
 	}
160
+	/* custom font size for index */
167 161
 	#content.index header{
168
-		/*font-family: 'header';*/
169
-		/*font-size: 22px;*/
170
-		/*line-height: 1.8;*/
171 162
 	}
172 163
 	header p{
173 164
 		display: inline;
174 165
 	}
175 166
 
176 167
 	#stream{
177
-		/*display: none;*/
178 168
 		display: inline-block;
179 169
 	}
180 170
 		#stream .container{
181
-			/*width: 50px;
182
-			height: 50px;
183
-			-webkit-border-radius: 50px;
184
-			-webkit-background-clip: padding-box;
185
-			-moz-border-radius: 50px;
186
-			-moz-background-clip: padding;
187
-			border-radius: 50px;*/
188 171
 			width: 200px;
189 172
 			height: 200px;
190 173
 			-webkit-border-radius: 200px;
@@ -262,12 +245,13 @@ header {
262 245
 		}
263 246
 		/* title */
264 247
 		.hentry .article-info .entry-title{
248
+			display: block;
265 249
 			width: 100%;
266 250
 			font-family: "header";
267 251
 			font-size: 165%;
268 252
 			font-weight: bold;
269
-			line-height: 1.1;
270
-			letter-spacing: -0.08em;
253
+			line-height: 1.15;
254
+			letter-spacing: -0.01em;
271 255
 			margin:0;
272 256
 		}
273 257
 			.hentry .article-info .entry-title a{
@@ -309,7 +293,7 @@ header {
309 293
 	.entry-content, #page-content{
310 294
 		position: relative;
311 295
 		max-width: 800px;
312
-		margin:-0.5em auto 0 20px;
296
+		margin:-3px auto 0 20px;
313 297
 	}
314 298
 		.entry-content img, #page-content img{
315 299
 			max-height:400px;
@@ -364,11 +348,4 @@ header {
364 348
 
365 349
 .author{
366 350
 	display: none;
367
-}
368
-
369
-/* add a monochrome filter over past events */
370
-/*.featured-image.past-event img{*/
371
-	/*filter:opacity(0.25);*/
372
-/*	filter: url("/images/filter.svg#monochrome");
373
-	-webkit-filter: url("/images/filter.svg#monochrome");*/
374
-/*}*/
351
+}

+ 13
- 8
themes/varia/templates/page.html View File

@@ -1,5 +1,6 @@
1 1
 {% extends "base.html" %}
2 2
 {% block title %}{{ page.title }}{%endblock%}
3
+
3 4
 {% block content %}
4 5
 <section id="content" class="index">
5 6
 	<header id="banner">
@@ -25,12 +26,16 @@
25 26
     <!-- {{ translations.translations_for(page) }} -->
26 27
    </div>
27 28
 
28
-   <!-- stream page -->
29
-    {% if page.slug == 'stream' %}
30
-	    <div id="stream" class="overview">
31
-	    <h1>{{ SITENAME }} stream</h1>
32
-		{% for img in page.fullstream %}
33
-			<div class="container" style="background-image: url(/stream/{{ img }})"></div>
34
-		{% endfor %}
35
-	{% endif%}
29
+	{% for page in pages %}
30
+		{{ page.slug }}
31
+		{% if page.slug == 'stream' %}
32
+			!!!
33
+			{{ page.stream }}
34
+		   	{% for img in page.stream %}
35
+				{{ img }}
36
+				<div class="container" style="background-image: url(/stream/{{ img }})"></div>
37
+			{% endfor %}
38
+		{% endif %}
39
+	{% endfor %}
40
+
36 41
 {% endblock %}

+ 15
- 0
themes/varia/templates/streamsssss.html View File

@@ -0,0 +1,15 @@
1
+<!-- <div>streaming...</div>
2
+
3
+{% for page in pages %}
4
+	{% if page.slug == 'stream' %}
5
+		<div id="stream" class="overview">
6
+		!!!
7
+		{{ page.stream }}
8
+		{% for img in page.stream %}
9
+			{{ img }}
10
+			<div class="container" style="background-image: url(/stream/{{ img }})"></div>
11
+		{% endfor %}
12
+	{% endif %}
13
+{% endfor %}
14
+
15
+ -->

Loading…
Cancel
Save