readme   overview   note   template   config  

NoteIsSite Sample - config


Current Position: HomePage >> config

site_config
category_config
resource_config

Site Config

Sample

 1# Site Config
 2
 3[server]
 4
 5# port for the server to listening. If port is specified, sock MUST be empty string.
 6port = 80
 7
 8# unix socket file for the server to listening. If sock is specified, port MUST be 0.
 9# sock = "/var/run/note_is_site.sock"
10
11[template]
12
13# root directory for html template, can be relative to working directory, or absolute
14template_root = "template/sample"
15
16# directories in template_root to be output staticly
17static_dirs = [ "assets" ]
18
19# files used by template system in template_root
20index_template = "index.template.html"
21category_template = "category.template.html"
22content_template = "content.template.html"
23404 = "404.html"
24500 = "500.html"
25
26[note]
27
28# root directory for notes, can be relative to working directory, or absolute
29note_root = "note/sample"
30
31# category config file
32# a directory will be treated as a note catogory only if there is a cate gory config file in it
33category_config_file = "category.toml"
34
35# pattern of notes filename, only matched files will be public
36# the first capture group is the name of the file and will be the part of the url. if it ends with '.', an ending slash '/' will be added to the url.
37# the second capture group, if exists, will be the display name of the item
38note_file_pattern = "^(?:\\[.*?\\])*(.*)\\.public\\.(?:txt|html|md)$"

Copyright (C) 2024. Powered By Streamlet Studio.