-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpelicanconf.py
More file actions
114 lines (91 loc) · 2.7 KB
/
pelicanconf.py
File metadata and controls
114 lines (91 loc) · 2.7 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
#!/usr/bin/env python
from pendulum import today
AUTHOR = "ujuc"
SITENAME = "잘 밤에 쓸데없는 생각하기"
SITESUBTITLE = "Anythink, Everythink!"
SITEURL = "https://ujuc.github.io"
START_YEAR = 2012
END_YEAR = today(tz="Asia/Seoul").year
USER_LOGO_URL = "img/logo.jpg"
PATH = "content"
TIMEZONE = "Asia/Seoul"
DEFAULT_LANG = "ko"
DEFAULT_DATE_FORMAT = "%y. %m. %d."
LOAD_CONTENT_CACHE = False
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
CATEGORY_FEED_RSS = None
TRANSLATION_FEED_ATOM = None
TRANSLATION_FEED_RSS = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
ARTICLE_PATHS = ["blog"]
ARTICLE_URL = "{date:%Y}/{date:%m}/{date:%d}/{slug}/"
ARTICLE_SAVE_AS = "{date:%Y}/{date:%m}/{date:%d}/{slug}/index.html"
PAGE_PATHS = ["pages"]
PAGE_URL = "{category}/{slug}/"
PAGE_SAVE_AS = "{category}/{slug}/index.html"
# Pages template
DIRECT_TEMPLATES = ["index", "tags", "categories", "archives", "pages"]
PAGES_SAVE_AS = "pages.html"
MENU = (
("Blog", "/", "inbox"),
("Archive", "/archives.html", "archive"),
("Tags", "/tags.html", "tags"),
("Categories", "/categories.html", "folder-open"),
)
PAGE_MENU = (
# ("Pages", "/pages.html", "newspaper"),
(
"TIL",
"https://github.com/ujuc/til",
"pen-to-square",
),
)
SOCIAL = (
("Github", "https://github.com/ujuc", "github"),
("X", "https://x.com/ujuc", "x-twitter"),
)
LINKS = ()
DEFAULT_PAGINATION = 5
STATIC_PATHS = ["img", "misc"]
DISPLAY_PAGES_ON_MENU = True
# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = True
THEME = "clean/"
AUTHORS = {}
# Code
PYGMENTS_RST_OPTIONS = {"linenos": "table"}
# markdwon toc
MARKDOWN = {
"extension_configs": {
"markdown.extensions.extra": {},
"markdown.extensions.abbr": {},
"markdown.extensions.attr_list": {},
"markdown.extensions.def_list": {},
"markdown.extensions.fenced_code": {},
"markdown.extensions.footnotes": {},
"markdown.extensions.md_in_html": {},
"markdown.extensions.tables": {},
"markdown.extensions.admonition": {},
"markdown.extensions.codehilite": {"css_class": "highlight"},
"markdown.extensions.meta": {},
"markdown.extensions.nl2br": {},
"markdown.extensions.sane_lists": {},
"markdown.extensions.smarty": {},
"markdown.extensions.toc": {},
"markdown.extensions.wikilinks": {},
"markdown_mermaidjs": {},
},
"output_format": "html5",
"tab_length": 2,
}
# Plugins
PLUGIN_PATHS = []
PLUGINS = ["seo"]
# SEO
SEO_REPORT = False
SEO_ENHANCER = True
SEO_ENHANCER_OPEN_GRAPH = False
SEO_ENHANCER_TWITTER_CARDS = False