-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.example.ini
152 lines (118 loc) · 4.01 KB
/
config.example.ini
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
[Weblog]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Weblog Configuration File ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; This configuration file is used to set up various aspects of Weblog,
; a plain text-based blogging engine. Modify and rename this file to config.ini
; and place it in the root directory of your Weblog installation.
;;;;;;;;;;;;;;;;;;;;;
; General Settings ;
;;;;;;;;;;;;;;;;;;;;;
; The full name of the blog author.
; Default Value: None
author_name = ""
; A short description or bio of the author or the blog.
; Default Value: None
about_text = ""
; Alternative about text, useful for mobile or different contexts.
; Default Value: None
about_text_alt = ""
; Email used for contact and in the footer for copyright information.
; Default Value: None
author_email = ""
; The city or country of the author.
; Default Value: None
author_location = ""
; The domain where your blog is hosted.
; Default Value: localhost
domain = "localhost"
; Directory path where blog posts are stored.
; Default Value: weblog
weblog_dir = "weblog"
; URL where the source code of the application can be accessed.
; This is required for compliance with GNU AGPLv3.
; Change the URL only if the code has been altered.
; Note: The source_code_url is intentionally left blank
; to ensure attentiveness to configuration details.
; Default Value: https://github.com/coignard/weblog
source_code_url = ""
;;;;;;;;;;;;;;;;;;;;;
; Display Settings ;
;;;;;;;;;;;;;;;;;;;;;
; Maximum line width for content rendering, controls how text is wrapped.
; Default Value: 72
line_width = 72
; Length of the prefix used in formatted text output, used for indenting text content.
; Default Value: 3
prefix_length = 3
; Option to show "Powered by Weblog" in the footer.
; Default Value: On
; Possible Values: On, Off
show_powered_by = On
; Configure how URLs are displayed on the main page.
; Default Value: Off
; Possible Values: Full, Short, Off
show_urls = Off
; Whether to display the category for each post.
; Default Value: On
; Possible Values: On, Off
show_category = On
; Whether to display the date for each post.
; Default Value: On
; Possible Values: On, Off
show_date = On
; Whether to display copyright information in the footer.
; Default Value: On
; Possible Values: On, Off
show_copyright = On
; Whether to show a separator line after "About" section.
; Default Value: Off
; Possible Values: On, Off
show_separator = Off
; Determines if text content should be shortened.
; Default Value: Off
; Possible Values: On, Off
shorten_date = Off
; Determines if text content should be beautified with typographic replacements.
; Default Value: RSS
; Possible Values: Off, All, Content, RSS
beautify = "RSS"
; Whether to hide the selected posts indication.
; Default Value: Off
; Possible Values: On, Off
hide_selected = On
; Whether to capitalize titles.
; Default Value: Off
; Possible Values: On, Off
capitalize_titles = Off
;;;;;;;;;;;;;;;;;;;;;
; Logging Settings ;
;;;;;;;;;;;;;;;;;;;;;
; Determines if logging of requests is enabled.
; Default Value: Off
; Possible Values: On, Off
enable_logging = Off
; Configure the file path where the access log will be stored.
; Default Value: /var/log/weblog/access.log
log_file_path = "/var/log/weblog/access.log"
; List of filter words to exclude from the logs.
; Default Value: None
log_filter_words = ""
; List of filter user agents to exclude from the logs.
; Default Value: None
log_filter_agents = ""
;;;;;;;;;;;;;;;;;;;;;
; URL Rewrites ;
;;;;;;;;;;;;;;;;;;;;;
[Rewrites]
; Map specific requests to different resources.
; Key is the original URL part, value is the new destination (can be internal or external).
; External destinations must start with "http://" or "https://".
; Redirect from a simple URL slug to an external URL.
;example-slug = "http://example.com/"
; Redirect from a dated blog post to its new URL slug.
;2023/08/17 = "lottie"
; Redirect an old category page to a new one.
;old-category-name = "new-category-name"
; Redirect to an internal path within the weblog directory.
;about = "about-the-author"