|
1 | | -AUTHOR = 'aio-libs' |
2 | | -SITENAME = 'aio-libs' |
| 1 | +SITENAME = "aio-libs" |
3 | 2 | SITEURL = "" |
4 | 3 | SUMMARY_MAX_PARAGRAPHS = 1 |
5 | 4 |
|
6 | | -PATH = "content" |
7 | 5 | ARTICLE_PATHS = ["news"] |
| 6 | +PATH = "content" |
8 | 7 |
|
9 | | -TIMEZONE = 'UTC' |
| 8 | +LOCALE = "en" |
10 | 9 |
|
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}/" |
12 | 21 |
|
13 | 22 | # Feed generation is usually not desired when developing |
14 | 23 | FEED_ALL_ATOM = None |
|
17 | 26 | AUTHOR_FEED_ATOM = None |
18 | 27 | AUTHOR_FEED_RSS = None |
19 | 28 |
|
20 | | -# Blogroll |
| 29 | +# Theme |
| 30 | +#THEME = "theme" |
| 31 | +# TODO: LINKS/SOCIAL |
21 | 32 | LINKS = ( |
22 | 33 | ("Pelican", "https://getpelican.com/"), |
23 | 34 | ("Python.org", "https://www.python.org/"), |
24 | 35 | ("Jinja2", "https://palletsprojects.com/p/jinja/"), |
25 | 36 | ("You can modify those links in your config file", "#"), |
26 | 37 | ) |
27 | | - |
28 | | -# Social widget |
29 | 38 | SOCIAL = ( |
30 | 39 | ("You can add links in your config file", "#"), |
31 | 40 | ("Another social link", "#"), |
32 | 41 | ) |
33 | 42 |
|
34 | 43 | 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 | + |
35 | 50 |
|
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 |
0 commit comments