-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpublishconf.py
More file actions
132 lines (102 loc) · 3.05 KB
/
publishconf.py
File metadata and controls
132 lines (102 loc) · 3.05 KB
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
#!/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 sys
sys.path.append(os.curdir)
from pelicanconf import *
# If your site is available via HTTPS, make sure SITEURL begins with https://
AUTHOR = 'Python Portugal Team'
SITENAME = 'Python Portugal'
SITEURL = 'https://python.pt'
RELATIVE_URLS = False
PATH = 'content'
TIMEZONE = 'Europe/Lisbon'
DEFAULT_LANG = 'pt-br'
# Google Analytics
GOOGLE_ANALYTICS = 'UA-950364-17'
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = 'feeds/all.atom.xml'
CATEGORY_FEED_ATOM = 'feeds/{slug}.atom.xml'
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = ''
AUTHOR_FEED_RSS = ''
DELETE_OUTPUT_DIRECTORY = True
# URL's
PAGE_URL = '{slug}/'
PAGE_SAVE_AS = '{slug}/index.html'
ARTICLE_URL = '{category}/{date:%Y}/{date:%m}/{date:%d}/{slug}/'
ARTICLE_SAVE_AS = '{category}/{date:%Y}/{date:%m}/{date:%d}/{slug}/index.html'
CATEGORY_URL = '{slug}/'
CATEGORY_SAVE_AS = '{slug}/index.html'
TAG_URL = 'tag/{slug}/'
TAG_SAVE_AS = 'tag/{slug}/index.html'
YEAR_ARCHIVE_SAVE_AS = 'arquivo/{date:%Y}/index.html'
MONTH_ARCHIVE_SAVE_AS = 'arquivo/{date:%Y}/{date:%m}/index.html'
DAY_ARCHIVE_SAVE_AS = 'arquivo/{date:%Y}/{date:%m}/{date:%d}/index.html'
AUTHOR_URL = 'author/{slug}.html'
AUTHOR_SAVE_AS = 'author/{slug}.html'
# Blogroll
#LINKS = (('Pelican', 'http://getpelican.com/'),
# ('Python.org', 'http://python.org/'),
# ('Jinja2', 'http://jinja.pocoo.org/'),
# ('You can modify those links in your config file', '#'),)
# Social widget
#SOCIAL = (('You can add links in your config file', '#'),
# ('Another social link', '#'),)
DEFAULT_PAGINATION = 5
LOAD_CONTENT_CACHE = False
THEME = 'theme/python-pt'
# Navbar Links da Home Page
NAVBAR_HOME_LINKS = [
{
'title': 'Recursos',
'href': '#',
'desc': ('Aprenda ...'),
'children': [
{
'title': 'Documentação Oficial',
'href': 'https://docs.python.org',
},
{
'title': 'Formação',
'href': 'formacao',
},
{
'title': 'Livros',
'href': 'livros',
},
{
'title': 'Vídeos',
'href': 'videos',
},
{
'title': 'Tutoriais',
'href': 'tutoriais',
},
]
},
{
'title': 'Eventos',
'href': 'eventos',
'desc': 'Eventos...',
},
]
# Add font-awsome
PLUGINS = [
# ...
'pelican_fontawesome',
# ...
]
# Add static paths
# STATIC_PATHS = ['images', 'extra/robots.txt', 'extra/favicon.ico', 'extra/CNAME']
# EXTRA_PATH_METADATA = {
# 'extra/robots.txt': {'path': 'robots.txt'},
# 'extra/favicon.ico': {'path': 'favicon.ico'},
# 'extra/CNAME': {'path': 'CNAME'},
# }
# Following items are often useful when publishing
#DISQUS_SITENAME = ""
#GOOGLE_ANALYTICS = ""