~fabrixxm/sito

ref: b61b3476b27c1d495e1323ee912e02dc47bb1e68 sito/pelicanconf.py -rwxr-xr-x 2.1 KiB
b61b3476 — fabrixxm post natalizio 2016 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals

AUTHOR = u'Gruppo Linux Como'
SITENAME = u'GL-Como'
SITESUBTITLE = u'Figli orgogliosi del pinguino ;-)'
SITEURL = ''
THEME='themes/glcomo'

PATH = 'content'
OUTPUT = 'output'
PAGE_PATHS = ['pages']
STATIC_PATHS = ['images', 'static']

TIMEZONE = 'Europe/Rome'

DEFAULT_LANG = u'it'

DEFAULT_CATEGORY = 'uncategorized'

DISPLAY_PAGES_ON_MENU = True 	
DISPLAY_CATEGORIES_ON_MENU = False

ARTICLE_URL = '{slug}/'
ARTICLE_SAVE_AS = '{slug}/index.html'
PAGE_URL = '{slug}/'
PAGE_SAVE_AS = '{slug}/index.html'


# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None

# Blogroll
LINKS = (
    ("Alex's Sketching Blog","http://lunarsat.altervista.org/art/"),
    ("Dam's blog","http://dventurin.wordpress.com/"),
    ("Divilinux Lost Blog","http://divilinux.netsons.org/"),
    ("FlaPer87","http://www.flaper87.org"),
    ("genio_del_male","http://genio-del-male.livejournal.com/"),
    ("Hackzine","http://www.hackzine.org/"),
    ("Handicap, subacquea ed altro…","http://handicapesubacquea.wordpress.com/"),
    ("Internet Archive","http://archive.org/"),
    ("Lunarsat Photoblog","http://lunarsat.altervista.org/"),
)


# Social widget
SOCIAL = (
    ('Seguici su Friendica', 'http://social.gl-como.it/~gl-como'),
    ('Segui @glcomo su identi.ca', 'http://identi.ca/glcomo'),
    ('Feed Atom', SITEURL+'/feeds/all.atom.xml'),
    ('Opencast Alpha', SITEURL+'/feeds/opencast.atom.xml'),
    ('I repository del GL-Como', 'http://gl-como.it/gitweb/gitweb.cgi'),
)

DEFAULT_PAGINATION = 10

# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = True

#
MD_EXTENSIONS = ('fenced_code', 'codehilite(css_class=highlight, linenums=False)', 'extra','plugins.markdown-caption.captions',)

# plugins
PLUGINS = ['plugins.thumbnailer', 'plugins.gallery']

# plugins.thumbnailer
IMAGE_PATH = "images"
THUMBNAIL_DIR  = "images/thumbs"
THUMBNAIL_SIZES = { '150x150':  '150x150', }
THUMBNAIL_KEEP_NAME = True
THUMBNAIL_KEEP_TREE = True