hazo_blog 2.17.0 → 2.18.0
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/CHANGE_LOG.md +11 -0
- package/dist/service/themes.d.ts +6 -5
- package/dist/service/themes.d.ts.map +1 -1
- package/dist/service/themes.js +18 -11
- package/dist/types/index.d.ts +11 -7
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +3 -1
- package/seeds/trades-homepage-seed.json +68 -0
- package/themes/starter-light/assets/screenshot.svg +17 -0
- package/themes/starter-light/assets/style.css +172 -0
- package/themes/starter-light/partials/contact-form.liquid +128 -0
- package/themes/starter-light/partials/footer.liquid +32 -0
- package/themes/starter-light/partials/header.liquid +17 -0
- package/themes/starter-light/partials/pagination.liquid +31 -0
- package/themes/starter-light/partials/post-card.liquid +17 -0
- package/themes/starter-light/partials/styles.liquid +180 -0
- package/themes/starter-light/sections/contact.liquid +16 -0
- package/themes/starter-light/sections/cta.liquid +8 -0
- package/themes/starter-light/sections/faq.liquid +11 -0
- package/themes/starter-light/sections/features.liquid +23 -0
- package/themes/starter-light/sections/hero.liquid +11 -0
- package/themes/starter-light/sections/image_text.liquid +9 -0
- package/themes/starter-light/sections/logos.liquid +14 -0
- package/themes/starter-light/sections/posts_grid.liquid +30 -0
- package/themes/starter-light/sections/quote_form.liquid +18 -0
- package/themes/starter-light/sections/stats.liquid +13 -0
- package/themes/starter-light/sections/testimonials.liquid +14 -0
- package/themes/starter-light/sections/text.liquid +6 -0
- package/themes/starter-light/templates/404.liquid +11 -0
- package/themes/starter-light/templates/about.liquid +15 -0
- package/themes/starter-light/templates/category.liquid +19 -0
- package/themes/starter-light/templates/contact.liquid +17 -0
- package/themes/starter-light/templates/home.liquid +16 -0
- package/themes/starter-light/templates/page.liquid +14 -0
- package/themes/starter-light/templates/post.liquid +22 -0
- package/themes/starter-light/templates/privacy.liquid +10 -0
- package/themes/starter-light/templates/tag.liquid +13 -0
- package/themes/starter-light/templates/terms.liquid +10 -0
- package/themes/starter-light/theme.json +23 -0
- package/themes/trades/assets/screenshot.svg +20 -0
- package/themes/trades/assets/style.css +696 -0
- package/themes/trades/partials/contact-form.liquid +128 -0
- package/themes/trades/partials/footer.liquid +32 -0
- package/themes/trades/partials/header.liquid +24 -0
- package/themes/trades/partials/pagination.liquid +31 -0
- package/themes/trades/partials/post-card.liquid +17 -0
- package/themes/trades/partials/styles.liquid +709 -0
- package/themes/trades/sections/contact.liquid +16 -0
- package/themes/trades/sections/cta.liquid +8 -0
- package/themes/trades/sections/faq.liquid +11 -0
- package/themes/trades/sections/features.liquid +23 -0
- package/themes/trades/sections/hero.liquid +11 -0
- package/themes/trades/sections/image_text.liquid +9 -0
- package/themes/trades/sections/logos.liquid +14 -0
- package/themes/trades/sections/posts_grid.liquid +30 -0
- package/themes/trades/sections/quote_form.liquid +18 -0
- package/themes/trades/sections/stats.liquid +13 -0
- package/themes/trades/sections/testimonials.liquid +14 -0
- package/themes/trades/sections/text.liquid +6 -0
- package/themes/trades/templates/404.liquid +11 -0
- package/themes/trades/templates/about.liquid +15 -0
- package/themes/trades/templates/category.liquid +19 -0
- package/themes/trades/templates/contact.liquid +17 -0
- package/themes/trades/templates/home.liquid +16 -0
- package/themes/trades/templates/page.liquid +14 -0
- package/themes/trades/templates/post.liquid +22 -0
- package/themes/trades/templates/privacy.liquid +10 -0
- package/themes/trades/templates/tag.liquid +13 -0
- package/themes/trades/templates/terms.liquid +10 -0
- package/themes/trades/theme.json +30 -0
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
{% comment %}
|
|
2
|
+
partials/contact-form.liquid — the real <form> ticket 07 asks for,
|
|
3
|
+
wired to ticket 14's POST /api/contact (platform's app/api/contact/route.ts).
|
|
4
|
+
Request body IS EXACTLY: { name, email, message, turnstileToken, page }
|
|
5
|
+
(page optional) — read from that route's own `ContactFormSchema` before
|
|
6
|
+
writing this. Response: { success: true } | { success: false, errors:
|
|
7
|
+
[{ field, message }] }.
|
|
8
|
+
|
|
9
|
+
Submits via fetch()+JSON from an inline <script>, NOT a native HTML form
|
|
10
|
+
POST — the API expects a JSON body (`request.json()`), which a plain
|
|
11
|
+
`<form method="post">` cannot send. This is ordinary CLIENT-SIDE
|
|
12
|
+
(browser) JavaScript shipped as part of the page's OUTPUT — not Liquid
|
|
13
|
+
executing it — so it is no different, trust-boundary-wise, from any
|
|
14
|
+
other inline <script> a real theme ships; it has no access to anything
|
|
15
|
+
the render engine itself didn't already put in this HTML.
|
|
16
|
+
|
|
17
|
+
Turnstile: the widget needs a PUBLIC site key reaching this template.
|
|
18
|
+
hazo_blog/render's RenderContext has no field for it (only a SERVER-side
|
|
19
|
+
`TURNSTILE_SECRET_KEY` env var exists today, read by lib/turnstile.ts —
|
|
20
|
+
never exposed to any render context), so this theme declares its own
|
|
21
|
+
`turnstileSiteKey` theme.json setting as the carrier. `settings` isn't
|
|
22
|
+
threaded into RenderContext yet either (see this package's README
|
|
23
|
+
"Known gaps") — so `{{ settings.turnstileSiteKey }}` below renders empty
|
|
24
|
+
today, same graceful no-op every other forward-compatible reference in
|
|
25
|
+
this theme uses. With no site key, the widget div renders inert (no
|
|
26
|
+
challenge), and the form still submits with an empty `turnstileToken` —
|
|
27
|
+
`/api/contact` fails OPEN in non-production (see lib/turnstile.ts) and
|
|
28
|
+
fails CLOSED in production, exactly as that route's own contract
|
|
29
|
+
describes; nothing in this template needs to special-case either case.
|
|
30
|
+
|
|
31
|
+
`form_id` is passed in by the caller (sections/contact.liquid passes the
|
|
32
|
+
section's own `key`; templates/contact.liquid passes a static id) so two
|
|
33
|
+
contact forms on the same page (e.g. a "contact" section plus the
|
|
34
|
+
dedicated contact page) never collide.
|
|
35
|
+
|
|
36
|
+
No `integrity`/`crossorigin` (SRI) on the Turnstile script below —
|
|
37
|
+
deliberate, not an oversight: Cloudflare's own embedding docs say not to
|
|
38
|
+
pin this URL with a subresource-integrity hash, because its response
|
|
39
|
+
varies server-side (challenge/rotation logic) and a fixed hash would
|
|
40
|
+
break the widget the next time Cloudflare updates it. Same reasoning
|
|
41
|
+
applies to the Google Fonts CSS `<link>` in partials/header.liquid (its
|
|
42
|
+
response varies by request `User-Agent`).
|
|
43
|
+
{% endcomment %}
|
|
44
|
+
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script>
|
|
45
|
+
<form class="contact-form" data-contact-form method="post" action="/api/contact" novalidate>
|
|
46
|
+
<div class="form-field">
|
|
47
|
+
<label for="contact-name-{{ form_id | escape }}">Name</label>
|
|
48
|
+
<input type="text" id="contact-name-{{ form_id | escape }}" name="name" autocomplete="name" required maxlength="200">
|
|
49
|
+
</div>
|
|
50
|
+
<div class="form-field">
|
|
51
|
+
<label for="contact-email-{{ form_id | escape }}">Email</label>
|
|
52
|
+
<input type="email" id="contact-email-{{ form_id | escape }}" name="email" autocomplete="email" required maxlength="254">
|
|
53
|
+
</div>
|
|
54
|
+
<div class="form-field">
|
|
55
|
+
<label for="contact-message-{{ form_id | escape }}">How can we help?</label>
|
|
56
|
+
<textarea id="contact-message-{{ form_id | escape }}" name="message" rows="5" required minlength="10" maxlength="5000"></textarea>
|
|
57
|
+
</div>
|
|
58
|
+
{% if settings.turnstileSiteKey != blank %}
|
|
59
|
+
<div class="cf-turnstile" data-sitekey="{{ settings.turnstileSiteKey | escape }}"></div>
|
|
60
|
+
{% endif %}
|
|
61
|
+
<input type="hidden" name="turnstileToken" value="">
|
|
62
|
+
<button type="submit" class="button button--primary" data-contact-submit>Send message</button>
|
|
63
|
+
<p class="form-status" data-contact-status role="status" aria-live="polite"></p>
|
|
64
|
+
</form>
|
|
65
|
+
<script>
|
|
66
|
+
(function () {
|
|
67
|
+
function turnstileTokenFor(form) {
|
|
68
|
+
var widget = form.querySelector(".cf-turnstile");
|
|
69
|
+
if (widget && window.turnstile && typeof window.turnstile.getResponse === "function") {
|
|
70
|
+
try {
|
|
71
|
+
return window.turnstile.getResponse(widget) || "";
|
|
72
|
+
} catch (e) {
|
|
73
|
+
return "";
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
var hidden = form.querySelector('input[name="turnstileToken"]');
|
|
77
|
+
return hidden ? hidden.value : "";
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
function bindContactForm(form) {
|
|
81
|
+
form.setAttribute("data-bound", "true");
|
|
82
|
+
form.addEventListener("submit", function (event) {
|
|
83
|
+
event.preventDefault();
|
|
84
|
+
var statusEl = form.querySelector("[data-contact-status]");
|
|
85
|
+
var submitBtn = form.querySelector("[data-contact-submit]");
|
|
86
|
+
var payload = {
|
|
87
|
+
name: form.elements.name.value,
|
|
88
|
+
email: form.elements.email.value,
|
|
89
|
+
message: form.elements.message.value,
|
|
90
|
+
turnstileToken: turnstileTokenFor(form),
|
|
91
|
+
page: window.location.href,
|
|
92
|
+
};
|
|
93
|
+
submitBtn.disabled = true;
|
|
94
|
+
statusEl.textContent = "Sending…";
|
|
95
|
+
fetch("/api/contact", {
|
|
96
|
+
method: "POST",
|
|
97
|
+
headers: { "Content-Type": "application/json" },
|
|
98
|
+
body: JSON.stringify(payload),
|
|
99
|
+
})
|
|
100
|
+
.then(function (res) {
|
|
101
|
+
return res.json().then(function (data) {
|
|
102
|
+
return { ok: res.ok, data: data };
|
|
103
|
+
});
|
|
104
|
+
})
|
|
105
|
+
.then(function (result) {
|
|
106
|
+
if (result.data && result.data.success) {
|
|
107
|
+
statusEl.textContent = "Thanks — we'll be in touch soon.";
|
|
108
|
+
form.reset();
|
|
109
|
+
} else {
|
|
110
|
+
var first = result.data && result.data.errors && result.data.errors[0];
|
|
111
|
+
statusEl.textContent = (first && first.message) || "Something went wrong. Please try again.";
|
|
112
|
+
}
|
|
113
|
+
})
|
|
114
|
+
.catch(function () {
|
|
115
|
+
statusEl.textContent = "Something went wrong. Please try again.";
|
|
116
|
+
})
|
|
117
|
+
.finally(function () {
|
|
118
|
+
submitBtn.disabled = false;
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
var forms = document.querySelectorAll('[data-contact-form]:not([data-bound])');
|
|
124
|
+
for (var i = 0; i < forms.length; i++) {
|
|
125
|
+
bindContactForm(forms[i]);
|
|
126
|
+
}
|
|
127
|
+
})();
|
|
128
|
+
</script>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{% comment %}
|
|
2
|
+
partials/footer.liquid — site chrome (see partials/header.liquid's own
|
|
3
|
+
comment on why there's no <head>/<html> here). Social links come from
|
|
4
|
+
`site.social` (ticket 09's site identity, already wired into
|
|
5
|
+
RenderContext today) rather than this theme's own `settings.social*`
|
|
6
|
+
fields — see this package's README "Known gaps" section for why
|
|
7
|
+
theme.json still declares socialFacebook/Instagram/Twitter/Linkedin
|
|
8
|
+
settings per the ticket's own checklist even though `site.social` is the
|
|
9
|
+
field that actually renders right now.
|
|
10
|
+
{% endcomment %}
|
|
11
|
+
<footer class="site-footer">
|
|
12
|
+
<div class="site-footer__inner">
|
|
13
|
+
<div class="site-footer__brand">
|
|
14
|
+
{% assign footer_logo = settings.logo | default: site.logo %}
|
|
15
|
+
{% if footer_logo != blank %}<img class="site-footer__logo" src="{{ footer_logo | escape }}" alt="{{ site.title | escape }}">{% endif %}
|
|
16
|
+
<div>
|
|
17
|
+
<strong>{{ site.title }}</strong>
|
|
18
|
+
{% if site.tagline != blank %}<p class="site-footer__tagline">{{ site.tagline }}</p>{% endif %}
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
<div class="site-footer__nav">{% menu "footer" %}</div>
|
|
22
|
+
{% if site.social %}
|
|
23
|
+
<ul class="site-footer__social">
|
|
24
|
+
{% if site.social.facebook != blank %}<li><a href="{{ site.social.facebook | escape }}">Facebook</a></li>{% endif %}
|
|
25
|
+
{% if site.social.instagram != blank %}<li><a href="{{ site.social.instagram | escape }}">Instagram</a></li>{% endif %}
|
|
26
|
+
{% if site.social.twitter != blank %}<li><a href="{{ site.social.twitter | escape }}">Twitter</a></li>{% endif %}
|
|
27
|
+
{% if site.social.linkedin != blank %}<li><a href="{{ site.social.linkedin | escape }}">LinkedIn</a></li>{% endif %}
|
|
28
|
+
</ul>
|
|
29
|
+
{% endif %}
|
|
30
|
+
<p class="site-footer__copyright">© {{ "now" | date: "%Y" }} {{ site.title }}. All rights reserved.</p>
|
|
31
|
+
</div>
|
|
32
|
+
</footer>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{% comment %}
|
|
2
|
+
partials/header.liquid — see the trades theme's own partials/header.liquid
|
|
3
|
+
for the full "<head> convention"/settings-forward-compat rationale; this
|
|
4
|
+
theme follows the exact same pattern, minus any webfont <link> (system
|
|
5
|
+
fonts only — see assets/style.css's own header comment).
|
|
6
|
+
{% endcomment %}
|
|
7
|
+
{% include "partials/styles" %}
|
|
8
|
+
<header class="site-header">
|
|
9
|
+
<div class="site-header__inner">
|
|
10
|
+
<a class="site-header__brand" href="/">
|
|
11
|
+
{% assign header_logo = settings.logo | default: site.logo %}
|
|
12
|
+
{% if header_logo != blank %}<img class="site-header__logo" src="{{ header_logo | escape }}" alt="{{ site.title | escape }}">{% endif %}
|
|
13
|
+
<span class="site-header__title">{{ site.title }}</span>
|
|
14
|
+
</a>
|
|
15
|
+
{% menu "main" %}
|
|
16
|
+
</div>
|
|
17
|
+
</header>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{% comment %}
|
|
2
|
+
partials/pagination.liquid — prev/next + numbered page links. Expects a
|
|
3
|
+
`pagination` object in scope: `{ currentPage, totalPages, baseUrl }`
|
|
4
|
+
(`baseUrl` with no trailing slash, page numbers appended as
|
|
5
|
+
`{{ baseUrl }}/page/{{ n }}`). Nothing in RenderContext (hazo_blog/render's
|
|
6
|
+
types.ts) carries a `pagination` key yet — no template below calls this
|
|
7
|
+
partial today; it exists per this theme's own checklist requirement and
|
|
8
|
+
renders nothing (same "missing data is a no-op" convention every other
|
|
9
|
+
platform render feature in this engine uses) until a future ticket wires
|
|
10
|
+
real paginated archive data into the render context. See this package's
|
|
11
|
+
README "Known gaps" section.
|
|
12
|
+
{% endcomment %}
|
|
13
|
+
{% if pagination and pagination.totalPages > 1 %}
|
|
14
|
+
<nav aria-label="Pagination">
|
|
15
|
+
<ul class="pagination">
|
|
16
|
+
{% if pagination.currentPage > 1 %}
|
|
17
|
+
<li><a href="{{ pagination.baseUrl }}/page/{{ pagination.currentPage | minus: 1 }}" rel="prev">← Prev</a></li>
|
|
18
|
+
{% endif %}
|
|
19
|
+
{% for n in (1..pagination.totalPages) %}
|
|
20
|
+
{% if n == pagination.currentPage %}
|
|
21
|
+
<li><span aria-current="page">{{ n }}</span></li>
|
|
22
|
+
{% else %}
|
|
23
|
+
<li><a href="{{ pagination.baseUrl }}/page/{{ n }}">{{ n }}</a></li>
|
|
24
|
+
{% endif %}
|
|
25
|
+
{% endfor %}
|
|
26
|
+
{% if pagination.currentPage < pagination.totalPages %}
|
|
27
|
+
<li><a href="{{ pagination.baseUrl }}/page/{{ pagination.currentPage | plus: 1 }}" rel="next">Next →</a></li>
|
|
28
|
+
{% endif %}
|
|
29
|
+
</ul>
|
|
30
|
+
</nav>
|
|
31
|
+
{% endif %}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{% comment %}
|
|
2
|
+
partials/post-card.liquid — one post summary card. Expects `post` in
|
|
3
|
+
scope with `title`/`url`/`excerpt`/`image` (same shape as
|
|
4
|
+
`RenderRelatedPost` in hazo_blog/render's types.ts). Included with
|
|
5
|
+
`{% include "partials/post-card", post: item %}` by anything that has a
|
|
6
|
+
list of these to render — today that's only sections/posts_grid.liquid's
|
|
7
|
+
own (currently data-less) loop; see that file's header comment for why.
|
|
8
|
+
{% endcomment %}
|
|
9
|
+
<a class="post-card" href="{{ post.url | escape }}">
|
|
10
|
+
{% if post.image != blank %}
|
|
11
|
+
<div class="post-card__image"><img src="{{ post.image | escape }}" alt="{{ post.title | escape }}"></div>
|
|
12
|
+
{% endif %}
|
|
13
|
+
<div class="post-card__body">
|
|
14
|
+
<h3 class="post-card__title">{{ post.title }}</h3>
|
|
15
|
+
{% if post.excerpt != blank %}<p class="post-card__excerpt">{{ post.excerpt }}</p>{% endif %}
|
|
16
|
+
</div>
|
|
17
|
+
</a>
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
{% comment %}
|
|
2
|
+
partials/styles.liquid — same inlining rationale as the trades
|
|
3
|
+
theme's own partials/styles.liquid (no theme-asset HTTP route wired
|
|
4
|
+
yet). No webfont <link> here at all — Starter Light intentionally
|
|
5
|
+
uses the system font stack only.
|
|
6
|
+
{% endcomment %}
|
|
7
|
+
<style>
|
|
8
|
+
/*
|
|
9
|
+
* Starter Light theme — visual identity (hazo_blog_themes, ticket 07).
|
|
10
|
+
*
|
|
11
|
+
* Deliberately the OPPOSITE design language from "trades" (so switching
|
|
12
|
+
* between them in the gallery is obviously, visibly different — the
|
|
13
|
+
* ticket's own bar for a starter theme): plain system sans-serif
|
|
14
|
+
* everywhere (no webfont load at all), a neutral slate/blue palette
|
|
15
|
+
* instead of warm green/terracotta, tight compact spacing instead of
|
|
16
|
+
* editorial whitespace, square corners instead of rounded cards.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
:root {
|
|
20
|
+
--color-primary: #2f6fed; /* plain blue accent */
|
|
21
|
+
--color-primary-dark: #1f52b8;
|
|
22
|
+
--color-primary-tint: #eaf1ff;
|
|
23
|
+
--color-ink: #1f2328;
|
|
24
|
+
--color-ink-muted: #596673;
|
|
25
|
+
--color-paper: #ffffff;
|
|
26
|
+
--color-paper-alt: #f5f6f8;
|
|
27
|
+
--color-border: #e2e5e9;
|
|
28
|
+
|
|
29
|
+
--font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
30
|
+
--font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
31
|
+
--type-sm: 0.875rem;
|
|
32
|
+
--type-base: 1rem;
|
|
33
|
+
--type-lg: 1.125rem;
|
|
34
|
+
--type-xl: 1.5rem;
|
|
35
|
+
--type-2xl: 2rem;
|
|
36
|
+
--type-3xl: 2.5rem;
|
|
37
|
+
|
|
38
|
+
--space-1: 0.5rem;
|
|
39
|
+
--space-2: 0.75rem;
|
|
40
|
+
--space-3: 1rem;
|
|
41
|
+
--space-4: 1.5rem;
|
|
42
|
+
--space-5: 2.5rem;
|
|
43
|
+
--space-6: 3.5rem;
|
|
44
|
+
|
|
45
|
+
--radius-sm: 4px;
|
|
46
|
+
--radius-md: 4px;
|
|
47
|
+
--radius-lg: 4px;
|
|
48
|
+
--max-width: 1040px;
|
|
49
|
+
--shadow-card: 0 1px 2px rgba(31, 35, 40, 0.08);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
* {
|
|
53
|
+
box-sizing: border-box;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
body {
|
|
57
|
+
margin: 0;
|
|
58
|
+
background: var(--color-paper);
|
|
59
|
+
color: var(--color-ink);
|
|
60
|
+
font-family: var(--font-body);
|
|
61
|
+
font-size: var(--type-base);
|
|
62
|
+
line-height: 1.5;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
h1, h2, h3, h4, h5, h6 {
|
|
66
|
+
font-family: var(--font-heading);
|
|
67
|
+
font-weight: 700;
|
|
68
|
+
line-height: 1.25;
|
|
69
|
+
margin: 0 0 var(--space-2);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
p { margin: 0 0 var(--space-2); }
|
|
73
|
+
a { color: var(--color-primary); text-decoration: underline; }
|
|
74
|
+
a:hover { color: var(--color-primary-dark); }
|
|
75
|
+
img { max-width: 100%; display: block; }
|
|
76
|
+
|
|
77
|
+
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-3); }
|
|
78
|
+
|
|
79
|
+
.button {
|
|
80
|
+
display: inline-flex; align-items: center; gap: var(--space-1);
|
|
81
|
+
font-weight: 600; font-size: var(--type-sm);
|
|
82
|
+
padding: 0.6rem 1.1rem; border-radius: var(--radius-sm);
|
|
83
|
+
text-decoration: none; border: 1px solid transparent; cursor: pointer;
|
|
84
|
+
}
|
|
85
|
+
.button--primary { background: var(--color-primary); color: #fff; }
|
|
86
|
+
.button--primary:hover { background: var(--color-primary-dark); }
|
|
87
|
+
.button--secondary { background: transparent; color: var(--color-ink); border-color: var(--color-border); }
|
|
88
|
+
.button--secondary:hover { background: var(--color-paper-alt); }
|
|
89
|
+
|
|
90
|
+
.site-header { background: var(--color-paper); border-bottom: 1px solid var(--color-border); }
|
|
91
|
+
.site-header__inner { max-width: var(--max-width); margin: 0 auto; padding: var(--space-2) var(--space-3); display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
|
|
92
|
+
.site-header__brand { display: flex; align-items: center; gap: var(--space-1); color: var(--color-ink); text-decoration: none; }
|
|
93
|
+
.site-header__logo { height: 1.75rem; }
|
|
94
|
+
.site-header__title { font-size: var(--type-lg); font-weight: 700; }
|
|
95
|
+
.site-header nav ul { display: flex; flex-wrap: wrap; gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
|
|
96
|
+
.site-header nav a { color: var(--color-ink-muted); text-decoration: none; font-size: var(--type-sm); font-weight: 600; }
|
|
97
|
+
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--color-primary); }
|
|
98
|
+
.site-header nav ul ul { padding-left: var(--space-2); }
|
|
99
|
+
|
|
100
|
+
.site-footer { background: var(--color-paper-alt); border-top: 1px solid var(--color-border); margin-top: var(--space-6); }
|
|
101
|
+
.site-footer__inner { max-width: var(--max-width); margin: 0 auto; padding: var(--space-4) var(--space-3); display: grid; gap: var(--space-2); }
|
|
102
|
+
.site-footer__brand { display: flex; align-items: center; gap: var(--space-1); }
|
|
103
|
+
.site-footer__logo { height: 1.5rem; }
|
|
104
|
+
.site-footer__tagline { color: var(--color-ink-muted); margin: 0; }
|
|
105
|
+
.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
|
|
106
|
+
.site-footer__nav a { color: var(--color-ink-muted); text-decoration: none; }
|
|
107
|
+
.site-footer__nav a:hover { color: var(--color-primary); }
|
|
108
|
+
.site-footer__social { display: flex; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
|
|
109
|
+
.site-footer__social a { color: var(--color-ink-muted); text-decoration: none; }
|
|
110
|
+
.site-footer__copyright { font-size: var(--type-sm); color: var(--color-ink-muted); margin: 0; }
|
|
111
|
+
|
|
112
|
+
.page-article, .post-article { max-width: 42rem; margin: 0 auto; padding: var(--space-5) var(--space-3); }
|
|
113
|
+
.page-article__title, .post-article__title { font-size: var(--type-2xl); }
|
|
114
|
+
.post-article__meta { color: var(--color-ink-muted); font-size: var(--type-sm); }
|
|
115
|
+
|
|
116
|
+
.section { padding: var(--space-5) var(--space-3); }
|
|
117
|
+
.section + .section { border-top: 1px solid var(--color-border); }
|
|
118
|
+
.section__inner, .section-hero__inner { max-width: var(--max-width); margin: 0 auto; }
|
|
119
|
+
|
|
120
|
+
.section-hero { background: var(--color-paper-alt); text-align: left; }
|
|
121
|
+
.section-hero__inner { max-width: 36rem; display: flex; flex-direction: column; gap: var(--space-2); }
|
|
122
|
+
.section-hero__heading { font-size: var(--type-3xl); }
|
|
123
|
+
.section-hero__subheading { color: var(--color-ink-muted); }
|
|
124
|
+
|
|
125
|
+
.section-text { max-width: 36rem; margin-left: auto; margin-right: auto; }
|
|
126
|
+
|
|
127
|
+
.section-image-text .section__inner { display: grid; gap: var(--space-3); align-items: center; }
|
|
128
|
+
@media (min-width: 48rem) { .section-image-text .section__inner { grid-template-columns: 1fr 1fr; } }
|
|
129
|
+
.section-image-text__image img { border-radius: var(--radius-sm); }
|
|
130
|
+
|
|
131
|
+
.section-posts-grid__list { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
|
|
132
|
+
.section-posts-grid__list--list { grid-template-columns: 1fr; }
|
|
133
|
+
.section-posts-grid__empty { color: var(--color-ink-muted); }
|
|
134
|
+
|
|
135
|
+
.section-cta { background: var(--color-primary); color: #fff; text-align: left; }
|
|
136
|
+
.section-cta .section__inner { display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }
|
|
137
|
+
.section-cta__heading, .section-cta__subheading { color: #fff; }
|
|
138
|
+
|
|
139
|
+
.section-faq .section__inner { max-width: 36rem; }
|
|
140
|
+
.faq-item { border-bottom: 1px solid var(--color-border); padding: var(--space-2) 0; }
|
|
141
|
+
.faq-item summary { cursor: pointer; font-weight: 700; }
|
|
142
|
+
|
|
143
|
+
.section-quote-form, .section-contact { background: var(--color-paper-alt); }
|
|
144
|
+
.section-quote-form .section__inner, .section-contact .section__inner { max-width: 30rem; }
|
|
145
|
+
|
|
146
|
+
.section-testimonials__list { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
|
|
147
|
+
.testimonial-card { background: var(--color-paper); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: var(--space-3); }
|
|
148
|
+
.testimonial-card__rating { color: var(--color-primary); }
|
|
149
|
+
|
|
150
|
+
.section-logos__list { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
|
|
151
|
+
.section-logos__list img { max-height: 2rem; opacity: 0.8; }
|
|
152
|
+
|
|
153
|
+
.section-stats__list { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); }
|
|
154
|
+
.stat__number { font-size: var(--type-2xl); font-weight: 700; display: block; }
|
|
155
|
+
.stat__label { color: var(--color-ink-muted); font-size: var(--type-sm); }
|
|
156
|
+
|
|
157
|
+
.section-features__list { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
|
|
158
|
+
.feature-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: var(--radius-sm); background: var(--color-primary-tint); color: var(--color-primary-dark); font-size: var(--type-sm); font-weight: 700; margin-bottom: var(--space-1); text-transform: uppercase; }
|
|
159
|
+
.feature-card__title { font-size: var(--type-lg); }
|
|
160
|
+
|
|
161
|
+
.post-card { display: block; text-decoration: none; color: var(--color-ink); background: var(--color-paper); border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
|
|
162
|
+
.post-card__image img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
|
|
163
|
+
.post-card__body { padding: var(--space-2); }
|
|
164
|
+
.post-card__title { font-size: var(--type-lg); margin-bottom: var(--space-1); }
|
|
165
|
+
.post-card__excerpt { color: var(--color-ink-muted); font-size: var(--type-sm); margin: 0; }
|
|
166
|
+
|
|
167
|
+
.pagination { display: flex; justify-content: center; gap: var(--space-1); padding: var(--space-3); list-style: none; margin: 0; }
|
|
168
|
+
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; height: 2rem; padding: 0 0.5rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--color-ink); }
|
|
169
|
+
.pagination a:hover { background: var(--color-paper-alt); }
|
|
170
|
+
.pagination [aria-current="page"] { background: var(--color-primary); color: #fff; }
|
|
171
|
+
|
|
172
|
+
.form-field { display: block; margin-bottom: var(--space-2); }
|
|
173
|
+
.form-field label { display: block; font-weight: 600; font-size: var(--type-sm); margin-bottom: 0.3rem; }
|
|
174
|
+
.form-field input, .form-field textarea { width: 100%; font-family: var(--font-body); font-size: var(--type-base); padding: 0.55rem 0.7rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: #fff; color: var(--color-ink); }
|
|
175
|
+
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; }
|
|
176
|
+
.form-status { min-height: 1.25rem; font-size: var(--type-sm); color: var(--color-ink-muted); margin-top: var(--space-1); }
|
|
177
|
+
|
|
178
|
+
.error-page { max-width: 28rem; margin: 0 auto; padding: var(--space-6) var(--space-3); text-align: left; }
|
|
179
|
+
.error-page__eyebrow { color: var(--color-primary); font-weight: 700; }
|
|
180
|
+
</style>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{% comment %}
|
|
2
|
+
contact — fields: detailsText, showForm (default true). See
|
|
3
|
+
contactSettingsSchema. Reuses the SAME form markup/submit script as
|
|
4
|
+
templates/contact.liquid (ticket 14's /api/contact) — see that template's
|
|
5
|
+
own header comment for the request/response contract — so a "contact"
|
|
6
|
+
section dropped onto any page (not just the dedicated contact page)
|
|
7
|
+
still submits correctly.
|
|
8
|
+
{% endcomment %}
|
|
9
|
+
<section class="section section-contact" id="{{ section.key | escape }}" data-section-key="{{ section.key | escape }}">
|
|
10
|
+
<div class="section__inner">
|
|
11
|
+
{% if section.settings.detailsText != blank %}<div class="section-contact__details">{{ section.settings.detailsText }}</div>{% endif %}
|
|
12
|
+
{% if section.settings.showForm != false %}
|
|
13
|
+
{% include "partials/contact-form", form_id: section.key %}
|
|
14
|
+
{% endif %}
|
|
15
|
+
</div>
|
|
16
|
+
</section>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{% comment %} cta — fields: heading (required), subheading, buttonText (required), buttonUrl (required, safe-url-validated at write time), style (primary|secondary, default primary). See ctaSettingsSchema. {% endcomment %}
|
|
2
|
+
<section class="section section-cta" id="{{ section.key | escape }}" data-section-key="{{ section.key | escape }}">
|
|
3
|
+
<div class="section__inner">
|
|
4
|
+
<h2 class="section-cta__heading">{{ section.settings.heading }}</h2>
|
|
5
|
+
{% if section.settings.subheading != blank %}<p class="section-cta__subheading">{{ section.settings.subheading }}</p>{% endif %}
|
|
6
|
+
<a class="button button--{{ section.settings.style | default: "primary" }}" href="{{ section.settings.buttonUrl | escape }}">{{ section.settings.buttonText }}</a>
|
|
7
|
+
</div>
|
|
8
|
+
</section>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{% comment %} faq — fields: items[] of {question, answer}, min 1. See faqSettingsSchema. Deliberately its OWN accordion markup, separate from the {% faq %} platform tag (which reads `post.faq`, a different data source — a single post's FAQ, not a page-section's) — see hazo_blog/render/tags/faq.ts's header comment for that tag's own scope. {% endcomment %}
|
|
2
|
+
<section class="section section-faq" id="{{ section.key | escape }}" data-section-key="{{ section.key | escape }}">
|
|
3
|
+
<div class="section__inner">
|
|
4
|
+
{% for item in section.settings.items %}
|
|
5
|
+
<details class="faq-item">
|
|
6
|
+
<summary>{{ item.question }}</summary>
|
|
7
|
+
<div>{{ item.answer }}</div>
|
|
8
|
+
</details>
|
|
9
|
+
{% endfor %}
|
|
10
|
+
</div>
|
|
11
|
+
</section>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{% comment %}
|
|
2
|
+
features — fields: items[] of {icon (required), title (required),
|
|
3
|
+
description (required)}, default []. See featuresSettingsSchema. `icon`
|
|
4
|
+
is a lucide-react icon NAME string (same convention hazo_blog's own
|
|
5
|
+
SECTION_TYPE_REGISTRY uses for its own `icon` field) — a Liquid template
|
|
6
|
+
has no access to the lucide-react component library (that's an
|
|
7
|
+
admin/React-only dependency), so this renders the icon name's first two
|
|
8
|
+
letters as a plain text badge rather than a real SVG glyph. Flagged, not
|
|
9
|
+
silently faked with an unrelated icon set.
|
|
10
|
+
{% endcomment %}
|
|
11
|
+
<section class="section section-features" id="{{ section.key | escape }}" data-section-key="{{ section.key | escape }}">
|
|
12
|
+
<div class="section__inner">
|
|
13
|
+
<div class="section-features__list">
|
|
14
|
+
{% for item in section.settings.items %}
|
|
15
|
+
<div class="feature-card">
|
|
16
|
+
<span class="feature-card__icon" data-icon="{{ item.icon | escape }}" aria-hidden="true">{{ item.icon | slice: 0, 2 }}</span>
|
|
17
|
+
<h3 class="feature-card__title">{{ item.title }}</h3>
|
|
18
|
+
<p class="feature-card__description">{{ item.description }}</p>
|
|
19
|
+
</div>
|
|
20
|
+
{% endfor %}
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
</section>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{% comment %} hero — fields: heading (required), subheading, ctaText, ctaUrl, backgroundImage. See hazo_blog's lib/sections.ts heroSettingsSchema. {% endcomment %}
|
|
2
|
+
{% comment %} liquidjs follows classic Liquid truthiness: only nil/false are falsy, so an empty string "" (every optional field's default) is TRUTHY — every optional-field check below uses `!= blank` rather than a bare `{% if field %}` for exactly that reason. {% endcomment %}
|
|
3
|
+
<section class="section section-hero"{% if section.settings.backgroundImage != blank %} style="background-image:url('{{ section.settings.backgroundImage | escape }}');"{% endif %} id="{{ section.key | escape }}" data-section-key="{{ section.key | escape }}">
|
|
4
|
+
<div class="section-hero__inner">
|
|
5
|
+
<h2 class="section-hero__heading">{{ section.settings.heading }}</h2>
|
|
6
|
+
{% if section.settings.subheading != blank %}<p class="section-hero__subheading">{{ section.settings.subheading }}</p>{% endif %}
|
|
7
|
+
{% if section.settings.ctaText != blank and section.settings.ctaUrl != blank %}
|
|
8
|
+
<a class="button button--primary" href="{{ section.settings.ctaUrl | escape }}">{{ section.settings.ctaText }}</a>
|
|
9
|
+
{% endif %}
|
|
10
|
+
</div>
|
|
11
|
+
</section>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{% comment %} image_text — fields: image, text (required), layout (left|right, default left). See imageTextSettingsSchema. {% endcomment %}
|
|
2
|
+
<section class="section section-image-text section-image-text--{{ section.settings.layout | default: "left" }}" id="{{ section.key | escape }}" data-section-key="{{ section.key | escape }}">
|
|
3
|
+
<div class="section__inner">
|
|
4
|
+
{% if section.settings.image != blank %}
|
|
5
|
+
<div class="section-image-text__image"><img src="{{ section.settings.image | escape }}" alt=""></div>
|
|
6
|
+
{% endif %}
|
|
7
|
+
<div class="section-image-text__text">{{ section.settings.text }}</div>
|
|
8
|
+
</div>
|
|
9
|
+
</section>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{% comment %} logos — fields: items[] of {image (required), alt (required), url?} (safe-url-validated at write time), default []. See logosSettingsSchema. {% endcomment %}
|
|
2
|
+
<section class="section section-logos" id="{{ section.key | escape }}" data-section-key="{{ section.key | escape }}">
|
|
3
|
+
<div class="section__inner">
|
|
4
|
+
<div class="section-logos__list">
|
|
5
|
+
{% for item in section.settings.items %}
|
|
6
|
+
{% if item.url != blank %}
|
|
7
|
+
<a href="{{ item.url | escape }}"><img src="{{ item.image | escape }}" alt="{{ item.alt | escape }}"></a>
|
|
8
|
+
{% else %}
|
|
9
|
+
<img src="{{ item.image | escape }}" alt="{{ item.alt | escape }}">
|
|
10
|
+
{% endif %}
|
|
11
|
+
{% endfor %}
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
</section>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{% comment %}
|
|
2
|
+
posts_grid — fields: categoryFilter, limit (default 6), layout (grid|list,
|
|
3
|
+
default grid). See postsGridSettingsSchema.
|
|
4
|
+
|
|
5
|
+
KNOWN GAP (flagged, not silently worked around — see this package's
|
|
6
|
+
README "Known gaps" section): RenderContext (hazo_blog/render's types.ts)
|
|
7
|
+
carries no actual list of posts anywhere a section partial can reach —
|
|
8
|
+
only `post.related` (a DIFFERENT feature, single-post "related posts",
|
|
9
|
+
not an archive/grid source) exists. This partial therefore renders the
|
|
10
|
+
declared settings (category filter / limit / layout) as real structural
|
|
11
|
+
markup plus an honest empty state, via partials/post-card.liquid (looping
|
|
12
|
+
`section.settings.items` — not part of the Zod schema, always absent
|
|
13
|
+
today, so the loop never actually runs) rather than inventing fake sample
|
|
14
|
+
posts. Whoever threads real queried post data into RenderContext next
|
|
15
|
+
should feed it into THIS loop; no other change needed here.
|
|
16
|
+
{% endcomment %}
|
|
17
|
+
<section class="section section-posts-grid" id="{{ section.key | escape }}" data-section-key="{{ section.key | escape }}" data-category-filter="{{ section.settings.categoryFilter | escape }}" data-limit="{{ section.settings.limit }}">
|
|
18
|
+
<div class="section__inner">
|
|
19
|
+
{% assign grid_items = section.settings.items %}
|
|
20
|
+
{% if grid_items and grid_items.size > 0 %}
|
|
21
|
+
<div class="section-posts-grid__list section-posts-grid__list--{{ section.settings.layout | default: "grid" }}">
|
|
22
|
+
{% for item in grid_items limit: section.settings.limit %}
|
|
23
|
+
{% include "partials/post-card", post: item %}
|
|
24
|
+
{% endfor %}
|
|
25
|
+
</div>
|
|
26
|
+
{% else %}
|
|
27
|
+
<p class="section-posts-grid__empty">Recent posts will appear here.</p>
|
|
28
|
+
{% endif %}
|
|
29
|
+
</div>
|
|
30
|
+
</section>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{% comment %}
|
|
2
|
+
quote_form — fields: quotedashCategory (optional free-form string — the
|
|
3
|
+
QuoteDash category mapping key; see hazo_blog's quoteFormSettingsSchema
|
|
4
|
+
doc-comment). QuoteDash's own embed (`[quotedash]`, 08.quotedash) isn't
|
|
5
|
+
wired into this render engine yet — no `{% quotedash %}` tag exists in
|
|
6
|
+
hazo_blog/render/tags today (D58 describes one, not built as of this
|
|
7
|
+
package). This renders a clearly-labelled placeholder that already
|
|
8
|
+
carries `data-qd-category` so swapping in the real embed script tag
|
|
9
|
+
later is a one-line change, not a template rewrite.
|
|
10
|
+
{% endcomment %}
|
|
11
|
+
<section class="section section-quote-form" id="{{ section.key | escape }}" data-section-key="{{ section.key | escape }}">
|
|
12
|
+
<div class="section__inner">
|
|
13
|
+
<h2>Get a quote</h2>
|
|
14
|
+
<div class="quote-form-embed" data-qd-category="{{ section.settings.quotedashCategory | escape }}" data-qd-source="{{ request.path | escape }}">
|
|
15
|
+
<p class="section-posts-grid__empty">Quote form coming soon{% if section.settings.quotedashCategory != blank %} ({{ section.settings.quotedashCategory }}){% endif %}.</p>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
</section>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{% comment %} stats — fields: items[] of {number (required), label (required), suffix?}, default []. See statsSettingsSchema. {% endcomment %}
|
|
2
|
+
<section class="section section-stats" id="{{ section.key | escape }}" data-section-key="{{ section.key | escape }}">
|
|
3
|
+
<div class="section__inner">
|
|
4
|
+
<div class="section-stats__list">
|
|
5
|
+
{% for item in section.settings.items %}
|
|
6
|
+
<div class="stat">
|
|
7
|
+
<span class="stat__number">{{ item.number }}{{ item.suffix }}</span>
|
|
8
|
+
<span class="stat__label">{{ item.label }}</span>
|
|
9
|
+
</div>
|
|
10
|
+
{% endfor %}
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
</section>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{% comment %} testimonials — fields: items[] of {name, text, role?, rating?}, default []. See testimonialsSettingsSchema. {% endcomment %}
|
|
2
|
+
<section class="section section-testimonials" id="{{ section.key | escape }}" data-section-key="{{ section.key | escape }}">
|
|
3
|
+
<div class="section__inner">
|
|
4
|
+
<div class="section-testimonials__list">
|
|
5
|
+
{% for item in section.settings.items %}
|
|
6
|
+
<figure class="testimonial-card">
|
|
7
|
+
{% if item.rating %}<div class="testimonial-card__rating" aria-hidden="true">{% for i in (1..item.rating) %}★{% endfor %}</div>{% endif %}
|
|
8
|
+
<blockquote>{{ item.text }}</blockquote>
|
|
9
|
+
<figcaption><strong>{{ item.name }}</strong>{% if item.role != blank %}, {{ item.role }}{% endif %}</figcaption>
|
|
10
|
+
</figure>
|
|
11
|
+
{% endfor %}
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
</section>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{% comment %} text — fields: body (required, HTML-ish prose). See textSettingsSchema. {% endcomment %}
|
|
2
|
+
<section class="section section-text" id="{{ section.key | escape }}" data-section-key="{{ section.key | escape }}">
|
|
3
|
+
<div class="section__inner">
|
|
4
|
+
{{ section.settings.body }}
|
|
5
|
+
</div>
|
|
6
|
+
</section>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{% comment %} templates/404.liquid — the end of resolve.ts's resolution chain; required by theme-validate.ts's REQUIRED_THEME_TEMPLATES. {% endcomment %}
|
|
2
|
+
{% include "partials/header" %}
|
|
3
|
+
<main class="site-main site-main--error">
|
|
4
|
+
<section class="error-page">
|
|
5
|
+
<p class="error-page__eyebrow">404</p>
|
|
6
|
+
<h1>We couldn't find that page.</h1>
|
|
7
|
+
<p>The page you're looking for may have been moved, renamed, or no longer exists.</p>
|
|
8
|
+
<a class="button button--primary" href="/">Back to home</a>
|
|
9
|
+
</section>
|
|
10
|
+
</main>
|
|
11
|
+
{% include "partials/footer" %}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{% comment %}
|
|
2
|
+
templates/about.liquid — opt-in via a page's own `template: "about"`
|
|
3
|
+
override (see resolve.ts). Same shell as page.liquid; kept as its own
|
|
4
|
+
file (rather than reusing page.liquid) so an operator can give the About
|
|
5
|
+
page distinct styling later without touching the generic page template.
|
|
6
|
+
{% endcomment %}
|
|
7
|
+
{% include "partials/header" %}
|
|
8
|
+
<main class="site-main site-main--about">
|
|
9
|
+
<article class="page-article">
|
|
10
|
+
<h1 class="page-article__title">{{ page.title }}</h1>
|
|
11
|
+
<div class="page-article__body">{{ content }}</div>
|
|
12
|
+
{% section_list %}
|
|
13
|
+
</article>
|
|
14
|
+
</main>
|
|
15
|
+
{% include "partials/footer" %}
|