Skip to content

Commit eca6f89

Browse files
committed
Tweak settings
1 parent f1946cd commit eca6f89

File tree

3 files changed

+27
-16
lines changed

3 files changed

+27
-16
lines changed
File renamed without changes.

pelicanconf.py

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,23 @@
1-
AUTHOR = 'aio-libs'
2-
SITENAME = 'aio-libs'
1+
SITENAME = "aio-libs"
32
SITEURL = ""
43
SUMMARY_MAX_PARAGRAPHS = 1
54

6-
PATH = "content"
75
ARTICLE_PATHS = ["news"]
6+
PATH = "content"
87

9-
TIMEZONE = 'UTC'
8+
LOCALE = "en"
109

11-
DEFAULT_LANG = 'en'
10+
# URL settings
11+
ARTICLE_URL = "news/{date:%Y}/{slug}/"
12+
ARTICLE_SAVE_AS = "news/{date:%Y}/{slug}.html"
13+
AUTHOR_URL = "author/{slug}/"
14+
CATEGORY_URL = "category/{slug}/"
15+
PAGE_URL = "{slug}/"
16+
PAGE_SAVE_AS = "{slug}.html"
17+
SLUGIFY_SOURCE = "basename"
18+
TAG_URL = "tag/{slug}/"
19+
YEAR_ARCHIVE_SAVE_AS = "news/{date:%Y}/index.html"
20+
YEAR_ARCHIVE_URL = "news/{date:%Y}/"
1221

1322
# Feed generation is usually not desired when developing
1423
FEED_ALL_ATOM = None
@@ -17,21 +26,28 @@
1726
AUTHOR_FEED_ATOM = None
1827
AUTHOR_FEED_RSS = None
1928

20-
# Blogroll
29+
# Theme
30+
#THEME = "theme"
31+
# TODO: LINKS/SOCIAL
2132
LINKS = (
2233
("Pelican", "https://getpelican.com/"),
2334
("Python.org", "https://www.python.org/"),
2435
("Jinja2", "https://palletsprojects.com/p/jinja/"),
2536
("You can modify those links in your config file", "#"),
2637
)
27-
28-
# Social widget
2938
SOCIAL = (
3039
("You can add links in your config file", "#"),
3140
("Another social link", "#"),
3241
)
3342

3443
DEFAULT_PAGINATION = 10
44+
PAGINATED_TEMPLATES = {"index": None, "tag": None, "category": None, "author": 5}
45+
PAGINATION_PATTERNS = (
46+
(1, "{url}", "{save_as}"),
47+
(2, "{base_name}/{number}/", "{base_name}/{number}/index.html"),
48+
)
49+
3550

36-
# Uncomment following line if you want document-relative URLs when developing
37-
# RELATIVE_URLS = True
51+
# TODO: Assert date included in all article filenames.
52+
# Test SITEURL vs. FEED_DOMAIN
53+
# https://docs.getpelican.com/en/latest/settings.html#using-pagination-patterns

publishconf.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,13 @@
77
sys.path.append(os.curdir)
88
from pelicanconf import *
99

10-
# If your site is available via HTTPS, make sure SITEURL begins with https://
1110
SITEURL = ""
1211
RELATIVE_URLS = False
1312
TYPOGRIFY = True
1413
TYPOGRIFY_OMIT_FILTERS = ["amp", "caps", "initial_quotes", "widont"]
1514

15+
FEED_ATOM = "feeds/atom.xml"
1616
FEED_ALL_ATOM = "feeds/all.atom.xml"
1717
CATEGORY_FEED_ATOM = "feeds/{slug}.atom.xml"
1818

1919
DELETE_OUTPUT_DIRECTORY = True
20-
21-
# Following items are often useful when publishing
22-
23-
# DISQUS_SITENAME = ""
24-
# GOOGLE_ANALYTICS = ""

0 commit comments

Comments
 (0)