Browse Source

Let the formatter have a run

master
Luke Murphy 4 years ago
parent
commit
a4333afc60
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 112
      pelicanconf.py
  2. 12
      publishconf.py
  3. 959
      themes/varia/static/css/main.css
  4. 46
      themes/varia/static/js/stars.js

112
pelicanconf.py

@ -1,23 +1,18 @@
#!/usr/bin/env python AUTHOR = u"Varia"
# -*- coding: utf-8 -*- # SITENAME = u"Varia"
from __future__ import unicode_literals SITEURL = "https://varia.zone"
AUTHOR = u'Varia' PATH = "content"
SITENAME = u'Varia'
SITEURL = 'https://varia.zone'
PATH = 'content' TIMEZONE = "Europe/Amsterdam"
TIMEZONE = 'Europe/Amsterdam' DEFAULT_LANG = u"nl"
DEFAULT_DATE = "fs"
DEFAULT_LANG = u'nl'
DEFAULT_DATE = 'fs'
USE_FOLDER_AS_CATEGORY = True USE_FOLDER_AS_CATEGORY = True
# Feed generation is usually not desired when developing
FEED_DOMAIN = SITEURL FEED_DOMAIN = SITEURL
FEED_ALL_RSS = 'feeds/all.rss.xml' FEED_ALL_RSS = "feeds/all.rss.xml"
TRANSLATION_FEED_RSS = 'feeds/all-%s.rss.xml' TRANSLATION_FEED_RSS = "feeds/all-%s.rss.xml"
RSS_FEED_SUMMARY_ONLY = False RSS_FEED_SUMMARY_ONLY = False
FEED_ALL_ATOM = None FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None CATEGORY_FEED_ATOM = None
@ -28,75 +23,64 @@ AUTHOR_FEED_RSS = None
DEFAULT_PAGINATION = 100 DEFAULT_PAGINATION = 100
# Uncomment following line if you want document-relative URLs when developing PLUGIN_PATHS = ["./pelican-plugins", "./plugins-custom"]
PLUGIN_PATHS = ['./pelican-plugins', './plugins-custom']
PLUGINS = [ PLUGINS = [
'dateish', "dateish",
'extract_toc', "extract_toc",
'i18n_subsites', "i18n_subsites",
'summary', "summary",
'events-ics', "events-ics",
'complex_footnotes', "complex_footnotes",
# Note(decentral1se): disable for now as breaking site generation "thumbnailer",
# please feel free to re-enable it as needed
# 'stream',
'thumbnailer'
] ]
MARKDOWN = { MARKDOWN = {
'extension_configs': { "extension_configs": {
'markdown.extensions.codehilite': {'css_class': 'highlight'}, "markdown.extensions.codehilite": {"css_class": "highlight"},
'markdown.extensions.extra': {}, "markdown.extensions.extra": {},
'markdown.extensions.meta': {}, "markdown.extensions.meta": {},
'markdown.extensions.toc': { "markdown.extensions.toc": {
'marker': '[TOC]', "marker": "[TOC]",
}, },
}, },
'output_format': 'html5', "output_format": "html5",
} }
STATIC_PATHS = ['extra/favicon.ico', 'images', 'pdfs', 'stream'] STATIC_PATHS = ["extra/favicon.ico", "images", "pdfs", "stream"]
EXTRA_PATH_METADATA = { EXTRA_PATH_METADATA = {
'extra/robots.txt': {'path': 'robots.txt'}, "extra/robots.txt": {"path": "robots.txt"},
'extra/favicon.ico': {'path': 'favicon.ico'}, "extra/favicon.ico": {"path": "favicon.ico"},
'extra/htaccess': {'path': '.htaccess'} "extra/htaccess": {"path": ".htaccess"},
} }
THEME = 'themes/varia' THEME = "themes/varia"
THEME_STATIC_DIR = 'theme/' THEME_STATIC_DIR = "theme/"
I18N_SUBSITES = { I18N_SUBSITES = {
'en': { "en": {
'SITESUBTITLE':u'Centre for Everyday Technology', "SITESUBTITLE": u"Centre for Everyday Technology",
'SITEURL':'varia.zone/en/', "SITEURL": "varia.zone/en/",
'locale':'en_US.UTF-8' "locale": "en_US.UTF-8",
}, },
'nl': { "nl": {
'SITESUBTITLE':u'Centrum voor Alledaagse Technologie', "SITESUBTITLE": u"Centrum voor Alledaagse Technologie",
'SITEURL':'varia.zone/', "SITEURL": "varia.zone/",
'locale':'nl.UTF-8' "locale": "nl.UTF-8",
} },
} }
#Options for plugins
#Our custom events plugin
PLUGIN_EVENTS = { PLUGIN_EVENTS = {
'ics_calendars': ['events.ics', 'curriculum.ics'], "ics_calendars": ["events.ics", "curriculum.ics"],
'default_location' : '', "default_location": "",
'calendar_per_category': False "calendar_per_category": False,
} }
#Dateish plugin settings DATEISH_PROPERTIES = ["event_start", "event_end"]
DATEISH_PROPERTIES = ['event_start', 'event_end']
#Thumbnailer plugin settings IMAGE_PATH = "images"
IMAGE_PATH ="images"
THUMBNAIL_KEEP_NAME = True THUMBNAIL_KEEP_NAME = True
THUMBNAIL_DIR ="images" THUMBNAIL_DIR = "images"
THUMBNAIL_SIZES = {'thumb':'200x?', 'thumb2x':'400x?'} THUMBNAIL_SIZES = {"thumb": "200x?", "thumb2x": "400x?"}
# category url
CATEGORY_URL = '/{slug}.html'
CATEGORY_URL = "/{slug}.html"

12
publishconf.py

@ -1,18 +1,8 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
# This file is only used if you use `make publish` or
# explicitly specify it as your config file.
import os import os
import sys import sys
sys.path.append(os.curdir) sys.path.append(os.curdir)
from pelicanconf import * from pelicanconf import *
RELATIVE_URLS = False RELATIVE_URLS = False
DELETE_OUTPUT_DIRECTORY = True DELETE_OUTPUT_DIRECTORY = True
# Following items are often useful when publishing
#DISQUS_SITENAME = ""
#GOOGLE_ANALYTICS = ""

959
themes/varia/static/css/main.css

File diff suppressed because it is too large

46
themes/varia/static/js/stars.js

@ -1,27 +1,27 @@
// stars.js // stars.js
// Random Stars // Random Stars
var generateStars = function(){ var generateStars = function () {
var $galaxy = $(".galaxy");
var $galaxy = $(".galaxy"); var iterator = 0;
var iterator = 0;
while (iterator <= 100) {
while (iterator <= 100){ var xposition = Math.random();
var xposition = Math.random(); var yposition = Math.random();
var yposition = Math.random(); var star_type = Math.floor(Math.random() * 3 + 1);
var star_type = Math.floor((Math.random() * 3) + 1); var position = {
var position = { x: $galaxy.width() * xposition,
"x" : $galaxy.width() * xposition, y: $galaxy.height() * yposition,
"y" : $galaxy.height() * yposition, };
};
$('<div class="star star-type' + star_type + '"></div>')
$('<div class="star star-type' + star_type + '"></div>').appendTo($galaxy).css({ .appendTo($galaxy)
"top" : position.y, .css({
"left" : position.x top: position.y,
}); left: position.x,
});
iterator++;
} iterator++;
}
}; };
generateStars(); generateStars();

Loading…
Cancel
Save