-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathblueprints.yaml
413 lines (409 loc) · 19.6 KB
/
blueprints.yaml
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
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
name: Hypertext
version: 2.4.2
description: "Hypertext is a zero JS/CSS theme to create simple, fast websites."
icon: compress
author:
name: Alejo Grigera Sutro
email: [email protected]
url: http://artofthesmart.com
homepage: https://github.com/artofthesmart/hypertext
demo: http://hypertext.artofthesmart.com
keywords: theme, simple, compliance, fast, semantic, 1995
bugs: https://github.com/artofthesmart/hypertext/issues
license: MIT
form:
validation: strict
fields:
tabs:
type: tabs
active: 1
fields:
structure: # STRUCTURAL CONTENT TAB
type: tab
title: Structure
fields:
columns:
type: columns
fields:
column1: # MENU BAR STRUCTURE
type: column
fields:
navStructureTitle:
type: section
title: Navigation Structure
underline: true
structure.add_site_name:
type: toggle
label: Add site name to page titles
help: When enabled, page titles will end with a pipe seperator and the name of the website. When disabled, only your page's title will be used.
default: 1
highlight: 1
options:
1: Enabled
0: Disabled
validate:
type: bool
structure.inline_navbar:
type: toggle
label: Use inline menu bar
help: When enabled, the navigation list at the top of the page will be inlined instead of <ul>. Enable if using no theme.
default: 0
highlight: 0
options:
1: Enabled
0: Disabled
validate:
type: bool
structure.inline_pagination:
type: toggle
label: Use inline pagination
help: When enabled, and you have installed the pagination plugin, pagination will be inlined instead of <ul>.
default: 1
highlight: 1
options:
1: Enabled
0: Disabled
validate:
type: bool
structure.use_decorators:
type: toggle
label: Use decorator text
help: When enabled, spacers are added to inline navigation and brackets around category links. Just decorators.
default: 1
highlight: 1
options:
1: Enabled
0: Disabled
validate:
type: bool
column2: # RENDER STRUCTURE
type: column
fields:
renderStructureTitle:
type: section
title: HTML Structure & Options
underline: true
structure.html_mode:
type: select
classes: fancy
label: HTML Mode
help: HTML5 includes semantic markup like `article` tags to make built-in stylesheets work, while HTML3 is for extreme speed with little-to-no style.
options:
default: HTML 5 (Recommended)
compatibility: HTML 3.2 (Minimal style)
structure.use_favicon:
type: toggle
label: Use favicon
help: When enabled, the site will use the favicon at `user/images/favicon/favicon.png`. See Hypertext homepage for details.
default: 0
highlight: 0
options:
1: Enabled
0: Disabled
validate:
type: bool
favicon:
name: Favicon
type: file
label: Upload Favicon
help: This uploads a new image for browser tabs and search engines to use to represent your website. It MUST be called favicon.png and conform to other favicon requirements. See Hypertext homepage for details.
destination: 'image://favicon'
multiple: false
autofocus: false
accept:
- image/png
structure.show_date:
type: select
classes: fancy
label: Show last updated dates
help: When enabled, the date that the page was published will appear on individual pages.
options:
default: No dates
children: Only on child pages
not-home: Everywhere but the home page
everywhere: Everywhere
style: # STYLE TAB
type: tab
title: Style & Formatting
fields:
columns:
type: columns
fields:
column1: # INCLUDES/EXCLUDES COLUMN
type: column
fields:
includesTitle:
type: section
title: CSS/JS Settings
underline: true
description:
type: display
label: Description
markdown: true
content: These fields offer settings for whether to allow CSS or JS files. Some plugins include these kinds of files, so this is a great way to suppress them. Remember that these are *global* settings, which you can override on a per-page basis. For example, you could install the [syntax highlighting](https://github.com/getgrav/grav-plugin-highlight) plugin, disable CSS/JS here, and then enable it only on pages where you know you are showing code.
style.allowCSS:
type: toggle
classes: fancy
label: Allow Global CSS
help: Determines what CSS is allowed to load. This can be overridden by an individual page.
default: 1
highlight: 0
options:
1: Enabled
0: Disabled
validate:
type: bool
style.allowJS:
type: toggle
classes: fancy
label: Allow Global JS
help: Determines what JS is allowed to load. This can be overridden by an individual page.
default: 1
highlight: 0
options:
1: Enabled
0: Disabled
validate:
type: bool
column2: # SELECT A STYLE COLUMN
type: column
fields:
styleTitle:
type: section
title: Themes & Styles
underline: true
description:
type: display
label: Description
markdown: true
content: Themes here are open-source CSS files available on GitHub and are not my own work. Consider visiting their homepages, contributing, and supporting the authors. Remember that you can test these styles quickly by adding the name or number to a theme URL parameter, e.g. `YourSite.com/?theme=water` or `YourSite.com/?theme=4`.
style.stylesheet:
type: select
classes: fancy
label: Select a Theme
help: Selects from a pre-determined list of simple, fast CSS files.
options:
default: "hypertext (No style)"
air: "#0 air (2KB)"
hypertext++: "#1 hypertext++ (0KB)"
latex: "#2 latex (305KB)"
marx: "#3 marx (11KB)"
milligram: "#4 milligram (9KB)"
modest: "#5 modest (2KB)"
mvp: "#6 mvp (10KB)"
newcss-default: "#7 newcss-default (8KB)"
newcss-night: "#8 newcss-night (7KB)"
newcss-terminal: "#9 newcss-terminal (7KB)"
sakura: "#10 sakura (4KB)"
sakura-dark: "#11 sakura-dark (4KB)"
sakura-dark-solarized: "#12 sakura-dark-solar (4KB)"
sakura-earthly: "#13 sakura-earthly (4KB)"
sakura-ink: "#14 sakura-ink (5KB)"
sakura-pink: "#15 sakura-pink (5KB)"
sakura-radical: "#16 sakura-radical (5KB)"
sakura-vader: "#17 sakura-vader (4KB)"
simple: "#18 simple (9KB)"
stylize: "#19 stylize (4KB)"
tacit: "#20 tacit (7KB)"
tufte: "#21 tufte (12KB)"
water-dark: "#22 water-dark (2KB)"
water-light: "#23 water-light (2KB)"
writ: "#24 writ (2KB)"
yorha: "#25 yorha (8KB)"
style.include_type:
type: select
classes: fancy
label: Include Method
help: Determines whether to prioritize single page loads (inline <style>, good for Hypertext or single-serving sites) or multiple page loads (<link>, good for CSS styles or multi-paged sites).
options:
default: Link (Good for enabling JS/CSS)
inline: Inline (Faster single page loads)
style.customCSS:
type: textarea
label: Custom CSS
help: Add your custom CSS rules here.
placeholder: "e.g. body { font-family: Courier }"
size: large
configurationTitle:
type: section
title: Other Configurations
underline: true
style.configuration:
type: select
size: medium
classes: fancy
label: General site layout
help: Configures the general layout of the website horizontally.
options:
default: No style (align left)
centered: Centered
style.width:
type: select
size: medium
classes: fancy
label: Maximum website width
help: Caps the website's maximum width for viewing on large screens.
options:
default: No style (full width)
640: 640px (very small)
768: 768px (small)
960: 960px (medium)
1024: 1024px (large)
1280: 1280px (very large)
style.image_cropping:
type: toggle
size: medium
label: Auto-resize header images
help: When enabled, this will cropzoom header images of pages to a default size. When *disabled* header images will render with whatever size you upload them at.
default: 0
highlight: 0
options:
1: 'Enabled'
0: 'Disabled'
validate:
type: bool
style.visually_impared_mode:
type: toggle
size: medium
label: Hyperlegible text/lists
help: When enabled, this will replace any stylesheet's default `body paragraph` typeface and use the Atkinson Hyperlegible Font for users with poorer eyesight. *WARNING* the font is ~100kb.
default: 0
highlight: 0
options:
1: 'Enabled'
0: 'Disabled'
validate:
type: bool
menus: # HEADER, FOOTER, LINKS TAB
type: tab
title: Headers, Footers, Links
fields:
columns:
type: columns
fields:
column1: # Headers, Footers
type: column
fields:
headersTitle:
type: section
title: Headers & Icons
underline: true
headersDescription:
type: display
size: long
label: Description
markdown: true
content: "This section lets you change elements near the top of your website like header images and more."
partials.header.show_subtitle:
type: toggle
classes: fancy
label: Show Site Subtitle
help: When enabled, if you have one, your site's Configuration => Site => Metadata => Description will appear under the site title. When disabled, it's not rendered.
default: 1
highlight: 1
options:
1: Enabled
0: Disabled
validate:
type: bool
partials.header.custom_header_image:
type: textarea
label: Title/Header HTML
help: This is raw HTML that will be included in the header instead of the Site Title. Write your own custom site title, use an image, or ads.
placeholder: "Leave this blank to use the site title as the site header. Otherwise, write HTML here. You can include images. Consider using SVG or base64 encoded images to stay fast."
size: large
footersTitle:
type: section
title: Footers
underline: true
footersDescription:
type: display
size: long
label: Description
markdown: true
content: "This section lets you change elements near the bottom of your website like custom disclaimers or content."
partials.footer.custom_footer_type:
type: select
classes: fancy
label: Footer Type
help: The footer can be either markdown or HTML, whichever you need.
size: large
default: markdown
options:
markdown: Markdown
html: HTML
partials.footer.custom_footer:
type: textarea
label: Footer Content
size: large
help: Add your optional, custom footer content here. If you need to remove the Hypertext attribution line, you can do it from the theme code in user/themes/hypertext/templates/partials/page/footer.html.twig.
column2: # Links
type: column
fields:
linksTitle:
type: section
title: Links
underline: true
description:
type: display
size: long
label: Description
markdown: true
content: "This section lets you add custom links to the end of your website's navigation."
menu.menuItems:
name: menuItems
type: list
style: vertical
size: long
label: Additional Menu Items
help: Add manual links to the header of your site.
fields:
.text:
type: text
label: Link Text
placeholder: Use Google
.href:
type: text
label: Full URL
placeholder: http://google.com
.isOffsite:
type: toggle
label: Add offsite CSS class
help: When enabled, this will add a CSS class to this item indicating that it is offsite.
default: 0
options:
1: 'Enabled'
0: 'Disabled'
validate:
type: bool
.isNewWindow:
type: toggle
label: Open in new window
help: When enabled, this will cause the link to open in a new window when clicked.
default: 0
options:
1: 'Enabled'
0: 'Disabled'
validate:
type: bool
.fieldset:
type: fieldset
title: Other Parameters
help: Advanced settings for your new link. This tries to stick to the HTML 3 spec.
text: Advanced or optional features for this link.
icon: cogs
collapsed: true # Initial state of fieldset (see collapsible option)
collapsible: true # Whether one can expand the fieldset or not
fields:
.rel:
type: text
label: rel
placeholder: The forward relationship, also known as the "link type".
.name:
type: text
label: Name
placeholder: This should be a string defining unique name for the scope of the current HTML document.
.title:
type: text
label: Title
placeholder: An advisory title for the linked resource.