verso-cms 0.0.0-stage → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +288 -2
- package/bin/verso.js +16 -0
- package/editor/door.js +139 -0
- package/editor/editor.js +1880 -0
- package/editor/elevate.css +2158 -0
- package/editor/ext-attrs.js +87 -0
- package/editor/ext-blocks.js +422 -0
- package/editor/ext-builder.js +819 -0
- package/editor/ext-channels.js +574 -0
- package/editor/ext-components.js +160 -0
- package/editor/ext-history.js +242 -0
- package/editor/ext-palette.js +307 -0
- package/editor/ext-people.js +345 -0
- package/editor/ext-repeaters.js +143 -0
- package/editor/ext-screens.js +94 -0
- package/editor/ext-site-settings.js +318 -0
- package/editor/ext-site-view.js +632 -0
- package/editor/ext-tokens.js +1166 -0
- package/editor/new-page.js +252 -0
- package/editor/rich.js +23 -0
- package/package.json +69 -4
- package/src/blocks.js +269 -0
- package/src/box.js +339 -0
- package/src/build.js +210 -0
- package/src/cli.js +161 -0
- package/src/color.js +137 -0
- package/src/components.js +223 -0
- package/src/elevate.js +74 -0
- package/src/errors.js +46 -0
- package/src/extensions/README.md +70 -0
- package/src/extensions/blocks.js +294 -0
- package/src/extensions/builder.js +734 -0
- package/src/extensions/channels.js +341 -0
- package/src/extensions/components.js +141 -0
- package/src/extensions/history.js +169 -0
- package/src/extensions/palette.js +31 -0
- package/src/extensions/people.js +113 -0
- package/src/extensions/site-settings.js +251 -0
- package/src/extensions/site-view.js +381 -0
- package/src/extensions/tags.js +15 -0
- package/src/extensions/tokens.js +587 -0
- package/src/fonts.js +139 -0
- package/src/git.js +419 -0
- package/src/html-edit.js +942 -0
- package/src/images.js +116 -0
- package/src/people.js +286 -0
- package/src/rich.js +124 -0
- package/src/scaffold.js +185 -0
- package/src/screens.js +65 -0
- package/src/server.js +693 -0
- package/src/site.js +618 -0
- package/src/template.js +915 -0
- package/src/video.js +29 -0
- package/starter/Dockerfile +20 -0
- package/starter/README.md +49 -0
- package/starter/blocks/call-to-action.html +6 -0
- package/starter/blocks/features.html +15 -0
- package/starter/blocks/hero.html +8 -0
- package/starter/blocks/image-and-text.html +8 -0
- package/starter/blocks/latest-posts.html +20 -0
- package/starter/blocks/post-index.html +30 -0
- package/starter/blocks/quote.html +9 -0
- package/starter/blocks/site-footer.html +8 -0
- package/starter/blocks/site-nav.html +8 -0
- package/starter/blocks/tag-list.html +10 -0
- package/starter/blocks/tagged-posts.html +19 -0
- package/starter/blocks/team.html +15 -0
- package/starter/blocks/text.html +4 -0
- package/starter/content/404/page.json +21 -0
- package/starter/content/about/page.json +65 -0
- package/starter/content/journal/designing-for-the-morning-shift/body.html +22 -0
- package/starter/content/journal/designing-for-the-morning-shift/checklist.jpg +0 -0
- package/starter/content/journal/designing-for-the-morning-shift/cover.jpg +0 -0
- package/starter/content/journal/designing-for-the-morning-shift/page.json +17 -0
- package/starter/content/journal/page.json +19 -0
- package/starter/content/journal/the-first-week/body.html +17 -0
- package/starter/content/journal/the-first-week/cover.jpg +0 -0
- package/starter/content/journal/the-first-week/page.json +17 -0
- package/starter/content/journal/the-first-week/wall-of-cards.jpg +0 -0
- package/starter/content/page.json +94 -0
- package/starter/content/site.json +88 -0
- package/starter/content/studio-table.jpg +0 -0
- package/starter/content/topics/page.json +27 -0
- package/starter/dockerignore +5 -0
- package/starter/elevate/config/design.ts +30 -0
- package/starter/elevate/config/elevate.ts +16 -0
- package/starter/elevate/config/syntax.ts +6 -0
- package/starter/elevate/design/site.ts +9 -0
- package/starter/elevate/design/tokens.json +20 -0
- package/starter/elevate/extend/fonts.css +1 -0
- package/starter/gitignore +6 -0
- package/starter/netlify.toml +5 -0
- package/starter/parts/.gitkeep +0 -0
- package/starter/public/favicon.svg +1 -0
- package/starter/templates/page.html +20 -0
- package/starter/templates/page.layout.json +23 -0
- package/starter/templates/post.html +65 -0
- package/starter/verso.defaults.json +33 -0
- package/starter-blank/blocks/site-footer.html +3 -0
- package/starter-blank/blocks/site-nav.html +8 -0
- package/starter-blank/blocks/text.html +4 -0
- package/starter-blank/content/404/page.json +18 -0
- package/starter-blank/content/page.json +18 -0
- package/starter-blank/content/site.json +36 -0
- package/starter-blank/elevate/design/tokens.json +10 -0
- package/starter-blank/templates/page.html +17 -0
- package/starter-blank/verso.defaults.json +26 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fields": {},
|
|
3
|
+
"rich": {},
|
|
4
|
+
"blocks": {
|
|
5
|
+
"header": [
|
|
6
|
+
{
|
|
7
|
+
"id": "b-9187e8",
|
|
8
|
+
"block": "site-nav",
|
|
9
|
+
"fields": {
|
|
10
|
+
"name": "Northlight"
|
|
11
|
+
},
|
|
12
|
+
"blocks": {
|
|
13
|
+
"links": [
|
|
14
|
+
{
|
|
15
|
+
"id": "b-ced4b2",
|
|
16
|
+
"block": "site-nav--links",
|
|
17
|
+
"fields": {
|
|
18
|
+
"label": "Studio",
|
|
19
|
+
"address": "/"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"id": "b-3d3fde",
|
|
24
|
+
"block": "site-nav--links",
|
|
25
|
+
"fields": {
|
|
26
|
+
"label": "Journal",
|
|
27
|
+
"address": "/journal/"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"id": "b-270077",
|
|
32
|
+
"block": "site-nav--links",
|
|
33
|
+
"fields": {
|
|
34
|
+
"label": "Topics",
|
|
35
|
+
"address": "/topics/"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"id": "b-271172",
|
|
40
|
+
"block": "site-nav--links",
|
|
41
|
+
"fields": {
|
|
42
|
+
"label": "About",
|
|
43
|
+
"address": "/about/"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"footer": [
|
|
51
|
+
{
|
|
52
|
+
"id": "b-752d68",
|
|
53
|
+
"block": "site-footer",
|
|
54
|
+
"fields": {
|
|
55
|
+
"note": "© Northlight Studio. Based in Savannah, working everywhere."
|
|
56
|
+
},
|
|
57
|
+
"blocks": {
|
|
58
|
+
"links": [
|
|
59
|
+
{
|
|
60
|
+
"id": "b-127df8",
|
|
61
|
+
"block": "site-footer--links",
|
|
62
|
+
"fields": {
|
|
63
|
+
"label": "Journal",
|
|
64
|
+
"address": "/journal/"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"id": "b-283525",
|
|
69
|
+
"block": "site-footer--links",
|
|
70
|
+
"fields": {
|
|
71
|
+
"label": "About",
|
|
72
|
+
"address": "/about/"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"id": "b-3f2855",
|
|
77
|
+
"block": "site-footer--links",
|
|
78
|
+
"fields": {
|
|
79
|
+
"label": "Made with Verso",
|
|
80
|
+
"address": "https://github.com/DesignInTheBlack/verso"
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"template": "page",
|
|
3
|
+
"title": "Topics",
|
|
4
|
+
"description": "Every topic the journal covers, with the posts about each.",
|
|
5
|
+
"tags-of": "journal",
|
|
6
|
+
"fields": {},
|
|
7
|
+
"blocks": {
|
|
8
|
+
"content": [
|
|
9
|
+
{
|
|
10
|
+
"id": "b-a46431",
|
|
11
|
+
"block": "tagged-posts",
|
|
12
|
+
"fields": {
|
|
13
|
+
"eyebrow": "Topics",
|
|
14
|
+
"heading": "What we write about.",
|
|
15
|
+
"intro": "Posts from the journal, by topic."
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"id": "b-2e1d90",
|
|
20
|
+
"block": "tag-list",
|
|
21
|
+
"fields": {
|
|
22
|
+
"heading": "All topics"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// Design tokens. Elevate's defaults, plus this site's colours, fonts and
|
|
2
|
+
// sizes from design/site.ts, plus tokens added in Verso's Design panel
|
|
3
|
+
// (design/tokens.json), which come last so they win.
|
|
4
|
+
|
|
5
|
+
import { dimensionUtility } from "../core/system/etc/dimension.js";
|
|
6
|
+
import { colors } from "../core/system/design/colors.js";
|
|
7
|
+
import { spacing } from "../core/system/design/spacing.js";
|
|
8
|
+
import { typography } from "../core/system/design/typography.js";
|
|
9
|
+
import { breakpoints } from '../core/system/design/breakpoints.js';
|
|
10
|
+
import { effects } from '../core/system/design/effects.js';
|
|
11
|
+
import { siteColors, siteFonts, siteSizes } from "../design/site.js";
|
|
12
|
+
import tokens from "../design/tokens.json";
|
|
13
|
+
|
|
14
|
+
export const designSystem = {
|
|
15
|
+
ColorToken: { ...colors, ...siteColors, ...tokens.ColorToken },
|
|
16
|
+
// The Design panel keeps the whole set in tokens.json once you change one.
|
|
17
|
+
BreakPointToken: tokens.BreakPointToken ?? breakpoints,
|
|
18
|
+
SpacingToken: { ...spacing, ...dimensionUtility, ...tokens.SpacingToken },
|
|
19
|
+
FontSizeToken: { ...typography.size, ...siteSizes, ...tokens.FontSizeToken },
|
|
20
|
+
FontFamilyToken: { ...typography.family, ...siteFonts, ...tokens.FontFamilyToken },
|
|
21
|
+
LineHeightToken: typography.leading,
|
|
22
|
+
LetterSpacingToken: typography.tracking,
|
|
23
|
+
MeasureToken: typography.measure,
|
|
24
|
+
FontWeightToken: typography.weight,
|
|
25
|
+
ShadowToken: { ...effects.shadows, ...tokens.ShadowToken },
|
|
26
|
+
GradientToken: { ...effects.gradients, ...tokens.GradientToken },
|
|
27
|
+
TextShadowToken: effects.textShadows,
|
|
28
|
+
TransitionToken: effects.transitions,
|
|
29
|
+
PatternToken: effects.backgrounds,
|
|
30
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Elevate settings for a Verso site. Verso renders the pages and asks Elevate
|
|
2
|
+
// for the CSS, so Elevate only needs to know where the templates are.
|
|
3
|
+
|
|
4
|
+
const options = {
|
|
5
|
+
Watch: ['./templates', './parts', './blocks', './public'],
|
|
6
|
+
FileTypes: ['html', 'js'],
|
|
7
|
+
Output: './dist',
|
|
8
|
+
Extend: ['./elevate/extend/fonts.css'],
|
|
9
|
+
ClassRegex: [
|
|
10
|
+
/\bclass\s*=\s*"([^"]*)"/g,
|
|
11
|
+
/\bclass\s*=\s*'([^']*)'/g,
|
|
12
|
+
],
|
|
13
|
+
SafeList: []
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const config = options
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Tokens a developer adds by hand go here; they're added to Elevate's
|
|
2
|
+
// defaults in config/design.ts. This site's own colours, fonts and sizes are
|
|
3
|
+
// in tokens.json, so they can be changed in Verso's Design panel.
|
|
4
|
+
|
|
5
|
+
export const siteColors = {};
|
|
6
|
+
|
|
7
|
+
export const siteFonts = {};
|
|
8
|
+
|
|
9
|
+
export const siteSizes = {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"ColorToken": {
|
|
3
|
+
"paper": "#F6F3EC",
|
|
4
|
+
"paper-2": "#EDE8DD",
|
|
5
|
+
"ink": "#1C1B19",
|
|
6
|
+
"ink-2": "#4A4740",
|
|
7
|
+
"ink-3": "#7A766C",
|
|
8
|
+
"line": "#D9D3C5",
|
|
9
|
+
"accent": "#B8471F",
|
|
10
|
+
"accent-2": "#8F3414"
|
|
11
|
+
},
|
|
12
|
+
"FontFamilyToken": {
|
|
13
|
+
"instrument": "'Instrument Serif', 'Iowan Old Style', Georgia, serif",
|
|
14
|
+
"inter": "'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif"
|
|
15
|
+
},
|
|
16
|
+
"FontSizeToken": {
|
|
17
|
+
"hero": "clamp(3.25rem, 1.5rem + 7vw, 8.5rem)",
|
|
18
|
+
"statement": "clamp(2rem, 1.2rem + 3.2vw, 4rem)"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/* Fonts added in Verso. Each file is in public/fonts/. */
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><rect width="32" height="32" rx="8" fill="#1C1B19"/><circle cx="16" cy="16" r="6" fill="#B8471F"/></svg>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<link rel="icon" href="/favicon.svg">
|
|
7
|
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
8
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
9
|
+
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600&display=swap">
|
|
10
|
+
</head>
|
|
11
|
+
<body class="bg-color:paper text:ink font:inter">
|
|
12
|
+
|
|
13
|
+
<header>{{ site.header:blocks }}</header>
|
|
14
|
+
|
|
15
|
+
<main>{{ content:blocks }}</main>
|
|
16
|
+
|
|
17
|
+
<footer>{{ site.footer:blocks }}</footer>
|
|
18
|
+
|
|
19
|
+
</body>
|
|
20
|
+
</html>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fields": {},
|
|
3
|
+
"blocks": {
|
|
4
|
+
"content": [
|
|
5
|
+
{
|
|
6
|
+
"id": "b-start1",
|
|
7
|
+
"block": "hero",
|
|
8
|
+
"fields": {
|
|
9
|
+
"eyebrow": "",
|
|
10
|
+
"headline": "",
|
|
11
|
+
"intro": ""
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"id": "b-start2",
|
|
16
|
+
"block": "text",
|
|
17
|
+
"fields": {
|
|
18
|
+
"heading": ""
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<link rel="icon" href="/favicon.svg">
|
|
7
|
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
8
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
9
|
+
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600&display=swap">
|
|
10
|
+
</head>
|
|
11
|
+
<body class="bg-color:paper text:ink font:inter">
|
|
12
|
+
|
|
13
|
+
<header>{{ site.header:blocks }}</header>
|
|
14
|
+
|
|
15
|
+
<main class="pd-t:c1 pd-b:c3 /md/ pd-t:c5 pd-b:c5">
|
|
16
|
+
<article>
|
|
17
|
+
<header class="contain max-w:s11 col gap:d6 pd-b:c1 /md/ pd-b:c3">
|
|
18
|
+
<a href="{{ parent.url }}" class="row:y-center gap:d2 w:fit-content font:eyebrow:semibold:widest format:uppercase text:accent @hover:[text:accent-2] transition:fast"><span aria-hidden="true">←</span> {{ parent.label }}</a>
|
|
19
|
+
<h1 class="font:instrument:h1:regular:tight text:ink:none max-w:s9">{{ if:heading }}{{ heading:text }}{{ else }}{{ page.title }}{{ /if }}</h1>
|
|
20
|
+
<div class="row:y-center:wrap gap:d4 font:small text:ink-3">
|
|
21
|
+
<span class="w:d8 h:px bg-color:accent"></span>
|
|
22
|
+
<time datetime="{{ page.date-iso }}">{{ page.date }}</time>
|
|
23
|
+
<ul class="list-style-type:none row:wrap gap:d2">
|
|
24
|
+
{{ each:tags }}
|
|
25
|
+
<li><a href="{{ item.url }}" class="block pd:d3:d1 bd:width-px:solid:line bd:round-c10 font:tiny:medium text:ink-2 @hover:[bd:accent_text:accent] transition:fast">{{ item.title }}</a></li>
|
|
26
|
+
{{ /each }}
|
|
27
|
+
</ul>
|
|
28
|
+
</div>
|
|
29
|
+
</header>
|
|
30
|
+
|
|
31
|
+
{{ if:cover }}
|
|
32
|
+
<figure class="contain max-w:s11 pd-b:c1 /md/ pd-b:c3">
|
|
33
|
+
<img src="{{ cover:image }}" class="block w:full h:auto aspect:landscape fit:cover bd:round-d2 bg-color:paper-2 /lg/ aspect:pano">
|
|
34
|
+
</figure>
|
|
35
|
+
{{ /if }}
|
|
36
|
+
|
|
37
|
+
<div class="contain max-w:s11">
|
|
38
|
+
<div class="max-w:s6 mg-x:auto font:inter:h6 text:ink-2:loose">{{ body:rich:headings:lists:links:images:tables:quotes:callouts:embeds }}</div>
|
|
39
|
+
</div>
|
|
40
|
+
|
|
41
|
+
<div class="col gap:c1 pd-t:c1">{{ sections:blocks }}</div>
|
|
42
|
+
</article>
|
|
43
|
+
|
|
44
|
+
<section class="contain max-w:s11 col gap:d10 mg-t:c3 pd-t:c1 bd-t:width-px:solid:line /md/ mg-t:c5">
|
|
45
|
+
<h2 class="font:instrument:h3:regular:tight text:ink:none">More from {{ parent.label }}</h2>
|
|
46
|
+
<ul class="list-style-type:none grid:cols-1-fr:gap-d10 /md/ grid:cols-2-fr:gap-d8">
|
|
47
|
+
{{ each:siblings:newest:2 }}
|
|
48
|
+
<li>
|
|
49
|
+
<a href="{{ item.url }}" class="col gap:d3 text:ink @hover:[text:accent] transition:fast">
|
|
50
|
+
<time datetime="{{ item.date-iso }}" class="font:eyebrow:semibold:widest format:uppercase text:ink-3">{{ item.date:short }}</time>
|
|
51
|
+
<span class="font:instrument:h4:regular:tight">{{ if:item.heading }}{{ item.heading }}{{ else }}{{ item.title }}{{ /if }}</span>
|
|
52
|
+
<span class="text:ink-2:relaxed">{{ item.description:words-24 }}</span>
|
|
53
|
+
</a>
|
|
54
|
+
</li>
|
|
55
|
+
{{ else }}
|
|
56
|
+
<li class="text:ink-3">This is the first one.</li>
|
|
57
|
+
{{ /each }}
|
|
58
|
+
</ul>
|
|
59
|
+
</section>
|
|
60
|
+
</main>
|
|
61
|
+
|
|
62
|
+
<footer>{{ site.footer:blocks }}</footer>
|
|
63
|
+
|
|
64
|
+
</body>
|
|
65
|
+
</html>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"locale": "en-US",
|
|
3
|
+
"rich": {
|
|
4
|
+
"p": "mg-b:d6",
|
|
5
|
+
"h2": "font:instrument:h3:regular:tight text:ink:hug mg-t:c1 mg-b:d5",
|
|
6
|
+
"h3": "font:inter:h5:semibold text:ink:snug mg-t:d10 mg-b:d4",
|
|
7
|
+
"h4": "font:inter:h6:semibold text:ink:snug mg-t:d8 mg-b:d3",
|
|
8
|
+
"ul": "list-style-type:disc list-style-position:outside pd-l:d6 mg-b:d6",
|
|
9
|
+
"ol": "list-style-type:decimal list-style-position:outside pd-l:d6 mg-b:d6",
|
|
10
|
+
"li": "pd-l:d1 mg-b:d2",
|
|
11
|
+
"a": "text:accent:underline text-decoration-thickness:px @hover:[text:accent-2]",
|
|
12
|
+
"strong": "font:semibold text:ink",
|
|
13
|
+
"em": "font-style:italic",
|
|
14
|
+
"blockquote": "mg-y:d10 pd-l:d8 bd-l:width-d0:solid:accent font:instrument:h4:regular text:ink:snug",
|
|
15
|
+
"aside": "mg-y:d8 pd-t:d6 pd-x:d6 pd-b:d0 bg-color:paper-2 bd:round-d3 font:base text:ink:relaxed",
|
|
16
|
+
"figure": "mg-y:d10",
|
|
17
|
+
"img": "block w:full h:auto bd:round-d2 bg-color:paper-2",
|
|
18
|
+
"iframe": "block w:full h:auto aspect:video bd:width-0 bd:round-d2 bg-color:ink",
|
|
19
|
+
"figcaption": "pd-t:d3 font:small text:ink-3:relaxed",
|
|
20
|
+
"table": "block overflow-x:auto w:full mg-y:d8 border-collapse:collapse font:small /md/ table",
|
|
21
|
+
"tr": "bd-b:width-px:solid:line",
|
|
22
|
+
"th": "pd:d3:d4 text:ink:left font:semibold bd-b:width-px:solid:ink vertical:bottom",
|
|
23
|
+
"td": "pd:d3:d4 text:ink-2:left:snug vertical:top"
|
|
24
|
+
},
|
|
25
|
+
"index": true,
|
|
26
|
+
"channels": {
|
|
27
|
+
"journal": {
|
|
28
|
+
"label": "Journal",
|
|
29
|
+
"template": "post",
|
|
30
|
+
"item": "post"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<nav class="contain max-w:s11 col gap:d3 pd-y:d6 /sm/ row:y-center:x-between" aria-label="Main">
|
|
2
|
+
<a href="/" class="w:fit-content font:h6:semibold text:ink @hover:[text:accent] transition:fast">{{ name:text:required }}</a>
|
|
3
|
+
<ul class="list-style-type:none row:wrap gap:d5 font:small">
|
|
4
|
+
{{ list:links }}
|
|
5
|
+
<li><a href="{{ address:text }}" class="text:ink-2 @hover:[text:ink] @current:[text:ink] transition:fast">{{ label:text }}</a></li>
|
|
6
|
+
{{ /list }}
|
|
7
|
+
</ul>
|
|
8
|
+
</nav>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"template": "page",
|
|
3
|
+
"title": "Page not found",
|
|
4
|
+
"description": "There is no page at this address.",
|
|
5
|
+
"fields": {},
|
|
6
|
+
"blocks": {
|
|
7
|
+
"content": [
|
|
8
|
+
{
|
|
9
|
+
"id": "b-blank2",
|
|
10
|
+
"block": "text",
|
|
11
|
+
"fields": {
|
|
12
|
+
"heading": "Page not found",
|
|
13
|
+
"body": "<p>There's nothing at this address. <a href=\"/\">Go to the home page</a>.</p>"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"template": "page",
|
|
3
|
+
"title": "Home",
|
|
4
|
+
"description": "",
|
|
5
|
+
"fields": {},
|
|
6
|
+
"blocks": {
|
|
7
|
+
"content": [
|
|
8
|
+
{
|
|
9
|
+
"id": "b-blank1",
|
|
10
|
+
"block": "text",
|
|
11
|
+
"fields": {
|
|
12
|
+
"heading": "__SITE__",
|
|
13
|
+
"body": "<p>This page is yours. Click these words to change them. Add blocks from the Blocks button in the bar, or make your own with Build a block. Colours, fonts and screen sizes are under Design.</p>"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fields": {},
|
|
3
|
+
"rich": {},
|
|
4
|
+
"blocks": {
|
|
5
|
+
"header": [
|
|
6
|
+
{
|
|
7
|
+
"id": "b-blank3",
|
|
8
|
+
"block": "site-nav",
|
|
9
|
+
"fields": {
|
|
10
|
+
"name": "__SITE__"
|
|
11
|
+
},
|
|
12
|
+
"blocks": {
|
|
13
|
+
"links": [
|
|
14
|
+
{
|
|
15
|
+
"id": "b-blank4",
|
|
16
|
+
"block": "site-nav--links",
|
|
17
|
+
"fields": {
|
|
18
|
+
"label": "Home",
|
|
19
|
+
"address": "/"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"footer": [
|
|
27
|
+
{
|
|
28
|
+
"id": "b-blank5",
|
|
29
|
+
"block": "site-footer",
|
|
30
|
+
"fields": {
|
|
31
|
+
"note": "\u00a9 __SITE__"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<link rel="icon" href="/favicon.svg">
|
|
7
|
+
</head>
|
|
8
|
+
<body class="bg-color:paper text:ink font:sans">
|
|
9
|
+
|
|
10
|
+
<header>{{ site.header:blocks }}</header>
|
|
11
|
+
|
|
12
|
+
<main>{{ content:blocks }}</main>
|
|
13
|
+
|
|
14
|
+
<footer>{{ site.footer:blocks }}</footer>
|
|
15
|
+
|
|
16
|
+
</body>
|
|
17
|
+
</html>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"locale": "en-US",
|
|
3
|
+
"rich": {
|
|
4
|
+
"p": "mg-b:d5",
|
|
5
|
+
"h2": "font:h3:semibold:tight text:ink:hug mg-t:d12 mg-b:d4",
|
|
6
|
+
"h3": "font:h5:semibold text:ink:snug mg-t:d10 mg-b:d3",
|
|
7
|
+
"h4": "font:h6:semibold text:ink:snug mg-t:d8 mg-b:d2",
|
|
8
|
+
"ul": "list-style-type:disc list-style-position:outside pd-l:d6 mg-b:d5",
|
|
9
|
+
"ol": "list-style-type:decimal list-style-position:outside pd-l:d6 mg-b:d5",
|
|
10
|
+
"li": "pd-l:d1 mg-b:d2",
|
|
11
|
+
"a": "text:accent:underline text-decoration-thickness:px",
|
|
12
|
+
"strong": "font:semibold text:ink",
|
|
13
|
+
"em": "font-style:italic",
|
|
14
|
+
"blockquote": "mg-y:d8 pd-l:d6 bd-l:width-d0:solid:accent text:ink:snug",
|
|
15
|
+
"aside": "mg-y:d8 pd-t:d5 pd-x:d5 pd-b:d0 bg-color:paper-2 bd:round-d2 text:ink:relaxed",
|
|
16
|
+
"figure": "mg-y:d8",
|
|
17
|
+
"img": "block w:full h:auto bd:round-d2 bg-color:paper-2",
|
|
18
|
+
"iframe": "block w:full h:auto aspect:video bd:width-0 bd:round-d2 bg-color:ink",
|
|
19
|
+
"figcaption": "pd-t:d3 font:small text:ink-2:relaxed",
|
|
20
|
+
"table": "block overflow-x:auto w:full mg-y:d8 border-collapse:collapse font:small /md/ table",
|
|
21
|
+
"tr": "bd-b:width-px:solid:line",
|
|
22
|
+
"th": "pd:d3:d4 text:ink:left font:semibold bd-b:width-px:solid:ink vertical:bottom",
|
|
23
|
+
"td": "pd:d3:d4 text:ink-2:left:snug vertical:top"
|
|
24
|
+
},
|
|
25
|
+
"index": true
|
|
26
|
+
}
|