This repository has been archived by the owner on Oct 16, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmaze.cfg
110 lines (101 loc) · 3.3 KB
/
maze.cfg
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
[cooked]
source = maze/
source_posts = %(source)s/_post
source_layout = %(source)s/_layout
target = %(source)s/_site
; What file patterns are parsed? Files that do not match these patterns are
; simply copied as-is. Make sure you have a matching reader configured for
; the file extension (see below).
pattern = *.html, *.htm, *.xml
minify = True
; Default character encoding
encoding = utf-8
[post]
; What pattern should a post have? The following regexp groups are required:
; - year
; - month
; - day
; - slug
; - extension
; You may override any of these variables in the header of the post
pattern = (?P<year>\d+)[/-](?P<month>\d+)[/-](?P<day>\d+)[/-](?P<slug>.*)(?P<extension>\.[^.]+)$
; Default template for posts
template = post.html
; Target file name when rendering the post
target = {year:04d}/{month:02d}/{day:02d}/{slug}/index.html
[archive]
; Default templats for archives
template = archive.html
; Archive directories
target_ymd = {year:04d}/{month:02d}/{day:02d}/index.html
target_ym = {year:04d}/{month:02d}/index.html
target_y = {year:04d}/index.html
; Site template variables
; -----------------------
;
; These variables are available in all template contexts provided by Cooked
[site]
title = maze.io
tagline = Python, development, hacking and stuff
href = https://maze.io
author = maze
; Reader for file extensions
; --------------------------
[reader]
default = null
.bb = bbcode
.bbcode = bbcode
.md = markdown
.markdown = markdown
.tt = textile
.textile = textile
.rst = restructuredtext
.txt = restructuredtext
; Filter for file extensions
; --------------------------
;
; These filters are for post-processing, and allow you for example to
; compress/minify CSS and JavaScript. Keep in mind that we are passing
; these commands to Python's format function, so you will have to escape
; curly braces. You can use the following variables:
; {stdin}, {stderr}, {stdout}, {filename}
[filter]
; If we hit an error, ignore the error and continue the output?
ignore_errors = True
; Path to tiny binary
tidy = /usr/bin/tidy
; Path to optipng binary
optipng = /usr/bin/optipng
; Path to yuicompressor binary
yuicompressor = /usr/bin/yuicompressor
; File patterns
*.css = %(yuicompressor)s --type css
;*.html = %(tidy)s -utf8 -quiet --tidy-mark no
*.js = %(yuicompressor)s --type js
*.xml = %(tidy)s -xml -utf8 -quiet
; BBCode formatter defaults
; -------------------------
;
; Defaults passed to the BBCode formatter
[format:bbcode]
escape_html = False
; Markdown formatter defaults
; ---------------------------
;
; Defaults passed to the Markdown formatter, as available from
; http://packages.python.org/Markdown/reference.html#markdown
[format:markdown]
extensions = abbr, codehilite, def_list, footnotes
output_format = html5
; reSructuredText formatter defaults
; ----------------------------------
[formatter:restructuredtext]
initial_header_level = 2
; Textile formatter defaults
; --------------------------
;
; Defaults passed to the Textile formatter
[format:textile]
auto_link = True
head_offset = 1
html_type = html