aboutsummaryrefslogtreecommitdiff
path: root/config.yaml
blob: b14283eca4c0ede43e0c8b270d6d3e647e5e9083 (plain)
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
---
baseURL:
theme: default
title: A Micro Blog

paginate: 10
summaryLength: 1
enableEmoji: true
buildDrafts: true
languageCode: en-us
enableRobotsTXT: true

author:
  list:
  - canory
  - default
  - nobody
  default:
    footer: canory
    home: canory
    picturegallery: canory
    title: canory
    user: default
    webring: canory
  footer: >
    A Micro Blog

taxonomies:
  tag: tags

menu:
  main:
  - name: Home
    url: /
    identifier: feather/home
    weight: 1
  - name: Tags
    url: /tags/
    identifier: feather/tag
    weight: 2
    icon: home
  - name: History
    url: /archives/messages/
    identifier: tabler/clock
    weight: 3
  - name: Records
    url: /archives/tags/
    identifier: tabler/book-2
    weight: 4
  - name: Authors
    url: /authors/
    identifier: feather/users
    weight: 5
  - name: RSS Feed
    url: /rss.xml
    identifier: feather/rss
    weight: 6
  - name: JSON Feed
    url: /index.json
    identifier: feather/circle
    weight: 7
  - name: Sources
    url: /sources/
    identifier: feather/git-commit
    weight: 8

markup:
  highlight:
    anchorLineNos: true
    codeFences: true
    guessSyntax: true
    lineNos: false
    lineNumbersInTable: false
    noClasses: false
    noHl: false

params:
  site:
    production: false
    refresh:
  webmanifest:
    name: Micro Blog
    shortName: Micro
    themeColor: '#ffffff'
    backgroundColor: '#ffffff'
    display: standalone
    logo: data/media/logo.png
  csp:
    upgrade: false
    referrer: no-referrer
    childsrc: ["'self'"]
    fontsrc: ["'self'"]
    formaction: ["'self'", lite.duckduckgo.com]
    framesrc: ["'self'", imgur.com, www.youtube-nocookie.com, platform.twitter.com,
      en.m.wikipedia.org, odysee.com, docs.google.com]
    imgsrc: ["'self'", http://preview.test, imgs.xkcd.com]
    mediasrc: ["'self'", raw.githubusercontent.com, i.imgur.com]
    objectsrc: ["'none'"]
    prefetchsrc: ["'self'"]
    scriptsrc: ["'self'", s.imgur.com, platform.twitter.com]
    scriptsrcelem: ["'self'", s.imgur.com, platform.twitter.com]
    stylesrc: ["'self'", "'unsafe-inline'", http://preview.test]
    connectsrc: ["'self'"]
  search:
    verification:
      google:
      bing:
      yandex:

mediaTypes:
  application/xslt+xml:
    suffixes:
    - xsl

outputFormats:
  html:
    baseName: index
    mediaType: text/html
  plain:
    baseName: index
    mediaType: text/plain
  json:
    baseName: index
    mediaType: application/json
  rss:
    baseName: rss
    mediaType: application/rss+xml
  xslt:
    baseName: rss
    mediaType: application/xslt+xml
  authors:
    path: authors
    baseName: index
    mediaType: text/html
  history:
    path: archives/messages
    baseName: index
    mediaType: text/html
  records:
    path: archives/tags
    baseName: index
    mediaType: text/html
  sources:
    path: sources
    baseName: index
    mediaType: text/html
  browserconfig:
    baseName: browserconfig
    mediaType: application/xml
  webmanifest:
    baseName: site
    mediaType: application/manifest+json

outputs:
  home:
  - html
  - rss
  - xslt
  - json
  - authors
  - sources
  - browserconfig
  - history
  - records
  - webmanifest
  section:
  - html
  - rss
  taxonomy:
  - html
  - rss
  term:
  - html
  - rss
  page:
  - html
  - plain

caches:
  assets:
    dir: :resourceDir/_gen
    maxAge: -1
  images:
    dir: :resourceDir/_gen
    maxAge: -1
  getcsv:
    dir: :resourceDir/caches
    maxAge: 12h
  getjson:
    dir: :resourceDir/caches
    maxAge: 12h
  getresource:
    dir: :resourceDir/caches
    maxAge: 12h
  modules:
    dir: :resourceDir/caches
    maxAge: -1

module:
  mounts:
  - source: content
    target: content
  - source: static
    target: static
  - source: layouts
    target: layouts
  - source: data
    target: data
  - source: assets
    target: assets
  - source: i18n
    target: i18n
  - source: archetypes
    target: archetypes

  - source: content
    target: static/data/generates/content
  - source: themes/default/layouts
    target: static/sources/files
  - source: data
    target: static/data
  - source: public/data/generates/content
    target: content
  - source: public/data/generates/authors
    target: data/authors
  - source: public
    target: assets/public