Browse Source

work in progress to add the stream plugin to the website

transformations
mb@mb 7 years ago
parent
commit
1fe3973d53
  1. 5
      pelicanconf.py
  2. 2
      plugins-custom
  3. 51
      themes/varia/static/css/main.css
  4. 13
      themes/varia/templates/page.html
  5. 15
      themes/varia/templates/streamsssss.html

5
pelicanconf.py

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

2
plugins-custom

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

51
themes/varia/static/css/main.css

@ -1,35 +1,29 @@
@font-face{
font-family: "cmusans";
src:url('../fonts/cmunssdc.ttf');
font-weight: normal;
font-style: normal;
}
@font-face{ @font-face{
font-family: "header"; font-family: "header";
src:url('../fonts/CourierCode-Roman.ttf'); src:url('../fonts/cmunssdc.ttf');
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
} }
@font-face{ @font-face{
font-family: "brood"; font-family: "main";
src:url('../fonts/CourierCode-Roman.ttf'); src:url('../fonts/CourierCode-Roman.ttf');
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
} }
@font-face{ @font-face{
font-family: "brood"; font-family: "main";
src:url('../fonts/CourierCode-Bold.ttf'); src:url('../fonts/CourierCode-Bold.ttf');
font-weight: bold; font-weight: bold;
font-style: normal; font-style: normal;
} }
@font-face{ @font-face{
font-family: "brood"; font-family: "main";
src:url('../fonts/CourierCode-Italic.ttf'); src:url('../fonts/CourierCode-Italic.ttf');
font-weight: normal; font-weight: normal;
font-style: italic; font-style: italic;
} }
@font-face{ @font-face{
font-family: "brood"; font-family: "main";
src:url('../fonts/CourierCode-BoldItalic.ttf'); src:url('../fonts/CourierCode-BoldItalic.ttf');
font-weight: bold; font-weight: bold;
font-style: italic; font-style: italic;
@ -42,7 +36,7 @@ body{
left:0px; left:0px;
margin:0 auto 5em auto; margin:0 auto 5em auto;
padding: 0px 15px; padding: 0px 15px;
font-family: "brood", monospace; font-family: "main", monospace;
font-size: 14px; font-size: 14px;
line-height:1.8; line-height:1.8;
background-color: rgba(252, 255, 120, .7); background-color: rgba(252, 255, 120, .7);
@ -87,7 +81,6 @@ h1, h2, h3, h4, h5, h6, #header{
} }
h2{ h2{
font-size: 100%; font-size: 100%;
font-family: "header";
font-weight: normal; font-weight: normal;
text-decoration: underline; text-decoration: underline;
} }
@ -135,7 +128,7 @@ ul li{
} }
/* category & translation link */ /* category & translation link */
.post-info{ .post-info{
font-size: 11px; font-size: 12px;
font-style: italic; font-style: italic;
} }
.post-info sup{ .post-info sup{
@ -154,8 +147,8 @@ header {
margin-top:0; margin-top:0;
margin-bottom:5em; margin-bottom:5em;
padding-bottom:1em; padding-bottom:1em;
font-family: 'header'; font-family: 'main';
font-size: 12px; font-size: 14px;
line-height: 1.6; line-height: 1.6;
} }
header img{ header img{
@ -164,27 +157,17 @@ header {
margin: 0; margin: 0;
vertical-align: calc(-2px); vertical-align: calc(-2px);
} }
/* custom font size for index */
#content.index header{ #content.index header{
/*font-family: 'header';*/
/*font-size: 22px;*/
/*line-height: 1.8;*/
} }
header p{ header p{
display: inline; display: inline;
} }
#stream{ #stream{
/*display: none;*/
display: inline-block; display: inline-block;
} }
#stream .container{ #stream .container{
/*width: 50px;
height: 50px;
-webkit-border-radius: 50px;
-webkit-background-clip: padding-box;
-moz-border-radius: 50px;
-moz-background-clip: padding;
border-radius: 50px;*/
width: 200px; width: 200px;
height: 200px; height: 200px;
-webkit-border-radius: 200px; -webkit-border-radius: 200px;
@ -262,12 +245,13 @@ header {
} }
/* title */ /* title */
.hentry .article-info .entry-title{ .hentry .article-info .entry-title{
display: block;
width: 100%; width: 100%;
font-family: "header"; font-family: "header";
font-size: 165%; font-size: 165%;
font-weight: bold; font-weight: bold;
line-height: 1.1; line-height: 1.15;
letter-spacing: -0.08em; letter-spacing: -0.01em;
margin:0; margin:0;
} }
.hentry .article-info .entry-title a{ .hentry .article-info .entry-title a{
@ -309,7 +293,7 @@ header {
.entry-content, #page-content{ .entry-content, #page-content{
position: relative; position: relative;
max-width: 800px; max-width: 800px;
margin:-0.5em auto 0 20px; margin:-3px auto 0 20px;
} }
.entry-content img, #page-content img{ .entry-content img, #page-content img{
max-height:400px; max-height:400px;
@ -365,10 +349,3 @@ header {
.author{ .author{
display: none; display: none;
} }
/* add a monochrome filter over past events */
/*.featured-image.past-event img{*/
/*filter:opacity(0.25);*/
/* filter: url("/images/filter.svg#monochrome");
-webkit-filter: url("/images/filter.svg#monochrome");*/
/*}*/

13
themes/varia/templates/page.html

@ -1,5 +1,6 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block title %}{{ page.title }}{%endblock%} {% block title %}{{ page.title }}{%endblock%}
{% block content %} {% block content %}
<section id="content" class="index"> <section id="content" class="index">
<header id="banner"> <header id="banner">
@ -25,12 +26,16 @@
<!-- {{ translations.translations_for(page) }} --> <!-- {{ translations.translations_for(page) }} -->
</div> </div>
<!-- stream page --> {% for page in pages %}
{{ page.slug }}
{% if page.slug == 'stream' %} {% if page.slug == 'stream' %}
<div id="stream" class="overview"> !!!
<h1>{{ SITENAME }} stream</h1> {{ page.stream }}
{% for img in page.fullstream %} {% for img in page.stream %}
{{ img }}
<div class="container" style="background-image: url(/stream/{{ img }})"></div> <div class="container" style="background-image: url(/stream/{{ img }})"></div>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% endfor %}
{% endblock %} {% endblock %}

15
themes/varia/templates/streamsssss.html

@ -0,0 +1,15 @@
<!-- <div>streaming...</div>
{% for page in pages %}
{% if page.slug == 'stream' %}
<div id="stream" class="overview">
!!!
{{ page.stream }}
{% for img in page.stream %}
{{ img }}
<div class="container" style="background-image: url(/stream/{{ img }})"></div>
{% endfor %}
{% endif %}
{% endfor %}
-->
Loading…
Cancel
Save