-
Notifications
You must be signed in to change notification settings - Fork 0
/
publishconf.py
67 lines (57 loc) · 1.35 KB
/
publishconf.py
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
#!/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 *
# Feed generation
FEED_DOMAIN = SITEURL
FEED_ALL_ATOM = None
FEED_ALL_RSS = 'feeds/all.rss.xml'
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
CATEGORY_FEED_ATOM = None
CATEGORY_FEED_RSS = None
TAG_FEED_ATOM = None
TAG_FEED_RSS = None
TRANSLATION_FEED_ATOM = None
TRANSLATION_FEED_RSS = None
# Feed options
FEED_MAX_ITEMS = 12
RSS_FEED_SUMMARY_ONLY = True
# Para publicar
RELATIVE_URLS = False
LOAD_CONTENT_CACHE = True
DELETE_OUTPUT_DIRECTORY = True
# Paginacion
DEFAULT_PAGINATION = True
DEFAULT_PAGINATION = 6
DEFAULT_ORPHANS = 2
# Path to the folder containing the plugins
PLUGIN_PATHS = ['plugins']
# The plugins you want to be enabled
PLUGINS = ['sitemap']
# Configuration for the "sitemap" plugin
SITEMAP = {
'format': 'xml',
'priorities': {
'articles': 1,
'indexes': 0.5,
'pages': 0.5,
},
'changefreqs': {
'articles': 'daily',
'indexes': 'hourly',
'pages': 'daily'
},
'exclude': [
'archives.html',
'tags.html',
'categories.html',
'author/']
}
# Usar dependencias en Internet
USE_REMOTE_SERVICES = True