File: pelicanconf.py

package info (click to toggle)
slm 2.11-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 24,504 kB
  • sloc: python: 15,349; javascript: 5,043; makefile: 184; sh: 182; xml: 57
file content (98 lines) | stat: -rw-r--r-- 2,387 bytes parent folder | download | duplicates (2)
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
AUTHOR = 'SLM'
SITENAME = 'SLM-Aide'
SITETITLE = '..:: SLM : Aide ::..'
# SITESUBTITLE = 'aide contextuelle (clic sur l\'étoile)'
SITEURL = ''

PATH = 'content'

TIMEZONE = 'Europe/Paris'

DEFAULT_LANG = 'fr'

# 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 = (('Pelican', 'https://getpelican.com/'),
#         ('Python.org', 'https://www.python.org/'),
#         ('Jinja2', 'https://palletsprojects.com/p/jinja/'),
#         ('You can modify those links in your config file', '#'),)
LINKS = None

# Social widget
# SOCIAL = (('You can add links in your config file', '#'),
#          ('Another social link', '#'),)
SOCIAL = None

DEFAULT_PAGINATION = 10

# THEME = 'themes/elegant'
THEME = 'themes/genus'

LANDING_PAGE_TITLE = \
    "Manuel de l'utilisateur de SLM, « School Library Management »"


PAGE_PATHS = ['pages']
STATIC_PATHS = ['images', 'data', 'pages']
EXTRA_PATH_METADATA = {
    'images/favicon.png': {'path': 'favicon.png'}
}

READERS = {'html': None}

SLUGIFY_SOURCE = 'basename'

ARTICLE_URL = 'articles/{date:%Y}/{date:%b}/{date:%d}/{slug}/'
ARTICLE_SAVE_AS = 'articles/{date:%Y}/{date:%b}/{date:%d}/{slug}/index.html'
PAGE_URL = 'pages/{slug}/index.html'
PAGE_SAVE_AS = 'pages/{slug}/index.html'

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


PLUGINS = ['i18n_subsites',]

STATIC_TRANSLATIONS = {
    "Summary": "Sommaire",
    "Translations": "Traductions",
}

HIDE_LANG = 'fr'

I18N_SUBSITES = {
    'en-us': {
        'SITENAME': 'SLM-Help',
        'SITETITLE': '..:: SLM : Help ::..',
        'HIDE_LANG': 'fr',
        'STATIC_TRANSLATIONS': {
            "Summary": "Summary",
            "Translations": "Translations",
        },
    },
    'es-es': {
        'SITENAME': 'SLM-Ayuda',
        'SITETITLE': '..:: SLM : Ayuda ::..',
        'HIDE_LANG': 'fr',
        'STATIC_TRANSLATIONS': {
            "Summary": "Sumario",
            "Translations": "Traducciones",
        },
    },
    'fr-fr': {
        'SITENAME': 'SLM-Aide',
        'SITETITLE': '..:: SLM : Aide ::..',
        'HIDE_LANG': 'fr',
        'STATIC_TRANSLATIONS': {
            "Summary": "Sommaire",
            "Translations": "Traductions",
        },
    },
}