-
Notifications
You must be signed in to change notification settings - Fork 0
/
pelicanconf.py
85 lines (64 loc) · 2.08 KB
/
pelicanconf.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
AUTHOR = 'André Peters'
SITENAME = 'debinux.de'
SITEURL = 'https://debinux.de'
SITETITLE = "debinux.de"
SITESUBTITLE = "an admins notepad"
FAVICON = SITEURL + "/images/favicon.png"
SITELOGO = SITEURL + "/images/robot.svg"
PORT = 8000
STATIC_PATHS = ["extra/custom.css", "extra/keys", "images/", "extra/robots.txt"]
EXTRA_PATH_METADATA = {
"extra/custom.css": {"path": "static/custom.css"},
"extra/robots.txt": {"path": "robots.txt"},
"extra/keys/": {"path": "static/keys/"}
}
CUSTOM_CSS = "static/custom.css"
PATH = 'content'
TIMEZONE = 'Europe/Berlin'
# Feed generation is usually not desired when developing
FEED_DOMAIN = SITEURL
FEED_ALL_ATOM = 'feeds/all.atom.xml'
CATEGORY_FEED_ATOM = 'feeds/{slug}.atom.xml'
# Blogroll
LINKS = (
('EHLOcomputer', 'https://github.com/andryyy/ehlocomputer'),
('PGP Public Key', '/static/keys/0x91DFD03726232297.key')
)
DEFAULT_PAGINATION = 10
# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = True
THEME = "themes/flex"
MAIN_MENU = True
MENUITEMS = (
("Archives", "/archives.html"),
("Categories", "/categories.html"),
("Tags", "/tags.html"),
("Impressum / Datenschutz", "/pages/impressum-datenschutz.html#impressum-datenschutz"),
)
BROWSER_COLOR = "#333"
ROBOTS = "index, follow"
COPYRIGHT_YEAR = "2022-"
PLUGINS = ["search", "read_more"]
# Your language.
DEFAULT_LANG = "de_DE"
# Match languages for other configs.
OG_LOCALE = "de_DE"
LOCALE = ("de_DE", "de_DE.utf8")
LINKS_IN_NEW_TAB = True
USE_GOOGLE_FONTS = False
SOCIAL = (
("github", "https://github.com/andryyy"),
)
DIRECT_TEMPLATES = ['index', 'tags', 'categories', 'authors', 'archives', 'search']
GITHUB_CORNER_URL = "https://github.com/andryyy/debinux.de/tree/gh-pages/content"
CC_LICENSE = {
"name": "Creative Commons Attribution-ShareAlike",
"version": "4.0",
"slug": "by-sa"
}
READ_MORE_LINK_FORMAT = '<a class="read-more" href="/{url}">{text}</a>'
SUMMARY_END_SUFFIX = "..."
SUMMARY_MAX_LENGTH = 20
READ_MORE_LINK = '<span>weiterlesen</span>'