~fabrixxm/sito

ref: podcast sito/pelicanconf.py -rwxr-xr-x 3.1 KiB
a63aa316 — fabrixxm Add enclosure meta to old opencast articles 2 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals

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

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

TIMEZONE = 'Europe/Rome'

DEFAULT_LANG = '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 = 'feeds/all.atom.xml'
CATEGORY_FEED_ATOM = 'feeds/{slug}.atom.xml'
FEED_MAX_ITEMS = 10
PODCAST_FEEDS = {
    'opencast.mp4' : {
        'title' : 'OpenCast Video',
        'category': 'opencast',
        'mime': 'video/mp4',
    },
    'opencast.mp3' : {
        'title' : 'OpenCast Mp3',
        'category': 'opencast',
        'mime': 'audio/mp3',
    },
    'opencast.ogg' : {
        'title' : 'OpenCast Ogg/Vorbis',
        'category': 'opencast',
        'mime': 'audio/ogg',
    },
}

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 Live su PeerTube', 'https://peertube.uno/video-channels/opencastlive/videos'),
    ('Opencast Video Feed', SITEURL+'/feeds/opencast.mp4.atom.xml'),
    ('Opencast Ogg/Vorbis Feed', SITEURL+'/feeds/opencast.ogg.atom.xml'),
    ('Opencast Mp3 Feed', SITEURL+'/feeds/opencast.mp3.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

#
MARKDOWN = {
    'extension_configs': {
        'markdown.extensions.fenced_code':{}, 
        'markdown.extensions.codehilite': {
            'css_class':'highlight', 
            'linenums':False,
        },
        'markdown.extensions.extra':{},
        'plugins.markdown-caption.captions':{},
    },
    'output_format': 'html5',
}

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

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