feat: add Prettier with go-template and toml plugins, format all files
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
public/
|
||||||
|
resources/
|
||||||
|
node_modules/
|
||||||
|
.hugo_build.lock
|
||||||
|
static/
|
||||||
+32
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"plugins": ["prettier-plugin-go-template", "prettier-plugin-toml"],
|
||||||
|
"overrides": [
|
||||||
|
{
|
||||||
|
"files": ["layouts/**/*.html", "themes/**/*.html"],
|
||||||
|
"options": {
|
||||||
|
"parser": "go-template",
|
||||||
|
"goTemplateBracketSpacing": true,
|
||||||
|
"printWidth": 120
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"files": "*.toml",
|
||||||
|
"options": {
|
||||||
|
"parser": "toml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"files": "*.css",
|
||||||
|
"options": {
|
||||||
|
"printWidth": 100,
|
||||||
|
"singleQuote": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"files": "*.md",
|
||||||
|
"options": {
|
||||||
|
"proseWrap": "preserve"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
+301
-102
@@ -7,28 +7,27 @@
|
|||||||
|
|
||||||
/* ── Design tokens — sneaker drop culture ────────────────────── */
|
/* ── Design tokens — sneaker drop culture ────────────────────── */
|
||||||
@theme {
|
@theme {
|
||||||
|
|
||||||
/* Dark base — deep navy-black */
|
/* Dark base — deep navy-black */
|
||||||
--color-void: #050510;
|
--color-void: #050510;
|
||||||
--color-ink: #09091A;
|
--color-ink: #09091a;
|
||||||
--color-concrete: #0F0F22;
|
--color-concrete: #0f0f22;
|
||||||
--color-zinc: #1C1C38;
|
--color-zinc: #1c1c38;
|
||||||
--color-smoke: #383860;
|
--color-smoke: #383860;
|
||||||
--color-fog: #6868A0;
|
--color-fog: #6868a0;
|
||||||
--color-chalk: #B8B8E0;
|
--color-chalk: #b8b8e0;
|
||||||
--color-paper: #EEEEFF;
|
--color-paper: #eeeeff;
|
||||||
|
|
||||||
/* Gradient triad — pink → purple → ice */
|
/* Gradient triad — pink → purple → ice */
|
||||||
--color-heat: #FF1A8C; /* hot pink — primary energy */
|
--color-heat: #ff1a8c; /* hot pink — primary energy */
|
||||||
--color-pulse: #9B00FF; /* electric purple — mid */
|
--color-pulse: #9b00ff; /* electric purple — mid */
|
||||||
--color-frost: #00C8FF; /* ice blue — cool accent */
|
--color-frost: #00c8ff; /* ice blue — cool accent */
|
||||||
--color-ember: #FF4455; /* alert red */
|
--color-ember: #ff4455; /* alert red */
|
||||||
--color-lime: #1AFF8D; /* acid lime — highlight */
|
--color-lime: #1aff8d; /* acid lime — highlight */
|
||||||
--color-stem: #FF7A1A; /* peony stem orange */
|
--color-stem: #ff7a1a; /* peony stem orange */
|
||||||
|
|
||||||
/* Backward-compat aliases so existing templates still work */
|
/* Backward-compat aliases so existing templates still work */
|
||||||
--color-gold: var(--color-heat);
|
--color-gold: var(--color-heat);
|
||||||
--color-gold-dim: #CC1570;
|
--color-gold-dim: #cc1570;
|
||||||
--color-hot: var(--color-heat);
|
--color-hot: var(--color-heat);
|
||||||
--color-volt: var(--color-lime);
|
--color-volt: var(--color-lime);
|
||||||
--color-ice: var(--color-frost);
|
--color-ice: var(--color-frost);
|
||||||
@@ -52,8 +51,14 @@
|
|||||||
|
|
||||||
/* ── Base ─────────────────────────────────────────────────────── */
|
/* ── Base ─────────────────────────────────────────────────────── */
|
||||||
@layer base {
|
@layer base {
|
||||||
*, *::before, *::after { box-sizing: border-box; }
|
*,
|
||||||
[x-cloak] { display: none !important; }
|
*::before,
|
||||||
|
*::after {
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
[x-cloak] {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
background-color: var(--color-void);
|
background-color: var(--color-void);
|
||||||
@@ -66,9 +71,16 @@
|
|||||||
text-rendering: optimizeLegibility;
|
text-rendering: optimizeLegibility;
|
||||||
}
|
}
|
||||||
|
|
||||||
body { min-height: 100vh; }
|
body {
|
||||||
|
min-height: 100vh;
|
||||||
|
}
|
||||||
|
|
||||||
h1, h2, h3, h4, h5, h6 {
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
h6 {
|
||||||
font-family: var(--font-display);
|
font-family: var(--font-display);
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
letter-spacing: 0.01em;
|
letter-spacing: 0.01em;
|
||||||
@@ -82,7 +94,12 @@
|
|||||||
transition: color 0.2s var(--ease-sharp);
|
transition: color 0.2s var(--ease-sharp);
|
||||||
}
|
}
|
||||||
|
|
||||||
img, video { max-width: 100%; height: auto; display: block; }
|
img,
|
||||||
|
video {
|
||||||
|
max-width: 100%;
|
||||||
|
height: auto;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
::selection {
|
::selection {
|
||||||
background-color: var(--color-heat);
|
background-color: var(--color-heat);
|
||||||
@@ -95,14 +112,20 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Gradient scrollbar */
|
/* Gradient scrollbar */
|
||||||
::-webkit-scrollbar { width: 4px; height: 4px; }
|
::-webkit-scrollbar {
|
||||||
::-webkit-scrollbar-track { background: var(--color-ink); }
|
width: 4px;
|
||||||
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--color-heat), var(--color-frost)); }
|
height: 4px;
|
||||||
|
}
|
||||||
|
::-webkit-scrollbar-track {
|
||||||
|
background: var(--color-ink);
|
||||||
|
}
|
||||||
|
::-webkit-scrollbar-thumb {
|
||||||
|
background: linear-gradient(180deg, var(--color-heat), var(--color-frost));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Components ───────────────────────────────────────────────── */
|
/* ── Components ───────────────────────────────────────────────── */
|
||||||
@layer components {
|
@layer components {
|
||||||
|
|
||||||
/* ── Gradient text ─────────────────────────────────────────── */
|
/* ── Gradient text ─────────────────────────────────────────── */
|
||||||
.text-gradient {
|
.text-gradient {
|
||||||
background: var(--color-heat);
|
background: var(--color-heat);
|
||||||
@@ -113,7 +136,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.text-gradient-animated {
|
.text-gradient-animated {
|
||||||
background: linear-gradient(90deg, var(--color-heat), var(--color-pulse), var(--color-frost), var(--color-heat));
|
background: linear-gradient(
|
||||||
|
90deg,
|
||||||
|
var(--color-heat),
|
||||||
|
var(--color-pulse),
|
||||||
|
var(--color-frost),
|
||||||
|
var(--color-heat)
|
||||||
|
);
|
||||||
background-size: 300% 100%;
|
background-size: 300% 100%;
|
||||||
-webkit-background-clip: text;
|
-webkit-background-clip: text;
|
||||||
background-clip: text;
|
background-clip: text;
|
||||||
@@ -165,23 +194,58 @@
|
|||||||
padding: 5px 16px;
|
padding: 5px 16px;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
|
clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
|
||||||
transition: transform 0.15s var(--ease-bounce), filter 0.2s;
|
transition:
|
||||||
|
transform 0.15s var(--ease-bounce),
|
||||||
|
filter 0.2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
a.badge:hover { transform: skewX(-4deg) scale(1.06); filter: brightness(1.2); }
|
a.badge:hover {
|
||||||
a.badge, a > .badge { cursor: pointer; }
|
transform: skewX(-4deg) scale(1.06);
|
||||||
|
filter: brightness(1.2);
|
||||||
|
}
|
||||||
|
a.badge,
|
||||||
|
a > .badge {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
.badge-heat { background: var(--color-heat); color: #fff; }
|
.badge-heat {
|
||||||
.badge-pulse { background: var(--color-pulse); color: #fff; }
|
background: var(--color-heat);
|
||||||
.badge-frost { background: var(--color-frost); color: var(--color-void); }
|
color: #fff;
|
||||||
.badge-lime { background: var(--color-lime); color: var(--color-void); }
|
}
|
||||||
.badge-ember { background: var(--color-ember); color: #fff; }
|
.badge-pulse {
|
||||||
.badge-stem { background: var(--color-stem); color: var(--color-void); }
|
background: var(--color-pulse);
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
.badge-frost {
|
||||||
|
background: var(--color-frost);
|
||||||
|
color: var(--color-void);
|
||||||
|
}
|
||||||
|
.badge-lime {
|
||||||
|
background: var(--color-lime);
|
||||||
|
color: var(--color-void);
|
||||||
|
}
|
||||||
|
.badge-ember {
|
||||||
|
background: var(--color-ember);
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
.badge-stem {
|
||||||
|
background: var(--color-stem);
|
||||||
|
color: var(--color-void);
|
||||||
|
}
|
||||||
|
|
||||||
/* Semantic aliases kept for template compat */
|
/* Semantic aliases kept for template compat */
|
||||||
.badge-hot { background: var(--color-heat); color: #fff; }
|
.badge-hot {
|
||||||
.badge-volt { background: var(--color-lime); color: var(--color-void); }
|
background: var(--color-heat);
|
||||||
.badge-ice { background: var(--color-frost); color: var(--color-void); }
|
color: #fff;
|
||||||
|
}
|
||||||
|
.badge-volt {
|
||||||
|
background: var(--color-lime);
|
||||||
|
color: var(--color-void);
|
||||||
|
}
|
||||||
|
.badge-ice {
|
||||||
|
background: var(--color-frost);
|
||||||
|
color: var(--color-void);
|
||||||
|
}
|
||||||
|
|
||||||
.badge-gradient {
|
.badge-gradient {
|
||||||
background: var(--color-heat);
|
background: var(--color-heat);
|
||||||
@@ -220,7 +284,7 @@
|
|||||||
|
|
||||||
/* shimmer sweep */
|
/* shimmer sweep */
|
||||||
.btn::before {
|
.btn::before {
|
||||||
content: '';
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
inset: 0;
|
inset: 0;
|
||||||
background: linear-gradient(
|
background: linear-gradient(
|
||||||
@@ -236,11 +300,16 @@
|
|||||||
|
|
||||||
.btn:hover {
|
.btn:hover {
|
||||||
transform: translateY(-2px);
|
transform: translateY(-2px);
|
||||||
box-shadow: 0 8px 32px rgba(255, 26, 140, 0.5),
|
box-shadow:
|
||||||
|
0 8px 32px rgba(255, 26, 140, 0.5),
|
||||||
0 2px 8px rgba(155, 0, 255, 0.2);
|
0 2px 8px rgba(155, 0, 255, 0.2);
|
||||||
}
|
}
|
||||||
.btn:hover::before { transform: translateX(200%); }
|
.btn:hover::before {
|
||||||
.btn:active { transform: translateY(0px); }
|
transform: translateX(200%);
|
||||||
|
}
|
||||||
|
.btn:active {
|
||||||
|
transform: translateY(0px);
|
||||||
|
}
|
||||||
|
|
||||||
.btn-outline {
|
.btn-outline {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
@@ -248,7 +317,9 @@
|
|||||||
color: var(--color-heat);
|
color: var(--color-heat);
|
||||||
clip-path: none;
|
clip-path: none;
|
||||||
}
|
}
|
||||||
.btn-outline::before { display: none; }
|
.btn-outline::before {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
.btn-outline:hover {
|
.btn-outline:hover {
|
||||||
background: var(--color-heat);
|
background: var(--color-heat);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
@@ -269,7 +340,9 @@
|
|||||||
color: var(--color-chalk);
|
color: var(--color-chalk);
|
||||||
clip-path: none;
|
clip-path: none;
|
||||||
}
|
}
|
||||||
.btn-ghost::before { display: none; }
|
.btn-ghost::before {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
.btn-ghost:hover {
|
.btn-ghost:hover {
|
||||||
border-color: var(--color-heat);
|
border-color: var(--color-heat);
|
||||||
color: var(--color-heat);
|
color: var(--color-heat);
|
||||||
@@ -307,7 +380,7 @@
|
|||||||
|
|
||||||
/* gradient top bar */
|
/* gradient top bar */
|
||||||
.card-comic::after {
|
.card-comic::after {
|
||||||
content: '';
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
@@ -329,20 +402,25 @@
|
|||||||
6px 6px 0 rgba(255, 26, 140, 0.22);
|
6px 6px 0 rgba(255, 26, 140, 0.22);
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-comic:hover::after { opacity: 1; }
|
.card-comic:hover::after {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
/* ── Isometric triangle grid — 3 sets of lines at 0° / 60° / -60°
|
/* ── Isometric triangle grid — 3 sets of lines at 0° / 60° / -60°
|
||||||
Creates an infinite isometric floor-tile illusion.
|
Creates an infinite isometric floor-tile illusion.
|
||||||
Colors: heat (horizontal) · frost (60°) · pulse (-60°)
|
Colors: heat (horizontal) · frost (60°) · pulse (-60°)
|
||||||
────────────────────────────────────────────────────────────── */
|
────────────────────────────────────────────────────────────── */
|
||||||
.speed-lines {
|
.speed-lines {
|
||||||
background-image:
|
background-image: repeating-linear-gradient(
|
||||||
repeating-linear-gradient(
|
|
||||||
-55deg,
|
-55deg,
|
||||||
rgba(255, 26, 140, 0.14) 0, rgba(255, 26, 140, 0.14) 1px,
|
rgba(255, 26, 140, 0.14) 0,
|
||||||
transparent 1px, transparent 22px,
|
rgba(255, 26, 140, 0.14) 1px,
|
||||||
rgba(0, 200, 255, 0.08) 22px, rgba(0, 200, 255, 0.08) 23px,
|
transparent 1px,
|
||||||
transparent 23px, transparent 44px
|
transparent 22px,
|
||||||
|
rgba(0, 200, 255, 0.08) 22px,
|
||||||
|
rgba(0, 200, 255, 0.08) 23px,
|
||||||
|
transparent 23px,
|
||||||
|
transparent 44px
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -351,13 +429,17 @@
|
|||||||
background-image:
|
background-image:
|
||||||
repeating-linear-gradient(
|
repeating-linear-gradient(
|
||||||
45deg,
|
45deg,
|
||||||
rgba(255, 26, 140, 0.07) 0, rgba(255, 26, 140, 0.07) 1px,
|
rgba(255, 26, 140, 0.07) 0,
|
||||||
transparent 1px, transparent 24px
|
rgba(255, 26, 140, 0.07) 1px,
|
||||||
|
transparent 1px,
|
||||||
|
transparent 24px
|
||||||
),
|
),
|
||||||
repeating-linear-gradient(
|
repeating-linear-gradient(
|
||||||
-45deg,
|
-45deg,
|
||||||
rgba(0, 200, 255, 0.05) 0, rgba(0, 200, 255, 0.05) 1px,
|
rgba(0, 200, 255, 0.05) 0,
|
||||||
transparent 1px, transparent 24px
|
rgba(0, 200, 255, 0.05) 1px,
|
||||||
|
transparent 1px,
|
||||||
|
transparent 24px
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -366,8 +448,12 @@
|
|||||||
background-image:
|
background-image:
|
||||||
radial-gradient(circle, rgba(255, 26, 140, 0.09) 1px, transparent 1px),
|
radial-gradient(circle, rgba(255, 26, 140, 0.09) 1px, transparent 1px),
|
||||||
radial-gradient(circle, rgba(0, 200, 255, 0.06) 1px, transparent 1px);
|
radial-gradient(circle, rgba(0, 200, 255, 0.06) 1px, transparent 1px);
|
||||||
background-size: 18px 18px, 29px 29px;
|
background-size:
|
||||||
background-position: 0 0, 9px 9px;
|
18px 18px,
|
||||||
|
29px 29px;
|
||||||
|
background-position:
|
||||||
|
0 0,
|
||||||
|
9px 9px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Noise overlay ──────────────────────────────────────────── */
|
/* ── Noise overlay ──────────────────────────────────────────── */
|
||||||
@@ -399,10 +485,15 @@
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
animation: marquee-scroll 32s linear infinite;
|
animation: marquee-scroll 32s linear infinite;
|
||||||
}
|
}
|
||||||
.marquee-track:hover { animation-play-state: paused; }
|
.marquee-track:hover {
|
||||||
|
animation-play-state: paused;
|
||||||
|
}
|
||||||
|
|
||||||
/* ── Section rules ──────────────────────────────────────────── */
|
/* ── Section rules ──────────────────────────────────────────── */
|
||||||
.section-rule { border: none; border-top: 1px solid var(--color-zinc); }
|
.section-rule {
|
||||||
|
border: none;
|
||||||
|
border-top: 1px solid var(--color-zinc);
|
||||||
|
}
|
||||||
|
|
||||||
.section-rule-electric {
|
.section-rule-electric {
|
||||||
border: none;
|
border: none;
|
||||||
@@ -419,9 +510,21 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* ── Neon glow utilities ────────────────────────────────────── */
|
/* ── Neon glow utilities ────────────────────────────────────── */
|
||||||
.neon-heat { box-shadow: 0 0 24px rgba(255, 26, 140, 0.35), 0 0 60px rgba(255, 26, 140, 0.08); }
|
.neon-heat {
|
||||||
.neon-pulse { box-shadow: 0 0 24px rgba(155, 0, 255, 0.35), 0 0 60px rgba(155, 0, 255, 0.08); }
|
box-shadow:
|
||||||
.neon-frost { box-shadow: 0 0 24px rgba( 0, 200, 255, 0.35), 0 0 60px rgba( 0, 200, 255, 0.08); }
|
0 0 24px rgba(255, 26, 140, 0.35),
|
||||||
|
0 0 60px rgba(255, 26, 140, 0.08);
|
||||||
|
}
|
||||||
|
.neon-pulse {
|
||||||
|
box-shadow:
|
||||||
|
0 0 24px rgba(155, 0, 255, 0.35),
|
||||||
|
0 0 60px rgba(155, 0, 255, 0.08);
|
||||||
|
}
|
||||||
|
.neon-frost {
|
||||||
|
box-shadow:
|
||||||
|
0 0 24px rgba(0, 200, 255, 0.35),
|
||||||
|
0 0 60px rgba(0, 200, 255, 0.08);
|
||||||
|
}
|
||||||
|
|
||||||
/* ── Prose editorial ────────────────────────────────────────── */
|
/* ── Prose editorial ────────────────────────────────────────── */
|
||||||
.prose-editorial {
|
.prose-editorial {
|
||||||
@@ -432,15 +535,25 @@
|
|||||||
max-width: 72ch;
|
max-width: 72ch;
|
||||||
}
|
}
|
||||||
|
|
||||||
.prose-editorial > * + * { margin-top: 1.6em; }
|
.prose-editorial > * + * {
|
||||||
|
margin-top: 1.6em;
|
||||||
|
}
|
||||||
|
|
||||||
.prose-editorial strong { color: var(--color-paper); font-weight: 600; }
|
.prose-editorial strong {
|
||||||
.prose-editorial em { font-style: italic; color: var(--color-paper); }
|
color: var(--color-paper);
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
.prose-editorial em {
|
||||||
|
font-style: italic;
|
||||||
|
color: var(--color-paper);
|
||||||
|
}
|
||||||
|
|
||||||
.prose-editorial a {
|
.prose-editorial a {
|
||||||
color: var(--color-heat);
|
color: var(--color-heat);
|
||||||
border-bottom: 1px solid rgba(255, 26, 140, 0.35);
|
border-bottom: 1px solid rgba(255, 26, 140, 0.35);
|
||||||
transition: border-color 0.2s, color 0.2s;
|
transition:
|
||||||
|
border-color 0.2s,
|
||||||
|
color 0.2s;
|
||||||
}
|
}
|
||||||
.prose-editorial a:hover {
|
.prose-editorial a:hover {
|
||||||
color: var(--color-frost);
|
color: var(--color-frost);
|
||||||
@@ -457,7 +570,9 @@
|
|||||||
letter-spacing: 0.01em;
|
letter-spacing: 0.01em;
|
||||||
line-height: 1.1;
|
line-height: 1.1;
|
||||||
}
|
}
|
||||||
.prose-editorial blockquote p { margin: 0; }
|
.prose-editorial blockquote p {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.prose-editorial h2 {
|
.prose-editorial h2 {
|
||||||
font-size: 2.5rem;
|
font-size: 2.5rem;
|
||||||
@@ -509,7 +624,9 @@
|
|||||||
background: linear-gradient(90deg, var(--color-heat), var(--color-pulse), var(--color-frost));
|
background: linear-gradient(90deg, var(--color-heat), var(--color-pulse), var(--color-frost));
|
||||||
box-shadow: 0 0 12px rgba(255, 26, 140, 0.6);
|
box-shadow: 0 0 12px rgba(255, 26, 140, 0.6);
|
||||||
z-index: 9999;
|
z-index: 9999;
|
||||||
transition: width 0.4s var(--ease-out-expo), opacity 0.3s ease;
|
transition:
|
||||||
|
width 0.4s var(--ease-out-expo),
|
||||||
|
opacity 0.3s ease;
|
||||||
width: 0;
|
width: 0;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
@@ -517,62 +634,128 @@
|
|||||||
|
|
||||||
/* ── Utilities ────────────────────────────────────────────────── */
|
/* ── Utilities ────────────────────────────────────────────────── */
|
||||||
@layer utilities {
|
@layer utilities {
|
||||||
|
|
||||||
.gutter-x {
|
.gutter-x {
|
||||||
padding-left: clamp(1rem, 4vw, 3rem);
|
padding-left: clamp(1rem, 4vw, 3rem);
|
||||||
padding-right: clamp(1rem, 4vw, 3rem);
|
padding-right: clamp(1rem, 4vw, 3rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Aspect ratios */
|
/* Aspect ratios */
|
||||||
.aspect-editorial { aspect-ratio: 3 / 4; }
|
.aspect-editorial {
|
||||||
.aspect-cinema { aspect-ratio: 21 / 9; }
|
aspect-ratio: 3 / 4;
|
||||||
.aspect-portrait { aspect-ratio: 2 / 3; }
|
}
|
||||||
|
.aspect-cinema {
|
||||||
|
aspect-ratio: 21 / 9;
|
||||||
|
}
|
||||||
|
.aspect-portrait {
|
||||||
|
aspect-ratio: 2 / 3;
|
||||||
|
}
|
||||||
|
|
||||||
/* Text wrapping */
|
/* Text wrapping */
|
||||||
.text-balance { text-wrap: balance; }
|
.text-balance {
|
||||||
.text-pretty { text-wrap: pretty; }
|
text-wrap: balance;
|
||||||
|
}
|
||||||
|
.text-pretty {
|
||||||
|
text-wrap: pretty;
|
||||||
|
}
|
||||||
|
|
||||||
/* Offset shadow */
|
/* Offset shadow */
|
||||||
.shadow-comic { box-shadow: 5px 5px 0 var(--color-heat); }
|
.shadow-comic {
|
||||||
.shadow-comic-hot { box-shadow: 5px 5px 0 var(--color-heat); }
|
box-shadow: 5px 5px 0 var(--color-heat);
|
||||||
.shadow-comic-volt { box-shadow: 5px 5px 0 var(--color-lime); }
|
}
|
||||||
.shadow-comic-ice { box-shadow: 5px 5px 0 var(--color-frost); }
|
.shadow-comic-hot {
|
||||||
|
box-shadow: 5px 5px 0 var(--color-heat);
|
||||||
|
}
|
||||||
|
.shadow-comic-volt {
|
||||||
|
box-shadow: 5px 5px 0 var(--color-lime);
|
||||||
|
}
|
||||||
|
.shadow-comic-ice {
|
||||||
|
box-shadow: 5px 5px 0 var(--color-frost);
|
||||||
|
}
|
||||||
|
|
||||||
/* Text stroke — hollow headline */
|
/* Text stroke — hollow headline */
|
||||||
.text-stroke-gold { -webkit-text-stroke: 1.5px var(--color-heat); color: transparent; }
|
.text-stroke-gold {
|
||||||
.text-stroke-paper { -webkit-text-stroke: 1.5px var(--color-paper); color: transparent; }
|
-webkit-text-stroke: 1.5px var(--color-heat);
|
||||||
.text-stroke-heat { -webkit-text-stroke: 1.5px var(--color-heat); color: transparent; }
|
color: transparent;
|
||||||
.text-stroke-frost { -webkit-text-stroke: 1.5px var(--color-frost); color: transparent; }
|
}
|
||||||
|
.text-stroke-paper {
|
||||||
|
-webkit-text-stroke: 1.5px var(--color-paper);
|
||||||
|
color: transparent;
|
||||||
|
}
|
||||||
|
.text-stroke-heat {
|
||||||
|
-webkit-text-stroke: 1.5px var(--color-heat);
|
||||||
|
color: transparent;
|
||||||
|
}
|
||||||
|
.text-stroke-frost {
|
||||||
|
-webkit-text-stroke: 1.5px var(--color-frost);
|
||||||
|
color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
/* Scrollbar hide */
|
/* Scrollbar hide */
|
||||||
.scrollbar-hide { scrollbar-width: none; -ms-overflow-style: none; }
|
.scrollbar-hide {
|
||||||
.scrollbar-hide::-webkit-scrollbar { display: none; }
|
scrollbar-width: none;
|
||||||
|
-ms-overflow-style: none;
|
||||||
|
}
|
||||||
|
.scrollbar-hide::-webkit-scrollbar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Keyframes ────────────────────────────────────────────────── */
|
/* ── Keyframes ────────────────────────────────────────────────── */
|
||||||
@keyframes gradient-shift {
|
@keyframes gradient-shift {
|
||||||
0% { background-position: 0% 50%; }
|
0% {
|
||||||
50% { background-position: 100% 50%; }
|
background-position: 0% 50%;
|
||||||
100% { background-position: 0% 50%; }
|
}
|
||||||
|
50% {
|
||||||
|
background-position: 100% 50%;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
background-position: 0% 50%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes marquee-scroll {
|
@keyframes marquee-scroll {
|
||||||
to { transform: translateX(-50%); }
|
to {
|
||||||
|
transform: translateX(-50%);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes scroll-line {
|
@keyframes scroll-line {
|
||||||
0% { transform: translateY(-100%); opacity: 0; }
|
0% {
|
||||||
20% { opacity: 1; }
|
transform: translateY(-100%);
|
||||||
80% { opacity: 1; }
|
opacity: 0;
|
||||||
100% { transform: translateY(100%); opacity: 0; }
|
}
|
||||||
|
20% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
80% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
transform: translateY(100%);
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Logo glitch animation ───────────────────────────────────── */
|
/* ── Logo glitch animation ───────────────────────────────────── */
|
||||||
@keyframes glitch-clip {
|
@keyframes glitch-clip {
|
||||||
0%, 88%, 100% { transform: translate(0); clip-path: none; }
|
0%,
|
||||||
90% { transform: translate(-3px, 1px); clip-path: polygon(0 15%, 100% 15%, 100% 40%, 0 40%); }
|
88%,
|
||||||
92% { transform: translate(3px, -1px); clip-path: polygon(0 60%, 100% 60%, 100% 78%, 0 78%); }
|
100% {
|
||||||
94% { transform: translate(0); clip-path: none; }
|
transform: translate(0);
|
||||||
|
clip-path: none;
|
||||||
|
}
|
||||||
|
90% {
|
||||||
|
transform: translate(-3px, 1px);
|
||||||
|
clip-path: polygon(0 15%, 100% 15%, 100% 40%, 0 40%);
|
||||||
|
}
|
||||||
|
92% {
|
||||||
|
transform: translate(3px, -1px);
|
||||||
|
clip-path: polygon(0 60%, 100% 60%, 100% 78%, 0 78%);
|
||||||
|
}
|
||||||
|
94% {
|
||||||
|
transform: translate(0);
|
||||||
|
clip-path: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
a:hover .logo-glitch {
|
a:hover .logo-glitch {
|
||||||
@@ -591,15 +774,24 @@ footer .logo-img {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@keyframes logo-float {
|
@keyframes logo-float {
|
||||||
0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 8px rgba(255, 26, 140, 0.35)); }
|
0%,
|
||||||
50% { transform: translateY(-4px); filter: drop-shadow(0 6px 14px rgba(255, 26, 140, 0.6)); }
|
100% {
|
||||||
|
transform: translateY(0);
|
||||||
|
filter: drop-shadow(0 0 8px rgba(255, 26, 140, 0.35));
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
transform: translateY(-4px);
|
||||||
|
filter: drop-shadow(0 6px 14px rgba(255, 26, 140, 0.6));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Nav & footer link hover polish ─────────────────────────── */
|
/* ── Nav & footer link hover polish ─────────────────────────── */
|
||||||
|
|
||||||
/* Desktop nav links — lift + glow on hover */
|
/* Desktop nav links — lift + glow on hover */
|
||||||
header nav a.label {
|
header nav a.label {
|
||||||
transition: color 0.2s var(--ease-sharp), transform 0.2s var(--ease-out-expo);
|
transition:
|
||||||
|
color 0.2s var(--ease-sharp),
|
||||||
|
transform 0.2s var(--ease-out-expo);
|
||||||
}
|
}
|
||||||
header nav a.label:hover {
|
header nav a.label:hover {
|
||||||
transform: translateY(-1px);
|
transform: translateY(-1px);
|
||||||
@@ -612,7 +804,9 @@ header nav a.label span {
|
|||||||
|
|
||||||
/* Footer links — subtle lift */
|
/* Footer links — subtle lift */
|
||||||
footer nav a.label {
|
footer nav a.label {
|
||||||
transition: color 0.2s var(--ease-sharp), transform 0.2s var(--ease-out-expo);
|
transition:
|
||||||
|
color 0.2s var(--ease-sharp),
|
||||||
|
transform 0.2s var(--ease-out-expo);
|
||||||
}
|
}
|
||||||
footer nav a.label:hover {
|
footer nav a.label:hover {
|
||||||
transform: translateY(-1px);
|
transform: translateY(-1px);
|
||||||
@@ -636,10 +830,15 @@ footer nav a.label:hover svg {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@keyframes page-out {
|
@keyframes page-out {
|
||||||
to { opacity: 0; transform: translateY(-10px); }
|
to {
|
||||||
|
opacity: 0;
|
||||||
|
transform: translateY(-10px);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes page-in {
|
@keyframes page-in {
|
||||||
from { opacity: 0; transform: translateY(14px); }
|
from {
|
||||||
|
opacity: 0;
|
||||||
|
transform: translateY(14px);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+10
-5
@@ -17,7 +17,9 @@
|
|||||||
bar.style.width = "100%";
|
bar.style.width = "100%";
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
bar.style.opacity = "0";
|
bar.style.opacity = "0";
|
||||||
setTimeout(() => { bar.style.width = "0"; }, 350);
|
setTimeout(() => {
|
||||||
|
bar.style.width = "0";
|
||||||
|
}, 350);
|
||||||
}, 150);
|
}, 150);
|
||||||
});
|
});
|
||||||
})();
|
})();
|
||||||
@@ -37,9 +39,11 @@ function initLazyVideos(root) {
|
|||||||
observer.unobserve(video);
|
observer.unobserve(video);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
{ rootMargin: "300px" }
|
{ rootMargin: "300px" },
|
||||||
);
|
);
|
||||||
(root || document).querySelectorAll("video[data-src]").forEach((v) => observer.observe(v));
|
(root || document)
|
||||||
|
.querySelectorAll("video[data-src]")
|
||||||
|
.forEach((v) => observer.observe(v));
|
||||||
}
|
}
|
||||||
|
|
||||||
initLazyVideos();
|
initLazyVideos();
|
||||||
@@ -67,7 +71,9 @@ document.body.addEventListener("htmx:historyRestore", () => {
|
|||||||
bar.style.width = "100%";
|
bar.style.width = "100%";
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
bar.style.opacity = "0";
|
bar.style.opacity = "0";
|
||||||
setTimeout(() => { bar.style.width = "0"; }, 350);
|
setTimeout(() => {
|
||||||
|
bar.style.width = "0";
|
||||||
|
}, 350);
|
||||||
}, 150);
|
}, 150);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -81,4 +87,3 @@ document.body.addEventListener("htmx:historyRestore", () => {
|
|||||||
window.scrollTo({ top: 0, behavior: "instant" });
|
window.scrollTo({ top: 0, behavior: "instant" });
|
||||||
window.dispatchEvent(new Event("scroll"));
|
window.dispatchEvent(new Event("scroll"));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: "About Pivoine"
|
|||||||
description: "A magazine dedicated to the intersection of artificial intelligence and aesthetic culture."
|
description: "A magazine dedicated to the intersection of artificial intelligence and aesthetic culture."
|
||||||
---
|
---
|
||||||
|
|
||||||
*Pivoine* is an independent editorial project exploring how machine intelligence reshapes visual culture.
|
_Pivoine_ is an independent editorial project exploring how machine intelligence reshapes visual culture.
|
||||||
|
|
||||||
We publish editorial features, artist profiles, and critical essays about AI-generated art — approaching this emerging medium with the same rigour and aesthetic seriousness as any other.
|
We publish editorial features, artist profiles, and critical essays about AI-generated art — approaching this emerging medium with the same rigour and aesthetic seriousness as any other.
|
||||||
|
|
||||||
@@ -13,7 +13,7 @@ The name comes from the French word for **peony** — a flower that is both extr
|
|||||||
|
|
||||||
## What We Publish
|
## What We Publish
|
||||||
|
|
||||||
We are interested in the **editorial dimension** of AI image-making. Not the tools, not the prompts, not the speed records — but the *work* itself and the questions it raises about authorship, aesthetics, and what it means to make an image in an age when images are free.
|
We are interested in the **editorial dimension** of AI image-making. Not the tools, not the prompts, not the speed records — but the _work_ itself and the questions it raises about authorship, aesthetics, and what it means to make an image in an age when images are free.
|
||||||
|
|
||||||
Each feature is a collaboration between a human sensibility and a machine process. The artists and authors we publish treat the generator as a medium, not a shortcut.
|
Each feature is a collaboration between a human sensibility and a machine process. The artists and authors we publish treat the generator as a medium, not a shortcut.
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ description: "Legal information and editorial responsibility."
|
|||||||
|
|
||||||
## Editorial Policy
|
## Editorial Policy
|
||||||
|
|
||||||
*Pivoine* is an independent publication. All AI-generated images and videos published on this site are the creative work of the named authors using various generative AI tools. The editorial team curates, commissions, and publishes this work under the publication's name.
|
_Pivoine_ is an independent publication. All AI-generated images and videos published on this site are the creative work of the named authors using various generative AI tools. The editorial team curates, commissions, and publishes this work under the publication's name.
|
||||||
|
|
||||||
## Copyright
|
## Copyright
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ tags:
|
|||||||
- Macabre
|
- Macabre
|
||||||
slug: the-pale-pour
|
slug: the-pale-pour
|
||||||
prompt:
|
prompt:
|
||||||
scene: "A cinematic, wide-angle interior shot of a subterranean, rustic Gothic Absinthe bar. The atmosphere is thick with a swirling, ethereal green bioluminescent fog (\"The Green Fairy\"). In the center, a skeletal Grim Reaper stands behind a heavy, scarred oak bar, draped in tattered, ink-black hooded robes; his bony hands are delicately preparing a traditional absinthe drip over a silver slotted spoon and sugar cube."
|
scene: 'A cinematic, wide-angle interior shot of a subterranean, rustic Gothic Absinthe bar. The atmosphere is thick with a swirling, ethereal green bioluminescent fog ("The Green Fairy"). In the center, a skeletal Grim Reaper stands behind a heavy, scarred oak bar, draped in tattered, ink-black hooded robes; his bony hands are delicately preparing a traditional absinthe drip over a silver slotted spoon and sugar cube.'
|
||||||
environment: "Vaulted stone ceilings with cracked ribs, dripping wax from oversized iron chandeliers, walls lined with dusty, unlabeled apothecary bottles and antique mirrors showing tarnished reflections. Plush, rotting emerald velvet barstools and flickering candlelight."
|
environment: "Vaulted stone ceilings with cracked ribs, dripping wax from oversized iron chandeliers, walls lined with dusty, unlabeled apothecary bottles and antique mirrors showing tarnished reflections. Plush, rotting emerald velvet barstools and flickering candlelight."
|
||||||
style: "Moody chiaroscuro lighting, deep shadows contrasted with vibrant neon-emerald highlights. Art Nouveau accents, hyper-realistic textures of bone, aged wood, and etched glass. Dark Victorian aesthetic, macabre elegance, 8k resolution, photorealistic with a touch of oil painting gloom."
|
style: "Moody chiaroscuro lighting, deep shadows contrasted with vibrant neon-emerald highlights. Art Nouveau accents, hyper-realistic textures of bone, aged wood, and etched glass. Dark Victorian aesthetic, macabre elegance, 8k resolution, photorealistic with a touch of oil painting gloom."
|
||||||
video: "Cinematic dolly shot: The grim reaper in a dark cloak stands at a dimly lit Absinth bar, surrounded by glowing green potions. The camera slowly zooms in on the figure as he dunks a spoon in the green potion with one hand and with his other hand's index finger igniting the spoon into a small flame."
|
video: "Cinematic dolly shot: The grim reaper in a dark cloak stands at a dimly lit Absinth bar, surrounded by glowing green potions. The camera slowly zooms in on the figure as he dunks a spoon in the green potion with one hand and with his other hand's index finger igniting the spoon into a small flame."
|
||||||
|
|||||||
@@ -6,64 +6,64 @@ copyright = "© 2026 Pivoine Editorial"
|
|||||||
enableRobotsTXT = true
|
enableRobotsTXT = true
|
||||||
|
|
||||||
[pagination]
|
[pagination]
|
||||||
pagerSize = 12
|
pagerSize = 12
|
||||||
|
|
||||||
[sitemap]
|
[sitemap]
|
||||||
changefreq = "weekly"
|
changefreq = "weekly"
|
||||||
priority = 0.5
|
priority = 0.5
|
||||||
filename = "sitemap.xml"
|
filename = "sitemap.xml"
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
description = "An editorial magazine for AI-generated art and generative aesthetics."
|
description = "An editorial magazine for AI-generated art and generative aesthetics."
|
||||||
tagline = "Where the machine dreams."
|
tagline = "Where the machine dreams."
|
||||||
author = "Pivoine Editorial"
|
author = "Pivoine Editorial"
|
||||||
ogImage = "/images/og-default.jpg"
|
ogImage = "/images/og-default.jpg"
|
||||||
logoText = "PIVOINE"
|
logoText = "PIVOINE"
|
||||||
copyrightYear = "2026"
|
copyrightYear = "2026"
|
||||||
twitterHandle = "valknar100"
|
twitterHandle = "valknar100"
|
||||||
umamiSrc = "https://umami.pivoine.art/script.js"
|
umamiSrc = "https://umami.pivoine.art/script.js"
|
||||||
umamiId = "9190b814-0480-498a-b5fe-1fe1dc162766"
|
umamiId = "9190b814-0480-498a-b5fe-1fe1dc162766"
|
||||||
|
|
||||||
[params.social]
|
[params.social]
|
||||||
instagram = "https://instagram.com/valknarix"
|
instagram = "https://instagram.com/valknarix"
|
||||||
x = "https://x.com/valknar100"
|
x = "https://x.com/valknar100"
|
||||||
|
|
||||||
[taxonomies]
|
[taxonomies]
|
||||||
category = "categories"
|
category = "categories"
|
||||||
tag = "tags"
|
tag = "tags"
|
||||||
|
|
||||||
[[menus.main]]
|
[[menus.main]]
|
||||||
name = "Posts"
|
name = "Posts"
|
||||||
url = "/posts/"
|
url = "/posts/"
|
||||||
weight = 1
|
weight = 1
|
||||||
[[menus.main]]
|
[[menus.main]]
|
||||||
name = "Authors"
|
name = "Authors"
|
||||||
url = "/authors/"
|
url = "/authors/"
|
||||||
weight = 2
|
weight = 2
|
||||||
[[menus.main]]
|
[[menus.main]]
|
||||||
name = "Categories"
|
name = "Categories"
|
||||||
url = "/categories/"
|
url = "/categories/"
|
||||||
weight = 3
|
weight = 3
|
||||||
[[menus.main]]
|
[[menus.main]]
|
||||||
name = "About"
|
name = "About"
|
||||||
url = "/about/"
|
url = "/about/"
|
||||||
weight = 4
|
weight = 4
|
||||||
|
|
||||||
[[menus.footer]]
|
[[menus.footer]]
|
||||||
name = "About"
|
name = "About"
|
||||||
url = "/about/"
|
url = "/about/"
|
||||||
weight = 1
|
weight = 1
|
||||||
[[menus.footer]]
|
[[menus.footer]]
|
||||||
name = "Imprint"
|
name = "Imprint"
|
||||||
url = "/imprint/"
|
url = "/imprint/"
|
||||||
weight = 2
|
weight = 2
|
||||||
|
|
||||||
[markup.goldmark.renderer]
|
[markup.goldmark.renderer]
|
||||||
unsafe = true
|
unsafe = true
|
||||||
|
|
||||||
[markup.highlight]
|
[markup.highlight]
|
||||||
style = "dracula"
|
style = "dracula"
|
||||||
noClasses = true
|
noClasses = true
|
||||||
|
|
||||||
[build]
|
[build]
|
||||||
writeStats = true
|
writeStats = true
|
||||||
|
|||||||
+19
-13
@@ -1,10 +1,13 @@
|
|||||||
{{- define "main" -}}
|
{{- define "main" -}}
|
||||||
<section class="relative min-h-screen flex flex-col items-center justify-center overflow-hidden noise gutter-x py-32 text-center">
|
<section
|
||||||
|
class="relative min-h-screen flex flex-col items-center justify-center overflow-hidden noise gutter-x py-32 text-center"
|
||||||
|
>
|
||||||
<!-- Background texture -->
|
<!-- Background texture -->
|
||||||
<div class="absolute inset-0 speed-lines opacity-60"></div>
|
<div class="absolute inset-0 speed-lines opacity-60"></div>
|
||||||
<div class="absolute inset-0"
|
<div
|
||||||
style="background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(155,0,255,0.06) 0%, transparent 70%)"></div>
|
class="absolute inset-0"
|
||||||
|
style="background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(155,0,255,0.06) 0%, transparent 70%)"
|
||||||
|
></div>
|
||||||
|
|
||||||
<!-- Decorative hollow "404" behind everything -->
|
<!-- Decorative hollow "404" behind everything -->
|
||||||
<div class="absolute inset-0 flex items-center justify-center pointer-events-none select-none" aria-hidden="true">
|
<div class="absolute inset-0 flex items-center justify-center pointer-events-none select-none" aria-hidden="true">
|
||||||
@@ -13,12 +16,13 @@
|
|||||||
style="font-size: clamp(14rem, 40vw, 32rem);
|
style="font-size: clamp(14rem, 40vw, 32rem);
|
||||||
color: transparent;
|
color: transparent;
|
||||||
-webkit-text-stroke: 1px rgba(255,26,140,0.07);
|
-webkit-text-stroke: 1px rgba(255,26,140,0.07);
|
||||||
letter-spacing: -0.02em;">404</span>
|
letter-spacing: -0.02em;"
|
||||||
|
>404</span
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Content -->
|
<!-- Content -->
|
||||||
<div class="relative z-10 flex flex-col items-center gap-6 max-w-2xl mx-auto">
|
<div class="relative z-10 flex flex-col items-center gap-6 max-w-2xl mx-auto">
|
||||||
|
|
||||||
<!-- Eyebrow badge -->
|
<!-- Eyebrow badge -->
|
||||||
<span class="badge badge-gradient" style="animation: mob-link-in 0.5s var(--ease-out-expo) 0ms both">
|
<span class="badge badge-gradient" style="animation: mob-link-in 0.5s var(--ease-out-expo) 0ms both">
|
||||||
Error 404
|
Error 404
|
||||||
@@ -30,7 +34,7 @@
|
|||||||
style="font-size: clamp(4rem, 14vw, 10rem);
|
style="font-size: clamp(4rem, 14vw, 10rem);
|
||||||
animation: mob-link-in 0.6s var(--ease-out-expo) 80ms both"
|
animation: mob-link-in 0.6s var(--ease-out-expo) 80ms both"
|
||||||
>
|
>
|
||||||
<span class="text-stroke-heat">PAGE</span><br>
|
<span class="text-stroke-heat">PAGE</span><br />
|
||||||
<span class="text-gradient">NOT FOUND</span>
|
<span class="text-gradient">NOT FOUND</span>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
@@ -46,12 +50,13 @@
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<!-- CTA -->
|
<!-- CTA -->
|
||||||
<div class="flex flex-wrap gap-4 justify-center"
|
<div
|
||||||
style="animation: mob-link-in 0.5s var(--ease-out-expo) 340ms both">
|
class="flex flex-wrap gap-4 justify-center"
|
||||||
|
style="animation: mob-link-in 0.5s var(--ease-out-expo) 340ms both"
|
||||||
|
>
|
||||||
<a href="/" class="btn">Back to the Drop {{ partial "icon.html" "arrow-right" }}</a>
|
<a href="/" class="btn">Back to the Drop {{ partial "icon.html" "arrow-right" }}</a>
|
||||||
<a href="/posts/" class="btn btn-ghost">Browse all posts {{ partial "icon.html" "arrow-right" }}</a>
|
<a href="/posts/" class="btn btn-ghost">Browse all posts {{ partial "icon.html" "arrow-right" }}</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Bottom graffiti tag -->
|
<!-- Bottom graffiti tag -->
|
||||||
@@ -59,7 +64,8 @@
|
|||||||
class="graffiti-tag absolute -bottom-6 left-1/2 -translate-x-1/2 select-none pointer-events-none whitespace-nowrap"
|
class="graffiti-tag absolute -bottom-6 left-1/2 -translate-x-1/2 select-none pointer-events-none whitespace-nowrap"
|
||||||
style="-webkit-text-stroke-color: rgba(0,200,255,0.05);"
|
style="-webkit-text-stroke-color: rgba(0,200,255,0.05);"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
>LOST</div>
|
>
|
||||||
|
LOST
|
||||||
</section>
|
</div>
|
||||||
|
</section>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -1,17 +1,16 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="{{ .Site.LanguageCode }}" class="scroll-smooth">
|
<html lang="{{ .Site.LanguageCode }}" class="scroll-smooth">
|
||||||
<head>
|
<head>
|
||||||
{{- partial "head.html" . -}}
|
{{- partial "head.html" . -}}
|
||||||
</head>
|
</head>
|
||||||
<body
|
<body
|
||||||
class="bg-void text-paper font-body min-h-screen flex flex-col antialiased"
|
class="bg-void text-paper font-body min-h-screen flex flex-col antialiased"
|
||||||
hx-boost="true"
|
hx-boost="true"
|
||||||
hx-select="#main-content"
|
hx-select="#main-content"
|
||||||
hx-target="#main-content"
|
hx-target="#main-content"
|
||||||
hx-swap="outerHTML"
|
hx-swap="outerHTML"
|
||||||
hx-push-url="true"
|
hx-push-url="true"
|
||||||
>
|
>
|
||||||
|
|
||||||
<!-- HTMX transition progress bar -->
|
<!-- HTMX transition progress bar -->
|
||||||
<div id="progress-bar" aria-hidden="true"></div>
|
<div id="progress-bar" aria-hidden="true"></div>
|
||||||
|
|
||||||
@@ -19,12 +18,14 @@
|
|||||||
|
|
||||||
{{- block "page-background" . -}}{{- end -}}
|
{{- block "page-background" . -}}{{- end -}}
|
||||||
|
|
||||||
|
|
||||||
<main id="main-content" class="flex-1" hx-history-elt>
|
<main id="main-content" class="flex-1" hx-history-elt>
|
||||||
{{- block "main" . }}{{- end }}
|
{{- block "main" . }}{{- end }}
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
{{- partial "footer.html" . -}}
|
{{- partial "footer.html" . -}}
|
||||||
|
|
||||||
|
|
||||||
<!-- ── Global lightbox — lives outside #main-content so HTMX never touches it -->
|
<!-- ── Global lightbox — lives outside #main-content so HTMX never touches it -->
|
||||||
<div
|
<div
|
||||||
x-data="{
|
x-data="{
|
||||||
@@ -57,30 +58,47 @@
|
|||||||
aria-label="Media lightbox"
|
aria-label="Media lightbox"
|
||||||
>
|
>
|
||||||
<!-- Top chrome bar -->
|
<!-- Top chrome bar -->
|
||||||
<div class="absolute top-0 inset-x-0 z-10 flex items-center justify-between px-2 h-14"
|
<div
|
||||||
style="background: linear-gradient(to bottom, rgba(5,5,16,0.85), transparent)">
|
class="absolute top-0 inset-x-0 z-10 flex items-center justify-between px-2 h-14"
|
||||||
|
style="background: linear-gradient(to bottom, rgba(5,5,16,0.85), transparent)"
|
||||||
|
>
|
||||||
<div class="absolute top-0 inset-x-0 h-px gradient-line"></div>
|
<div class="absolute top-0 inset-x-0 h-px gradient-line"></div>
|
||||||
<div class="w-24"></div>
|
<div class="w-24"></div>
|
||||||
<div class="label text-fog tabular-nums"
|
<div
|
||||||
x-text="items.length ? `${String(idx + 1).padStart(2,'0')} / ${String(items.length).padStart(2,'0')}` : ''"></div>
|
class="label text-fog tabular-nums"
|
||||||
|
x-text="items.length ? `${String(idx + 1).padStart(2,'0')} / ${String(items.length).padStart(2,'0')}` : ''"
|
||||||
|
></div>
|
||||||
<div class="flex items-center w-24 justify-end gap-1">
|
<div class="flex items-center w-24 justify-end gap-1">
|
||||||
<button @click="fill = !fill"
|
<button
|
||||||
|
@click="fill = !fill"
|
||||||
class="w-10 h-10 flex items-center justify-center label transition-colors"
|
class="w-10 h-10 flex items-center justify-center label transition-colors"
|
||||||
:class="fill ? 'text-heat hover:text-chalk' : 'text-fog hover:text-heat'"
|
:class="fill ? 'text-heat hover:text-chalk' : 'text-fog hover:text-heat'"
|
||||||
:aria-label="fill ? 'Switch to fit mode' : 'Switch to fill mode'"
|
:aria-label="fill ? 'Switch to fit mode' : 'Switch to fill mode'"
|
||||||
x-text="fill ? 'FIT' : 'FILL'"></button>
|
x-text="fill ? 'FIT' : 'FILL'"
|
||||||
<button @click="close()"
|
></button>
|
||||||
|
<button
|
||||||
|
@click="close()"
|
||||||
class="w-10 h-10 flex items-center justify-center label text-fog hover:text-chalk transition-colors"
|
class="w-10 h-10 flex items-center justify-center label text-fog hover:text-chalk transition-colors"
|
||||||
aria-label="Close">✕</button>
|
aria-label="Close"
|
||||||
|
>
|
||||||
|
✕
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- Prev -->
|
<!-- Prev -->
|
||||||
<button @click="prev()" x-show="items.length > 1"
|
<button
|
||||||
|
@click="prev()"
|
||||||
|
x-show="items.length > 1"
|
||||||
class="absolute left-2 top-1/2 -translate-y-1/2 z-10 w-10 h-10 md:w-12 md:h-12 flex items-center justify-center text-fog hover:text-heat transition-colors text-xl"
|
class="absolute left-2 top-1/2 -translate-y-1/2 z-10 w-10 h-10 md:w-12 md:h-12 flex items-center justify-center text-fog hover:text-heat transition-colors text-xl"
|
||||||
aria-label="Previous">{{- partial "icon.html" "arrow-left" -}}</button>
|
aria-label="Previous"
|
||||||
|
>
|
||||||
|
{{- partial "icon.html" "arrow-left" -}}
|
||||||
|
</button>
|
||||||
<!-- Media -->
|
<!-- Media -->
|
||||||
<div class="absolute inset-0 flex items-center justify-center transition-[padding] duration-300"
|
<div
|
||||||
:class="fill ? 'p-0' : 'pt-14 pb-14 px-14 md:px-20'">
|
class="absolute inset-0 flex items-center justify-center transition-[padding] duration-300"
|
||||||
|
:class="fill ? 'p-0' : 'pt-14 pb-14 px-14 md:px-20'"
|
||||||
|
>
|
||||||
<video
|
<video
|
||||||
x-show="items[idx] && items[idx].video"
|
x-show="items[idx] && items[idx].video"
|
||||||
:src="items[idx] && items[idx].video ? items[idx].video : ''"
|
:src="items[idx] && items[idx].video ? items[idx].video : ''"
|
||||||
@@ -88,28 +106,42 @@
|
|||||||
x-effect="if (open && items[idx] && items[idx].video) { $el.load(); $el.play() }"
|
x-effect="if (open && items[idx] && items[idx].video) { $el.load(); $el.play() }"
|
||||||
:class="fill ? 'w-full h-full object-cover' : 'max-w-full max-h-full object-contain'"
|
:class="fill ? 'w-full h-full object-cover' : 'max-w-full max-h-full object-contain'"
|
||||||
class="transition-all duration-300"
|
class="transition-all duration-300"
|
||||||
controls loop muted playsinline></video>
|
controls
|
||||||
|
loop
|
||||||
|
muted
|
||||||
|
playsinline
|
||||||
|
></video>
|
||||||
<img
|
<img
|
||||||
x-show="items[idx] && !items[idx].video"
|
x-show="items[idx] && !items[idx].video"
|
||||||
:src="items[idx] && !items[idx].video ? items[idx].img : ''"
|
:src="items[idx] && !items[idx].video ? items[idx].img : ''"
|
||||||
alt=""
|
alt=""
|
||||||
:class="fill ? 'w-full h-full object-cover' : 'max-w-full max-h-full object-contain'"
|
:class="fill ? 'w-full h-full object-cover' : 'max-w-full max-h-full object-contain'"
|
||||||
class="transition-all duration-300">
|
class="transition-all duration-300"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<!-- Next -->
|
<!-- Next -->
|
||||||
<button @click="next()" x-show="items.length > 1"
|
<button
|
||||||
|
@click="next()"
|
||||||
|
x-show="items.length > 1"
|
||||||
class="absolute right-2 top-1/2 -translate-y-1/2 z-10 w-10 h-10 md:w-12 md:h-12 flex items-center justify-center text-fog hover:text-heat transition-colors text-xl"
|
class="absolute right-2 top-1/2 -translate-y-1/2 z-10 w-10 h-10 md:w-12 md:h-12 flex items-center justify-center text-fog hover:text-heat transition-colors text-xl"
|
||||||
aria-label="Next">{{- partial "icon.html" "arrow-right" -}}</button>
|
aria-label="Next"
|
||||||
|
>
|
||||||
|
{{- partial "icon.html" "arrow-right" -}}
|
||||||
|
</button>
|
||||||
<!-- Dots -->
|
<!-- Dots -->
|
||||||
<div x-show="items.length > 1"
|
<div
|
||||||
|
x-show="items.length > 1"
|
||||||
class="absolute bottom-0 inset-x-0 z-10 flex items-center justify-center h-14 gap-2"
|
class="absolute bottom-0 inset-x-0 z-10 flex items-center justify-center h-14 gap-2"
|
||||||
style="background: linear-gradient(to top, rgba(5,5,16,0.85), transparent)">
|
style="background: linear-gradient(to top, rgba(5,5,16,0.85), transparent)"
|
||||||
|
>
|
||||||
<div class="absolute bottom-0 inset-x-0 h-px gradient-line"></div>
|
<div class="absolute bottom-0 inset-x-0 h-px gradient-line"></div>
|
||||||
<template x-for="(item, i) in items" :key="i">
|
<template x-for="(item, i) in items" :key="i">
|
||||||
<button @click="idx = i"
|
<button
|
||||||
|
@click="idx = i"
|
||||||
class="h-1.5 rounded-full transition-all duration-300"
|
class="h-1.5 rounded-full transition-all duration-300"
|
||||||
:class="i === idx ? 'w-5 bg-heat' : 'w-1.5 bg-fog hover:bg-chalk'"
|
:class="i === idx ? 'w-5 bg-heat' : 'w-1.5 bg-fog hover:bg-chalk'"
|
||||||
:aria-label="`Go to item ${i + 1}`"></button>
|
:aria-label="`Go to item ${i + 1}`"
|
||||||
|
></button>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -118,9 +150,9 @@
|
|||||||
<script src="https://unpkg.com/htmx.org@2.0.4/dist/htmx.min.js"></script>
|
<script src="https://unpkg.com/htmx.org@2.0.4/dist/htmx.min.js"></script>
|
||||||
<!-- Alpine.js store initialisation (must run before alpine:init) -->
|
<!-- Alpine.js store initialisation (must run before alpine:init) -->
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener('alpine:init', () => {
|
document.addEventListener("alpine:init", () => {
|
||||||
Alpine.store('nav', { path: window.location.pathname, open: false })
|
Alpine.store("nav", { path: window.location.pathname, open: false });
|
||||||
})
|
});
|
||||||
</script>
|
</script>
|
||||||
<!-- Alpine.js (reactive UI — nav, interactions) -->
|
<!-- Alpine.js (reactive UI — nav, interactions) -->
|
||||||
<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.14.8/dist/cdn.min.js"></script>
|
<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.14.8/dist/cdn.min.js"></script>
|
||||||
@@ -129,7 +161,11 @@
|
|||||||
{{- if eq hugo.Environment "production" -}}
|
{{- if eq hugo.Environment "production" -}}
|
||||||
{{- $js = $js | minify | fingerprint "sha256" -}}
|
{{- $js = $js | minify | fingerprint "sha256" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
<script src="{{ $js.RelPermalink }}"{{ if eq hugo.Environment "production" }} integrity="{{ $js.Data.Integrity }}"{{ end }} defer></script>
|
<script
|
||||||
|
src="{{ $js.RelPermalink }}"
|
||||||
|
{{ if eq hugo.Environment "production" }}integrity="{{ $js.Data.Integrity }}"{{ end }}
|
||||||
|
defer
|
||||||
|
></script>
|
||||||
|
|
||||||
{{- block "scripts" . }}{{- end }}
|
{{- block "scripts" . }}{{- end }}
|
||||||
|
|
||||||
@@ -137,5 +173,5 @@
|
|||||||
<!-- Umami analytics — cookie-free, self-hosted -->
|
<!-- Umami analytics — cookie-free, self-hosted -->
|
||||||
<script defer src="{{ .Site.Params.umamiSrc }}" data-website-id="{{ .Site.Params.umamiId }}"></script>
|
<script defer src="{{ .Site.Params.umamiSrc }}" data-website-id="{{ .Site.Params.umamiId }}"></script>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
{{- define "main" -}}
|
{{- define "main" -}}
|
||||||
|
<!-- Page header -->
|
||||||
<!-- Page header -->
|
<header class="gutter-x pt-36 pb-14 border-b border-zinc speed-lines">
|
||||||
<header class="gutter-x pt-36 pb-14 border-b border-zinc speed-lines">
|
|
||||||
<div class="max-w-4xl">
|
<div class="max-w-4xl">
|
||||||
{{- with .Data.Singular -}}
|
{{- with .Data.Singular -}}
|
||||||
<span class="badge badge-pulse mb-5 inline-block">{{ . | title }}</span>
|
<span class="badge badge-pulse mb-5 inline-block">{{ . | title }}</span>
|
||||||
@@ -13,12 +12,12 @@
|
|||||||
<p class="text-chalk text-lg mt-5 max-w-xl leading-relaxed text-pretty font-body">{{ . }}</p>
|
<p class="text-chalk text-lg mt-5 max-w-xl leading-relaxed text-pretty font-body">{{ . }}</p>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="gradient-line"></div>
|
<div class="gradient-line"></div>
|
||||||
|
|
||||||
<!-- Posts grid -->
|
<!-- Posts grid -->
|
||||||
<section class="gutter-x py-16 md:py-24">
|
<section class="gutter-x py-16 md:py-24">
|
||||||
{{- if .Paginator.Pages -}}
|
{{- if .Paginator.Pages -}}
|
||||||
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-5">
|
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-5">
|
||||||
{{- range .Paginator.Pages -}}
|
{{- range .Paginator.Pages -}}
|
||||||
@@ -29,6 +28,5 @@
|
|||||||
{{- else -}}
|
{{- else -}}
|
||||||
<p class="label text-fog text-center py-24">No posts yet.</p>
|
<p class="label text-fog text-center py-24">No posts yet.</p>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -1,18 +1,16 @@
|
|||||||
{{- define "main" -}}
|
{{- define "main" -}}
|
||||||
|
<!-- Page header -->
|
||||||
<!-- Page header -->
|
<header class="gutter-x pt-36 pb-16 border-b border-mist">
|
||||||
<header class="gutter-x pt-36 pb-16 border-b border-mist">
|
|
||||||
<div class="max-w-3xl">
|
<div class="max-w-3xl">
|
||||||
<h1 class="font-display text-5xl md:text-7xl text-paper text-balance mb-5">{{ .Title }}</h1>
|
<h1 class="font-display text-5xl md:text-7xl text-paper text-balance mb-5">{{ .Title }}</h1>
|
||||||
{{- with .Description -}}
|
{{- with .Description -}}
|
||||||
<p class="text-chalk text-xl leading-relaxed text-pretty">{{ . }}</p>
|
<p class="text-chalk text-xl leading-relaxed text-pretty">{{ . }}</p>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<!-- Page content -->
|
<!-- Page content -->
|
||||||
<article class="gutter-x py-16 md:py-24 max-w-3xl prose-editorial">
|
<article class="gutter-x py-16 md:py-24 max-w-3xl prose-editorial">
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
+14
-11
@@ -1,17 +1,16 @@
|
|||||||
{{- define "main" -}}
|
{{- define "main" -}}
|
||||||
|
<!-- Taxonomy header -->
|
||||||
<!-- Taxonomy header -->
|
<header class="gutter-x pt-36 pb-14 border-b border-zinc speed-lines">
|
||||||
<header class="gutter-x pt-36 pb-14 border-b border-zinc speed-lines">
|
|
||||||
<div class="max-w-4xl">
|
<div class="max-w-4xl">
|
||||||
<span class="badge badge-frost text-void mb-5 inline-block">Browse</span>
|
<span class="badge badge-frost text-void mb-5 inline-block">Browse</span>
|
||||||
<h1 class="font-display text-5xl md:text-7xl text-paper leading-none">{{ .Title }}</h1>
|
<h1 class="font-display text-5xl md:text-7xl text-paper leading-none">{{ .Title }}</h1>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="gradient-line"></div>
|
<div class="gradient-line"></div>
|
||||||
|
|
||||||
<!-- Terms badge cloud -->
|
<!-- Terms badge cloud -->
|
||||||
<section class="gutter-x py-16 md:py-24">
|
<section class="gutter-x py-16 md:py-24">
|
||||||
{{- if .Data.Terms -}}
|
{{- if .Data.Terms -}}
|
||||||
<div class="flex flex-wrap gap-4">
|
<div class="flex flex-wrap gap-4">
|
||||||
{{- range .Data.Terms.Alphabetical -}}
|
{{- range .Data.Terms.Alphabetical -}}
|
||||||
@@ -19,14 +18,18 @@
|
|||||||
href="{{ .Page.RelPermalink }}"
|
href="{{ .Page.RelPermalink }}"
|
||||||
class="group card-comic flex items-baseline gap-3 bg-concrete px-5 py-4 hover:border-heat transition-all"
|
class="group card-comic flex items-baseline gap-3 bg-concrete px-5 py-4 hover:border-heat transition-all"
|
||||||
>
|
>
|
||||||
<span class="font-display text-2xl text-paper group-hover:text-heat transition-colors leading-none">{{ .Page.Title }}</span>
|
<span class="font-display text-2xl text-paper group-hover:text-heat transition-colors leading-none"
|
||||||
<span class="badge badge-outline text-xs ml-1 group-hover:bg-heat group-hover:text-white group-hover:border-heat transition-all">{{ .Count }}</span>
|
>{{ .Page.Title }}</span
|
||||||
|
>
|
||||||
|
<span
|
||||||
|
class="badge badge-outline text-xs ml-1 group-hover:bg-heat group-hover:text-white group-hover:border-heat transition-all"
|
||||||
|
>{{ .Count }}</span
|
||||||
|
>
|
||||||
</a>
|
</a>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
<p class="label text-fog text-center py-24">No entries yet.</p>
|
<p class="label text-fog text-center py-24">No entries yet.</p>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
+19
-14
@@ -1,23 +1,25 @@
|
|||||||
{{- define "main" -}}
|
{{- define "main" -}}
|
||||||
|
<!-- Header -->
|
||||||
<!-- Header -->
|
<header class="gutter-x pt-36 pb-14 border-b border-zinc speed-lines">
|
||||||
<header class="gutter-x pt-36 pb-14 border-b border-zinc speed-lines">
|
|
||||||
<span class="badge badge-frost text-void mb-5 inline-block">Contributors</span>
|
<span class="badge badge-frost text-void mb-5 inline-block">Contributors</span>
|
||||||
<h1 class="font-display text-5xl md:text-7xl text-paper leading-none">Authors</h1>
|
<h1 class="font-display text-5xl md:text-7xl text-paper leading-none">Authors</h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="gradient-line"></div>
|
<div class="gradient-line"></div>
|
||||||
|
|
||||||
<!-- Authors grid -->
|
<!-- Authors grid -->
|
||||||
<section class="gutter-x py-16 md:py-24">
|
<section class="gutter-x py-16 md:py-24">
|
||||||
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6">
|
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6">
|
||||||
{{- range .Pages -}}
|
{{- range .Pages -}}
|
||||||
<a href="{{ .RelPermalink }}" class="group card-comic flex flex-col items-start gap-5 p-6 bg-concrete">
|
<a href="{{ .RelPermalink }}" class="group card-comic flex flex-col items-start gap-5 p-6 bg-concrete">
|
||||||
|
|
||||||
<!-- Avatar — bundle avatar.* first, fall back to .Params.avatar -->
|
<!-- Avatar — bundle avatar.* first, fall back to .Params.avatar -->
|
||||||
{{- $avatarRes := .Resources.GetMatch "avatar.*" -}}
|
{{- $avatarRes := .Resources.GetMatch "avatar.*" -}}
|
||||||
{{- $avatarSrc := "" -}}
|
{{- $avatarSrc := "" -}}
|
||||||
{{- with $avatarRes }}{{ $avatarSrc = .RelPermalink }}{{ else }}{{ with $.Params.avatar }}{{ $avatarSrc = . }}{{ end }}{{ end -}}
|
{{- with $avatarRes }}
|
||||||
|
{{ $avatarSrc = .RelPermalink }}
|
||||||
|
{{ else }}
|
||||||
|
{{ with $.Params.avatar }}{{ $avatarSrc = . }}{{ end }}
|
||||||
|
{{ end -}}
|
||||||
{{- if $avatarSrc -}}
|
{{- if $avatarSrc -}}
|
||||||
<div class="w-20 h-20 overflow-hidden border border-zinc group-hover:border-heat transition-colors">
|
<div class="w-20 h-20 overflow-hidden border border-zinc group-hover:border-heat transition-colors">
|
||||||
<img
|
<img
|
||||||
@@ -25,7 +27,7 @@
|
|||||||
alt="{{ .Params.name | default .Title }}"
|
alt="{{ .Params.name | default .Title }}"
|
||||||
class="w-full h-full object-cover transition-transform duration-700 group-hover:scale-105"
|
class="w-full h-full object-cover transition-transform duration-700 group-hover:scale-105"
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
<div class="w-20 h-20 bg-zinc border border-zinc flex items-center justify-center">
|
<div class="w-20 h-20 bg-zinc border border-zinc flex items-center justify-center">
|
||||||
@@ -33,6 +35,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
|
||||||
<!-- Info -->
|
<!-- Info -->
|
||||||
<div class="flex-1">
|
<div class="flex-1">
|
||||||
<h2 class="font-display text-xl text-paper group-hover:text-heat transition-colors mb-2 leading-none">
|
<h2 class="font-display text-xl text-paper group-hover:text-heat transition-colors mb-2 leading-none">
|
||||||
@@ -43,12 +46,14 @@
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<span class="badge badge-outline group-hover:bg-heat group-hover:text-white group-hover:border-heat transition-all mt-auto">
|
<span
|
||||||
View works {{ partial "icon.html" "arrow-right" }}
|
class="badge badge-outline group-hover:bg-heat group-hover:text-white group-hover:border-heat transition-all mt-auto"
|
||||||
|
>
|
||||||
|
View works
|
||||||
|
{{ partial "icon.html" "arrow-right" }}
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
+39
-31
@@ -1,16 +1,20 @@
|
|||||||
{{- define "main" -}}
|
{{- define "main" -}}
|
||||||
{{- $slug := .File.Dir | strings.TrimSuffix "/" | path.Base -}}
|
{{- $slug := .File.Dir | strings.TrimSuffix "/" | path.Base -}}
|
||||||
{{- $posts := where .Site.RegularPages "Params.author" $slug -}}
|
{{- $posts := where .Site.RegularPages "Params.author" $slug -}}
|
||||||
|
|
||||||
<!-- ── PROFILE HEADER ────────────────────────────────────────── -->
|
|
||||||
<header class="gutter-x pt-36 pb-20 border-b border-zinc speed-lines">
|
<!-- ── PROFILE HEADER ────────────────────────────────────────── -->
|
||||||
|
<header class="gutter-x pt-36 pb-20 border-b border-zinc speed-lines">
|
||||||
<div class="max-w-5xl mx-auto">
|
<div class="max-w-5xl mx-auto">
|
||||||
<div class="flex flex-col md:flex-row gap-10 md:gap-16 items-start">
|
<div class="flex flex-col md:flex-row gap-10 md:gap-16 items-start">
|
||||||
|
|
||||||
<!-- Avatar — page bundle avatar.* takes precedence, falls back to .Params.avatar -->
|
<!-- Avatar — page bundle avatar.* takes precedence, falls back to .Params.avatar -->
|
||||||
{{- $avatarRes := .Resources.GetMatch "avatar.*" -}}
|
{{- $avatarRes := .Resources.GetMatch "avatar.*" -}}
|
||||||
{{- $avatarSrc := "" -}}
|
{{- $avatarSrc := "" -}}
|
||||||
{{- with $avatarRes }}{{ $avatarSrc = .RelPermalink }}{{ else }}{{ with $.Params.avatar }}{{ $avatarSrc = . }}{{ end }}{{ end -}}
|
{{- with $avatarRes }}
|
||||||
|
{{ $avatarSrc = .RelPermalink }}
|
||||||
|
{{ else }}
|
||||||
|
{{ with $.Params.avatar }}{{ $avatarSrc = . }}{{ end }}
|
||||||
|
{{ end -}}
|
||||||
{{- if $avatarSrc -}}
|
{{- if $avatarSrc -}}
|
||||||
<div class="flex-shrink-0 w-36 h-36 md:w-48 md:h-48 overflow-hidden border-2 border-heat neon-heat">
|
<div class="flex-shrink-0 w-36 h-36 md:w-48 md:h-48 overflow-hidden border-2 border-heat neon-heat">
|
||||||
<img
|
<img
|
||||||
@@ -18,14 +22,17 @@
|
|||||||
alt="{{ .Params.name | default .Title }}"
|
alt="{{ .Params.name | default .Title }}"
|
||||||
class="w-full h-full object-cover"
|
class="w-full h-full object-cover"
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
<div class="flex-shrink-0 w-36 h-36 md:w-48 md:h-48 bg-concrete border-2 border-zinc flex items-center justify-center">
|
<div
|
||||||
|
class="flex-shrink-0 w-36 h-36 md:w-48 md:h-48 bg-concrete border-2 border-zinc flex items-center justify-center"
|
||||||
|
>
|
||||||
<span class="font-display text-5xl text-smoke">{{ substr (.Params.name | default .Title) 0 1 }}</span>
|
<span class="font-display text-5xl text-smoke">{{ substr (.Params.name | default .Title) 0 1 }}</span>
|
||||||
</div>
|
</div>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
|
||||||
<!-- Info -->
|
<!-- Info -->
|
||||||
<div class="flex-1 min-w-0">
|
<div class="flex-1 min-w-0">
|
||||||
<span class="badge badge-gradient mb-5 inline-block">Artist</span>
|
<span class="badge badge-gradient mb-5 inline-block">Artist</span>
|
||||||
@@ -36,44 +43,45 @@
|
|||||||
<p class="text-chalk text-lg max-w-2xl leading-relaxed text-pretty mb-8 font-body font-light">{{ . }}</p>
|
<p class="text-chalk text-lg max-w-2xl leading-relaxed text-pretty mb-8 font-body font-light">{{ . }}</p>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
|
||||||
<!-- Social links — values may be full URLs or bare slugs -->
|
<!-- Social links — values may be full URLs or bare slugs -->
|
||||||
{{- with .Params.social -}}
|
{{- with .Params.social -}}
|
||||||
{{- $bases := dict "instagram" "https://instagram.com/" "x" "https://x.com/" "twitter" "https://x.com/" "github" "https://github.com/" "behance" "https://www.behance.net/" "artstation" "https://www.artstation.com/" -}}
|
{{- $bases := dict "instagram" "https://instagram.com/" "x" "https://x.com/" "twitter" "https://x.com/" "github" "https://github.com/" "behance" "https://www.behance.net/" "artstation" "https://www.artstation.com/" -}}
|
||||||
<div class="flex flex-wrap gap-3">
|
<div class="flex flex-wrap gap-3">
|
||||||
{{- range $platform, $handle := . -}}
|
{{- range $platform, $handle := . -}}
|
||||||
{{- $href := cond (hasPrefix $handle "http") $handle (printf "%s%s" (index $bases $platform | default "#") $handle) -}}
|
{{- $href := cond (hasPrefix $handle "http") $handle (printf "%s%s" (index $bases $platform | default "#") $handle) -}}
|
||||||
<a
|
<a href="{{ $href }}" target="_blank" rel="noopener noreferrer" class="badge badge-outline"
|
||||||
href="{{ $href }}"
|
>{{ $platform | upper }} {{ partial "icon.html" "arrow-external" }}</a
|
||||||
target="_blank"
|
>
|
||||||
rel="noopener noreferrer"
|
|
||||||
class="badge badge-outline"
|
|
||||||
>{{ $platform | upper }} {{ partial "icon.html" "arrow-external" }}</a>
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
|
||||||
<!-- Post count -->
|
<!-- Post count -->
|
||||||
{{- if $posts -}}
|
{{- if $posts -}}
|
||||||
<p class="label text-fog mt-6">{{ len $posts }} {{ if eq (len $posts) 1 }}editorial{{ else }}editorials{{ end }}</p>
|
<p class="label text-fog mt-6">
|
||||||
|
{{ len $posts }} {{ if eq (len $posts) 1 }}editorial{{ else }}editorials{{ end }}
|
||||||
|
</p>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="gradient-line"></div>
|
<div class="gradient-line"></div>
|
||||||
|
|
||||||
<!-- ── AUTHOR BIO (Markdown body) ────────────────────────────── -->
|
<!-- ── AUTHOR BIO (Markdown body) ────────────────────────────── -->
|
||||||
{{- with .Content -}}
|
{{- with .Content -}}
|
||||||
<div class="gutter-x py-12 border-b border-zinc">
|
<div class="gutter-x py-12 border-b border-zinc">
|
||||||
<div class="max-w-5xl mx-auto prose-editorial">{{ . }}</div>
|
<div class="max-w-5xl mx-auto prose-editorial">{{ . }}</div>
|
||||||
</div>
|
</div>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
<!-- ── AUTHOR'S POSTS ─────────────────────────────────────────── -->
|
|
||||||
{{- if $posts -}}
|
<!-- ── AUTHOR'S POSTS ─────────────────────────────────────────── -->
|
||||||
<section class="gutter-x py-16 md:py-24">
|
{{- if $posts -}}
|
||||||
|
<section class="gutter-x py-16 md:py-24">
|
||||||
<div class="max-w-5xl mx-auto">
|
<div class="max-w-5xl mx-auto">
|
||||||
<div class="flex items-center gap-5 mb-10">
|
<div class="flex items-center gap-5 mb-10">
|
||||||
<h2 class="font-display text-3xl md:text-5xl text-paper leading-none">
|
<h2 class="font-display text-3xl md:text-5xl text-paper leading-none">
|
||||||
@@ -87,11 +95,11 @@
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
<div class="gutter-x py-24 text-center">
|
<div class="gutter-x py-24 text-center">
|
||||||
<p class="label text-fog">No editorials published yet.</p>
|
<p class="label text-fog">No editorials published yet.</p>
|
||||||
</div>
|
</div>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -1,16 +1,17 @@
|
|||||||
{{- define "main" -}}
|
{{- define "main" -}}
|
||||||
|
<!-- Category header -->
|
||||||
<!-- Category header -->
|
<header class="gutter-x pt-36 pb-16 border-b border-mist">
|
||||||
<header class="gutter-x pt-36 pb-16 border-b border-mist">
|
|
||||||
<div class="max-w-4xl">
|
<div class="max-w-4xl">
|
||||||
<span class="label text-ash block mb-4">Category</span>
|
<span class="label text-ash block mb-4">Category</span>
|
||||||
<h1 class="font-display text-5xl md:text-7xl text-paper text-balance">{{ .Title }}</h1>
|
<h1 class="font-display text-5xl md:text-7xl text-paper text-balance">{{ .Title }}</h1>
|
||||||
<p class="text-ash label mt-5">{{ len .Pages }} {{ if eq (len .Pages) 1 }}editorial{{ else }}editorials{{ end }}</p>
|
<p class="text-ash label mt-5">
|
||||||
|
{{ len .Pages }} {{ if eq (len .Pages) 1 }}editorial{{ else }}editorials{{ end }}
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<!-- Posts grid -->
|
<!-- Posts grid -->
|
||||||
<section class="gutter-x py-16 md:py-24">
|
<section class="gutter-x py-16 md:py-24">
|
||||||
{{- if .Paginator.Pages -}}
|
{{- if .Paginator.Pages -}}
|
||||||
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-x-5 gap-y-12">
|
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-x-5 gap-y-12">
|
||||||
{{- range .Paginator.Pages -}}
|
{{- range .Paginator.Pages -}}
|
||||||
@@ -21,6 +22,5 @@
|
|||||||
{{- else -}}
|
{{- else -}}
|
||||||
<p class="text-ash label text-center py-24">No posts in this category yet.</p>
|
<p class="text-ash label text-center py-24">No posts in this category yet.</p>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
+57
-33
@@ -1,13 +1,13 @@
|
|||||||
{{- define "main" -}}
|
{{- define "main" -}}
|
||||||
{{- $posts := where .Site.RegularPages "Section" "posts" -}}
|
{{- $posts := where .Site.RegularPages "Section" "posts" -}}
|
||||||
{{- $featured := where $posts "Params.featured" true -}}
|
{{- $featured := where $posts "Params.featured" true -}}
|
||||||
{{- $hero := index $featured 0 -}}
|
{{- $hero := index $featured 0 -}}
|
||||||
{{- $latest := where $posts "Permalink" "ne" $hero.Permalink -}}
|
{{- $latest := where $posts "Permalink" "ne" $hero.Permalink -}}
|
||||||
|
|
||||||
<!-- ── HERO ──────────────────────────────────────────────────── -->
|
|
||||||
{{- with $hero -}}
|
|
||||||
<section class="relative min-h-screen flex items-end overflow-hidden noise">
|
|
||||||
|
|
||||||
|
<!-- ── HERO ──────────────────────────────────────────────────── -->
|
||||||
|
{{- with $hero -}}
|
||||||
|
<section class="relative min-h-screen flex items-end overflow-hidden noise">
|
||||||
<!-- Background media — bundle banner.png first, fallback to front matter -->
|
<!-- Background media — bundle banner.png first, fallback to front matter -->
|
||||||
{{- $heroBanner := .Resources.GetMatch "banner.png" -}}
|
{{- $heroBanner := .Resources.GetMatch "banner.png" -}}
|
||||||
{{- if not $heroBanner -}}{{- $heroBanner = .Resources.GetMatch "banner.*" -}}{{- end -}}
|
{{- if not $heroBanner -}}{{- $heroBanner = .Resources.GetMatch "banner.*" -}}{{- end -}}
|
||||||
@@ -17,21 +17,25 @@
|
|||||||
</div>
|
</div>
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- $heroBannerSrc := "" -}}
|
{{- $heroBannerSrc := "" -}}
|
||||||
{{- with .Params.background }}{{ $heroBannerSrc = .src }}{{ else }}{{ with $.Params.banner }}{{ $heroBannerSrc = .src }}{{ end }}{{ end -}}
|
{{- with .Params.background }}
|
||||||
|
{{ $heroBannerSrc = .src }}
|
||||||
|
{{ else }}
|
||||||
|
{{ with $.Params.banner }}{{ $heroBannerSrc = .src }}{{ end }}
|
||||||
|
{{ end -}}
|
||||||
{{- with $heroBannerSrc -}}
|
{{- with $heroBannerSrc -}}
|
||||||
<div class="absolute inset-0">
|
<div class="absolute inset-0">
|
||||||
<img src="{{ . }}" alt="" class="w-full h-full object-cover" loading="eager" decoding="async">
|
<img src="{{ . }}" alt="" class="w-full h-full object-cover" loading="eager" decoding="async" />
|
||||||
</div>
|
</div>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
|
||||||
<!-- Cinematic overlay -->
|
<!-- Cinematic overlay -->
|
||||||
<div class="absolute inset-0 overlay-gradient-hero"></div>
|
<div class="absolute inset-0 overlay-gradient-hero"></div>
|
||||||
|
|
||||||
<!-- Hero content -->
|
<!-- Hero content -->
|
||||||
<div class="relative z-10 gutter-x pb-20 md:pb-32 w-full">
|
<div class="relative z-10 gutter-x pb-20 md:pb-32 w-full">
|
||||||
<div class="max-w-5xl">
|
<div class="max-w-5xl">
|
||||||
|
|
||||||
<!-- Drop label + category badges -->
|
<!-- Drop label + category badges -->
|
||||||
<div class="flex flex-wrap items-center gap-3 mb-6">
|
<div class="flex flex-wrap items-center gap-3 mb-6">
|
||||||
<span class="badge badge-pulse">Featured Drop</span>
|
<span class="badge badge-pulse">Featured Drop</span>
|
||||||
@@ -48,32 +52,45 @@
|
|||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<!-- Description -->
|
<!-- Description -->
|
||||||
<p class="text-chalk text-base md:text-lg max-w-2xl mb-10 leading-relaxed text-pretty font-body opacity-90 line-clamp-3">
|
<p
|
||||||
|
class="text-chalk text-base md:text-lg max-w-2xl mb-10 leading-relaxed text-pretty font-body opacity-90 line-clamp-3"
|
||||||
|
>
|
||||||
{{- .Description -}}
|
{{- .Description -}}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<!-- CTA + author -->
|
<!-- CTA + author -->
|
||||||
<div class="flex flex-wrap items-center gap-6">
|
<div class="flex flex-wrap items-center gap-6">
|
||||||
<a href="{{ .RelPermalink }}" class="btn btn-outline">View Editorial {{ partial "icon.html" "arrow-right" }}</a>
|
<a href="{{ .RelPermalink }}" class="btn btn-outline"
|
||||||
|
>View Editorial {{ partial "icon.html" "arrow-right" }}</a
|
||||||
|
>
|
||||||
{{- with .Params.author -}}
|
{{- with .Params.author -}}
|
||||||
{{- $author := site.GetPage (printf "authors/%s" .) -}}
|
{{- $author := site.GetPage (printf "authors/%s" .) -}}
|
||||||
{{- with $author -}}
|
{{- with $author -}}
|
||||||
<div class="flex items-center gap-3">
|
<div class="flex items-center gap-3">
|
||||||
{{- $avRes := .Resources.GetMatch "avatar.*" -}}
|
{{- $avRes := .Resources.GetMatch "avatar.*" -}}
|
||||||
{{- $avSrc := "" -}}
|
{{- $avSrc := "" -}}
|
||||||
{{- with $avRes }}{{ $avSrc = .RelPermalink }}{{ else }}{{ with $author.Params.avatar }}{{ $avSrc = . }}{{ end }}{{ end -}}
|
{{- with $avRes }}
|
||||||
|
{{ $avSrc = .RelPermalink }}
|
||||||
|
{{ else }}
|
||||||
|
{{ with $author.Params.avatar }}{{ $avSrc = . }}{{ end }}
|
||||||
|
{{ end -}}
|
||||||
{{- with $avSrc -}}
|
{{- with $avSrc -}}
|
||||||
<img src="{{ . }}" alt="{{ $author.Params.name | default $author.Title }}"
|
<img
|
||||||
class="w-8 h-8 object-cover border border-heat/50">
|
src="{{ . }}"
|
||||||
|
alt="{{ $author.Params.name | default $author.Title }}"
|
||||||
|
class="w-8 h-8 object-cover border border-heat/50"
|
||||||
|
/>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
<span class="label text-chalk">
|
<span class="label text-chalk">
|
||||||
By <a href="{{ .RelPermalink }}" class="text-heat hover:text-frost transition-colors">{{ .Params.name | default .Title }}</a>
|
By
|
||||||
|
<a href="{{ .RelPermalink }}" class="text-heat hover:text-frost transition-colors"
|
||||||
|
>{{ .Params.name | default .Title }}</a
|
||||||
|
>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -81,23 +98,29 @@
|
|||||||
<div class="absolute bottom-8 right-8 z-10 hidden md:flex flex-col items-center gap-2">
|
<div class="absolute bottom-8 right-8 z-10 hidden md:flex flex-col items-center gap-2">
|
||||||
<span class="label text-fog" style="writing-mode: vertical-lr; letter-spacing: 0.25em;">SCROLL</span>
|
<span class="label text-fog" style="writing-mode: vertical-lr; letter-spacing: 0.25em;">SCROLL</span>
|
||||||
<div class="w-px h-12 bg-zinc relative overflow-hidden">
|
<div class="w-px h-12 bg-zinc relative overflow-hidden">
|
||||||
<div class="absolute top-0 left-0 right-0 h-full"
|
<div
|
||||||
|
class="absolute top-0 left-0 right-0 h-full"
|
||||||
style="background: linear-gradient(var(--color-heat), var(--color-frost));
|
style="background: linear-gradient(var(--color-heat), var(--color-frost));
|
||||||
animation: scroll-line 1.8s ease-in-out infinite;"></div>
|
animation: scroll-line 1.8s ease-in-out infinite;"
|
||||||
|
></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</section>
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
</section>
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
<div class="gradient-line" style="opacity:0.2"></div>
|
<div class="gradient-line" style="opacity:0.2"></div>
|
||||||
|
|
||||||
<!-- ── LATEST POSTS ──────────────────────────────────────────── -->
|
|
||||||
<section class="gutter-x py-16 md:py-24 relative overflow-hidden">
|
|
||||||
|
|
||||||
|
<!-- ── LATEST POSTS ──────────────────────────────────────────── -->
|
||||||
|
<section class="gutter-x py-16 md:py-24 relative overflow-hidden">
|
||||||
<!-- Decorative graffiti tag behind heading -->
|
<!-- Decorative graffiti tag behind heading -->
|
||||||
<div class="graffiti-tag absolute -top-6 -right-4 opacity-100 select-none pointer-events-none"
|
<div
|
||||||
style="-webkit-text-stroke-color: rgba(0,200,255,0.07);" aria-hidden="true">DROPS</div>
|
class="graffiti-tag absolute -top-6 -right-4 opacity-100 select-none pointer-events-none"
|
||||||
|
style="-webkit-text-stroke-color: rgba(0,200,255,0.07);"
|
||||||
|
aria-hidden="true"
|
||||||
|
>
|
||||||
|
DROPS
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="relative z-10 flex flex-wrap items-end justify-between gap-4 mb-10">
|
<div class="relative z-10 flex flex-wrap items-end justify-between gap-4 mb-10">
|
||||||
<h2 class="font-display text-5xl md:text-7xl leading-none">
|
<h2 class="font-display text-5xl md:text-7xl leading-none">
|
||||||
@@ -114,14 +137,16 @@
|
|||||||
|
|
||||||
{{- if gt (len $latest) 8 -}}
|
{{- if gt (len $latest) 8 -}}
|
||||||
<div class="relative z-10 mt-14 text-center">
|
<div class="relative z-10 mt-14 text-center">
|
||||||
<a href="/posts/" class="btn btn-outline">View All {{ len $posts }} Posts {{ partial "icon.html" "arrow-right" }}</a>
|
<a href="/posts/" class="btn btn-outline"
|
||||||
|
>View All {{ len $posts }} Posts {{ partial "icon.html" "arrow-right" }}</a
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<!-- ── ABOUT STRIP ───────────────────────────────────────────── -->
|
<!-- ── ABOUT STRIP ───────────────────────────────────────────── -->
|
||||||
<section class="bg-concrete border-t border-b border-zinc gutter-x py-16 md:py-20 spray-bg relative overflow-hidden">
|
<section class="bg-concrete border-t border-b border-zinc gutter-x py-16 md:py-20 spray-bg relative overflow-hidden">
|
||||||
<div class="max-w-3xl mx-auto text-center relative z-10">
|
<div class="max-w-3xl mx-auto text-center relative z-10">
|
||||||
<span class="badge badge-frost text-void mb-6 inline-block">About the Magazine</span>
|
<span class="badge badge-frost text-void mb-6 inline-block">About the Magazine</span>
|
||||||
<p class="font-display text-3xl md:text-5xl text-paper leading-tight text-balance mb-10">
|
<p class="font-display text-3xl md:text-5xl text-paper leading-tight text-balance mb-10">
|
||||||
@@ -129,6 +154,5 @@
|
|||||||
</p>
|
</p>
|
||||||
<a href="/about/" class="btn btn-outline">About the magazine {{ partial "icon.html" "arrow-right" }}</a>
|
<a href="/about/" class="btn btn-outline">About the magazine {{ partial "icon.html" "arrow-right" }}</a>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -1,18 +1,33 @@
|
|||||||
{{- /* Inline author byline for post single pages.
|
{{- /* Inline author byline for post single pages.
|
||||||
Expects the author page as context (.).
|
Expects the author page as context (.).
|
||||||
*/ -}}
|
*/
|
||||||
|
-}}
|
||||||
<div class="flex items-center gap-4 py-6 border-t border-b border-zinc my-8 max-w-2xl">
|
<div class="flex items-center gap-4 py-6 border-t border-b border-zinc my-8 max-w-2xl">
|
||||||
{{- $avatarRes := .Resources.GetMatch "avatar.*" -}}
|
{{- $avatarRes := .Resources.GetMatch "avatar.*" -}}
|
||||||
{{- if $avatarRes -}}
|
{{- if $avatarRes -}}
|
||||||
{{- $av := $avatarRes.Resize "96x webp" -}}
|
{{- $av := $avatarRes.Resize "96x webp" -}}
|
||||||
<a href="{{ $.RelPermalink }}" class="flex-shrink-0">
|
<a href="{{ $.RelPermalink }}" class="flex-shrink-0">
|
||||||
<img src="{{ $av.RelPermalink }}" alt="{{ $.Params.name | default $.Title }}" class="w-16 h-16 object-cover border border-zinc hover:border-heat transition-colors" loading="lazy" decoding="async">
|
<img
|
||||||
|
src="{{ $av.RelPermalink }}"
|
||||||
|
alt="{{ $.Params.name | default $.Title }}"
|
||||||
|
class="w-16 h-16 object-cover border border-zinc hover:border-heat transition-colors"
|
||||||
|
loading="lazy"
|
||||||
|
decoding="async"
|
||||||
|
/>
|
||||||
</a>
|
</a>
|
||||||
{{- else -}}{{- with .Params.avatar -}}
|
{{- else -}}
|
||||||
|
{{- with .Params.avatar -}}
|
||||||
<a href="{{ $.RelPermalink }}" class="flex-shrink-0">
|
<a href="{{ $.RelPermalink }}" class="flex-shrink-0">
|
||||||
<img src="{{ . }}" alt="{{ $.Params.name | default $.Title }}" class="w-16 h-16 object-cover border border-zinc hover:border-heat transition-colors" loading="lazy" decoding="async">
|
<img
|
||||||
|
src="{{ . }}"
|
||||||
|
alt="{{ $.Params.name | default $.Title }}"
|
||||||
|
class="w-16 h-16 object-cover border border-zinc hover:border-heat transition-colors"
|
||||||
|
loading="lazy"
|
||||||
|
decoding="async"
|
||||||
|
/>
|
||||||
</a>
|
</a>
|
||||||
{{- end -}}{{- end -}}
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
<div class="min-w-0">
|
<div class="min-w-0">
|
||||||
<a href="{{ .RelPermalink }}" class="text-base font-display text-heat hover:text-frost transition-colors block">
|
<a href="{{ .RelPermalink }}" class="text-base font-display text-heat hover:text-frost transition-colors block">
|
||||||
{{ .Params.name | default .Title }}
|
{{ .Params.name | default .Title }}
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
<footer class="relative overflow-hidden border-t border-zinc gutter-x py-14 mt-auto bg-ink speed-lines">
|
<footer class="relative overflow-hidden border-t border-zinc gutter-x py-14 mt-auto bg-ink speed-lines">
|
||||||
|
|
||||||
<!-- Decorative background text -->
|
<!-- Decorative background text -->
|
||||||
<div
|
<div
|
||||||
class="graffiti-tag absolute -bottom-6 -right-4 select-none pointer-events-none"
|
class="graffiti-tag absolute -bottom-6 -right-4 select-none pointer-events-none"
|
||||||
style="-webkit-text-stroke-color: rgba(255,26,140,0.07); opacity: 1;"
|
style="-webkit-text-stroke-color: rgba(255,26,140,0.07); opacity: 1;"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
>PIVOINE</div>
|
>
|
||||||
|
PIVOINE
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="gradient-line mb-10 relative z-10"></div>
|
<div class="gradient-line mb-10 relative z-10"></div>
|
||||||
<div class="relative z-10 flex flex-col md:flex-row md:items-start justify-between gap-10">
|
<div class="relative z-10 flex flex-col md:flex-row md:items-start justify-between gap-10">
|
||||||
|
|
||||||
<!-- Brand -->
|
<!-- Brand -->
|
||||||
<div>
|
<div>
|
||||||
<a href="/" class="block mb-4 hover:opacity-90 transition-opacity w-fit" aria-label="{{ .Site.Title }} Home">
|
<a href="/" class="block mb-4 hover:opacity-90 transition-opacity w-fit" aria-label="{{ .Site.Title }} Home">
|
||||||
@@ -29,8 +29,14 @@
|
|||||||
{{- with .Site.Params.social -}}
|
{{- with .Site.Params.social -}}
|
||||||
{{- range $platform, $url := . -}}
|
{{- range $platform, $url := . -}}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ $url }}" target="_blank" rel="noopener noreferrer" class="label text-fog hover:text-frost transition-colors">
|
<a
|
||||||
{{- $platform | upper -}} {{ partial "icon.html" "arrow-external" }}
|
href="{{ $url }}"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
class="label text-fog hover:text-frost transition-colors"
|
||||||
|
>
|
||||||
|
{{- $platform | upper -}}
|
||||||
|
{{ partial "icon.html" "arrow-external" }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
+96
-44
@@ -1,81 +1,133 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8" />
|
||||||
<meta name="htmx-config" content='{"globalViewTransitions":true,"scrollBehavior":"smooth"}'>
|
<meta name="htmx-config" content='{"globalViewTransitions":true,"scrollBehavior":"smooth"}' />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<meta name="theme-color" content="#FF1A8C">
|
<meta name="theme-color" content="#FF1A8C" />
|
||||||
|
|
||||||
<title>
|
<title>
|
||||||
{{- if .IsHome -}}
|
{{- if .IsHome -}}
|
||||||
{{- .Site.Title }} — {{ .Site.Params.tagline -}}
|
{{- .Site.Title }} —
|
||||||
|
{{ .Site.Params.tagline -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- .Title }} — {{ .Site.Title -}}
|
{{- .Title }} —
|
||||||
|
{{ .Site.Title -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</title>
|
</title>
|
||||||
|
|
||||||
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.description }}{{ end }}">
|
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.description }}{{ end }}" />
|
||||||
<meta name="author" content="{{ with .Params.author }}{{ . }}{{ else }}{{ .Site.Params.author }}{{ end }}">
|
<meta name="author" content="{{ with .Params.author }}{{ . }}{{ else }}{{ .Site.Params.author }}{{ end }}" />
|
||||||
{{- if .Site.Params.robots }}<meta name="robots" content="{{ .Site.Params.robots }}">{{ end }}
|
{{- if .Site.Params.robots }}<meta name="robots" content="{{ .Site.Params.robots }}" />{{ end }}
|
||||||
|
|
||||||
|
|
||||||
<!-- Open Graph -->
|
<!-- Open Graph -->
|
||||||
<meta property="og:site_name" content="{{ .Site.Title }}">
|
<meta property="og:site_name" content="{{ .Site.Title }}" />
|
||||||
<meta property="og:title" content="{{ if .IsHome }}{{ .Site.Title }} — {{ .Site.Params.tagline }}{{ else }}{{ .Title }}{{ end }}">
|
<meta
|
||||||
<meta property="og:description" content="{{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.description }}{{ end }}">
|
property="og:title"
|
||||||
<meta property="og:url" content="{{ .Permalink }}">
|
content="{{ if .IsHome }}
|
||||||
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}">
|
{{ .Site.Title }} —
|
||||||
<meta property="og:locale" content="{{ .Site.LanguageCode | default "en_US" | replaceRE "-" "_" }}">
|
{{ .Site.Params.tagline }}
|
||||||
|
{{ else }}
|
||||||
|
{{ .Title }}
|
||||||
|
{{ end }}"
|
||||||
|
/>
|
||||||
|
<meta
|
||||||
|
property="og:description"
|
||||||
|
content="{{ with .Description }}
|
||||||
|
{{ . }}
|
||||||
|
{{ else }}
|
||||||
|
{{ .Site.Params.description }}
|
||||||
|
{{ end }}"
|
||||||
|
/>
|
||||||
|
<meta property="og:url" content="{{ .Permalink }}" />
|
||||||
|
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}" />
|
||||||
|
<meta property="og:locale" content="{{ .Site.LanguageCode | default "en_US" | replaceRE "-" "_" }}" />
|
||||||
{{- $ogImage := .Site.Params.ogImage -}}
|
{{- $ogImage := .Site.Params.ogImage -}}
|
||||||
{{- $ogImageAlt := .Site.Title -}}
|
{{- $ogImageAlt := .Site.Title -}}
|
||||||
{{- with .Params.banner -}}
|
{{- with .Params.banner -}}
|
||||||
{{- $ogImage = .src -}}
|
{{- $ogImage = .src -}}
|
||||||
{{- $ogImageAlt = $.Title -}}
|
{{- $ogImageAlt = $.Title -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
<meta property="og:image" content="{{ $ogImage | absURL }}">
|
<meta property="og:image" content="{{ $ogImage | absURL }}" />
|
||||||
<meta property="og:image:alt" content="{{ $ogImageAlt }}">
|
<meta property="og:image:alt" content="{{ $ogImageAlt }}" />
|
||||||
<meta property="og:image:width" content="1200">
|
<meta property="og:image:width" content="1200" />
|
||||||
<meta property="og:image:height" content="630">
|
<meta property="og:image:height" content="630" />
|
||||||
|
|
||||||
{{- if .IsPage }}
|
{{- if .IsPage }}
|
||||||
<meta property="article:published_time" content="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
|
<meta property="article:published_time" content="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}" />
|
||||||
<meta property="article:modified_time" content="{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" }}">
|
<meta property="article:modified_time" content="{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" }}" />
|
||||||
{{- with .Params.author }}<meta property="article:author" content="{{ . }}">{{ end }}
|
{{- with .Params.author }}<meta property="article:author" content="{{ . }}" />{{ end }}
|
||||||
{{- range .Params.categories }}<meta property="article:section" content="{{ . }}">{{ end }}
|
{{- range .Params.categories }}<meta property="article:section" content="{{ . }}" />{{ end }}
|
||||||
{{- range .Params.tags }}<meta property="article:tag" content="{{ . }}">{{ end }}
|
{{- range .Params.tags }}<meta property="article:tag" content="{{ . }}" />{{ end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
|
||||||
<!-- Twitter / X Card -->
|
<!-- Twitter / X Card -->
|
||||||
<meta name="twitter:card" content="summary_large_image">
|
<meta name="twitter:card" content="summary_large_image" />
|
||||||
{{- with .Site.Params.twitterHandle }}
|
{{- with .Site.Params.twitterHandle }}
|
||||||
<meta name="twitter:site" content="@{{ . }}">
|
<meta name="twitter:site" content="@{{ . }}" />
|
||||||
{{- end }}
|
{{- end }}
|
||||||
<meta name="twitter:title" content="{{ if .IsHome }}{{ .Site.Title }} — {{ .Site.Params.tagline }}{{ else }}{{ .Title }}{{ end }}">
|
<meta
|
||||||
<meta name="twitter:description" content="{{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.description }}{{ end }}">
|
name="twitter:title"
|
||||||
<meta name="twitter:image" content="{{ $ogImage | absURL }}">
|
content="{{ if .IsHome }}
|
||||||
<meta name="twitter:image:alt" content="{{ $ogImageAlt }}">
|
{{ .Site.Title }} —
|
||||||
|
{{ .Site.Params.tagline }}
|
||||||
|
{{ else }}
|
||||||
|
{{ .Title }}
|
||||||
|
{{ end }}"
|
||||||
|
/>
|
||||||
|
<meta
|
||||||
|
name="twitter:description"
|
||||||
|
content="{{ with .Description }}
|
||||||
|
{{ . }}
|
||||||
|
{{ else }}
|
||||||
|
{{ .Site.Params.description }}
|
||||||
|
{{ end }}"
|
||||||
|
/>
|
||||||
|
<meta name="twitter:image" content="{{ $ogImage | absURL }}" />
|
||||||
|
<meta name="twitter:image:alt" content="{{ $ogImageAlt }}" />
|
||||||
|
|
||||||
<!-- Canonical -->
|
<!-- Canonical -->
|
||||||
<link rel="canonical" href="{{ .Permalink }}">
|
<link rel="canonical" href="{{ .Permalink }}" />
|
||||||
|
|
||||||
<!-- JSON-LD structured data -->
|
<!-- JSON-LD structured data -->
|
||||||
{{- partial "schema.html" . -}}
|
{{- partial "schema.html" . -}}
|
||||||
|
|
||||||
|
|
||||||
<!-- Fonts — Bebas Neue + Barlow + Share Tech Mono (non-render-blocking) -->
|
<!-- Fonts — Bebas Neue + Barlow + Share Tech Mono (non-render-blocking) -->
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||||
<link rel="preload" as="style" href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Share+Tech+Mono&display=swap">
|
<link
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Share+Tech+Mono&display=swap" media="print" onload="this.media='all'">
|
rel="preload"
|
||||||
<noscript><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Share+Tech+Mono&display=swap"></noscript>
|
as="style"
|
||||||
|
href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Share+Tech+Mono&display=swap"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="stylesheet"
|
||||||
|
href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Share+Tech+Mono&display=swap"
|
||||||
|
media="print"
|
||||||
|
onload="this.media='all'"
|
||||||
|
/>
|
||||||
|
<noscript
|
||||||
|
><link
|
||||||
|
rel="stylesheet"
|
||||||
|
href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Share+Tech+Mono&display=swap"
|
||||||
|
/></noscript>
|
||||||
|
|
||||||
<!-- CSS via Hugo Pipes + PostCSS + Tailwind v4 -->
|
<!-- CSS via Hugo Pipes + PostCSS + Tailwind v4 -->
|
||||||
{{- $css := resources.Get "css/main.css" | css.PostCSS -}}
|
{{- $css := resources.Get "css/main.css" | css.PostCSS -}}
|
||||||
{{- if eq hugo.Environment "production" -}}
|
{{- if eq hugo.Environment "production" -}}
|
||||||
{{- $css = $css | minify | fingerprint "sha256" -}}
|
{{- $css = $css | minify | fingerprint "sha256" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
<link rel="stylesheet" href="{{ $css.RelPermalink }}"{{ if eq hugo.Environment "production" }} integrity="{{ $css.Data.Integrity }}"{{ end }}>
|
<link
|
||||||
|
rel="stylesheet"
|
||||||
|
href="{{ $css.RelPermalink }}"
|
||||||
|
{{ if eq hugo.Environment "production" }}integrity="{{ $css.Data.Integrity }}"{{ end }}
|
||||||
|
/>
|
||||||
|
|
||||||
<!-- Favicon & PWA -->
|
<!-- Favicon & PWA -->
|
||||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
|
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
|
||||||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
|
||||||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
|
||||||
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
|
||||||
<link rel="icon" href="/favicon.ico" sizes="any">
|
<link rel="icon" href="/favicon.ico" sizes="any" />
|
||||||
<link rel="manifest" href="/site.webmanifest">
|
<link rel="manifest" href="/site.webmanifest" />
|
||||||
<meta name="msapplication-TileColor" content="#050510">
|
<meta name="msapplication-TileColor" content="#050510" />
|
||||||
|
|||||||
@@ -1,11 +1,55 @@
|
|||||||
{{- /* Inline SVG icon. Usage: {{ partial "icon.html" "arrow-right" }}
|
{{- /* Inline SVG icon. Usage: {{ partial "icon.html" "arrow-right" }}
|
||||||
Renders at 1em × 1em, inherits currentColor, aria-hidden.
|
Renders at 1em × 1em, inherits currentColor, aria-hidden. */ -}}
|
||||||
*/ -}}
|
|
||||||
{{- $name := . -}}
|
{{- $name := . -}}
|
||||||
{{- if eq $name "arrow-right" -}}
|
{{- if eq $name "arrow-right" -}}
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="1em" height="1em" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" style="display:inline-block;vertical-align:-0.1em"><path d="M2 8h12"/><path d="M9 3l5 5-5 5"/></svg>
|
<svg
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
viewBox="0 0 16 16"
|
||||||
|
width="1em"
|
||||||
|
height="1em"
|
||||||
|
fill="none"
|
||||||
|
stroke="currentColor"
|
||||||
|
stroke-width="1.5"
|
||||||
|
stroke-linecap="round"
|
||||||
|
stroke-linejoin="round"
|
||||||
|
aria-hidden="true"
|
||||||
|
style="display:inline-block;vertical-align:-0.1em"
|
||||||
|
>
|
||||||
|
<path d="M2 8h12" />
|
||||||
|
<path d="M9 3l5 5-5 5" />
|
||||||
|
</svg>
|
||||||
{{- else if eq $name "arrow-left" -}}
|
{{- else if eq $name "arrow-left" -}}
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="1em" height="1em" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" style="display:inline-block;vertical-align:-0.1em"><path d="M14 8H2"/><path d="M7 3L2 8l5 5"/></svg>
|
<svg
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
viewBox="0 0 16 16"
|
||||||
|
width="1em"
|
||||||
|
height="1em"
|
||||||
|
fill="none"
|
||||||
|
stroke="currentColor"
|
||||||
|
stroke-width="1.5"
|
||||||
|
stroke-linecap="round"
|
||||||
|
stroke-linejoin="round"
|
||||||
|
aria-hidden="true"
|
||||||
|
style="display:inline-block;vertical-align:-0.1em"
|
||||||
|
>
|
||||||
|
<path d="M14 8H2" />
|
||||||
|
<path d="M7 3L2 8l5 5" />
|
||||||
|
</svg>
|
||||||
{{- else if eq $name "arrow-external" -}}
|
{{- else if eq $name "arrow-external" -}}
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="1em" height="1em" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" style="display:inline-block;vertical-align:-0.1em"><path d="M4 12L12 4"/><path d="M6 4h6v6"/></svg>
|
<svg
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
viewBox="0 0 16 16"
|
||||||
|
width="1em"
|
||||||
|
height="1em"
|
||||||
|
fill="none"
|
||||||
|
stroke="currentColor"
|
||||||
|
stroke-width="1.5"
|
||||||
|
stroke-linecap="round"
|
||||||
|
stroke-linejoin="round"
|
||||||
|
aria-hidden="true"
|
||||||
|
style="display:inline-block;vertical-align:-0.1em"
|
||||||
|
>
|
||||||
|
<path d="M4 12L12 4" />
|
||||||
|
<path d="M6 4h6v6" />
|
||||||
|
</svg>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -10,7 +10,8 @@
|
|||||||
class — CSS classes applied to <img>
|
class — CSS classes applied to <img>
|
||||||
alt — alt text (default "")
|
alt — alt text (default "")
|
||||||
loading — "lazy" or "eager" (default "lazy")
|
loading — "lazy" or "eager" (default "lazy")
|
||||||
*/ -}}
|
*/
|
||||||
|
-}}
|
||||||
{{- $res := .res -}}
|
{{- $res := .res -}}
|
||||||
{{- $widths := .widths | default (slice 800 1600) -}}
|
{{- $widths := .widths | default (slice 800 1600) -}}
|
||||||
{{- $sizes := .sizes | default "100vw" -}}
|
{{- $sizes := .sizes | default "100vw" -}}
|
||||||
@@ -35,4 +36,4 @@
|
|||||||
height="{{ $primary.Height }}"
|
height="{{ $primary.Height }}"
|
||||||
loading="{{ $loading }}"
|
loading="{{ $loading }}"
|
||||||
decoding="async"
|
decoding="async"
|
||||||
>
|
/>
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
{{- /*
|
{{- /*
|
||||||
Logo image.
|
Logo image.
|
||||||
Usage: {{ partial "logo.html" (dict "class" "h-8 w-auto") }}
|
Usage: {{ partial "logo.html" (dict "class" "h-8 w-auto")
|
||||||
Params:
|
}}
|
||||||
class — CSS classes on the <img> element (default: "h-9 w-auto")
|
Params: class — CSS classes on the <img /> element (default: "h-9 w-auto") */ -}}
|
||||||
*/ -}}
|
|
||||||
{{- $class := .class | default "h-9 w-auto" -}}
|
{{- $class := .class | default "h-9 w-auto" -}}
|
||||||
<img src="/logo.svg" class="{{ $class }} logo-img" alt="{{ site.Title }}" width="512" height="512">
|
<img src="/logo.svg" class="{{ $class }} logo-img" alt="{{ site.Title }}" width="512" height="512" />
|
||||||
|
|||||||
@@ -2,14 +2,11 @@
|
|||||||
Renders an image or video from a front matter map.
|
Renders an image or video from a front matter map.
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
{{ partial "media.html" (dict "media" .Params.banner "class" "w-full h-full object-cover") }}
|
{{ partial "media.html" (dict "media" .Params.banner "class" "w-full h-full object-cover")
|
||||||
|
}}
|
||||||
Parameters:
|
|
||||||
media — map with keys: type (image|video), src, alt
|
|
||||||
class — CSS classes applied to the img/video element
|
|
||||||
lazy — set to false to disable lazy loading (default true)
|
|
||||||
*/ -}}
|
|
||||||
|
|
||||||
|
Parameters: media — map with keys: type (image|video), src, alt class — CSS classes applied to the img/video element
|
||||||
|
lazy — set to false to disable lazy loading (default true) */ -}}
|
||||||
{{- $media := .media -}}
|
{{- $media := .media -}}
|
||||||
{{- $class := .class | default "" -}}
|
{{- $class := .class | default "" -}}
|
||||||
{{- $lazy := .lazy | default true -}}
|
{{- $lazy := .lazy | default true -}}
|
||||||
@@ -23,14 +20,14 @@
|
|||||||
loop
|
loop
|
||||||
muted
|
muted
|
||||||
playsinline
|
playsinline
|
||||||
{{- with .alt }} aria-label="{{ . }}"{{ end }}
|
{{- with .alt }}aria-label="{{ . }}"{{ end }}
|
||||||
></video>
|
></video>
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
<img
|
<img
|
||||||
class="{{ $class }}"
|
class="{{ $class }}"
|
||||||
src="{{ .src }}"
|
src="{{ .src }}"
|
||||||
alt="{{ .alt | default "" }}"
|
alt="{{ .alt | default "" }}"
|
||||||
{{- if $lazy }} loading="lazy" decoding="async"{{ end }}
|
{{- if $lazy }}loading="lazy" decoding="async"{{ end }}
|
||||||
>
|
/>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
+61
-26
@@ -10,7 +10,11 @@
|
|||||||
:class="$store.nav.open || scrolled ? 'bg-ink/95 backdrop-blur-md shadow-[0_1px_0_var(--color-zinc)]' : ''"
|
:class="$store.nav.open || scrolled ? 'bg-ink/95 backdrop-blur-md shadow-[0_1px_0_var(--color-zinc)]' : ''"
|
||||||
>
|
>
|
||||||
<!-- Logotype -->
|
<!-- Logotype -->
|
||||||
<a href="/" class="flex items-center gap-3 hover:opacity-90 transition-opacity" aria-label="{{ .Site.Params.logoText }} Home">
|
<a
|
||||||
|
href="/"
|
||||||
|
class="flex items-center gap-3 hover:opacity-90 transition-opacity"
|
||||||
|
aria-label="{{ .Site.Params.logoText }} Home"
|
||||||
|
>
|
||||||
{{- partial "logo.html" (dict "id" "nav" "class" "h-12 w-auto flex-shrink-0") -}}
|
{{- partial "logo.html" (dict "id" "nav" "class" "h-12 w-auto flex-shrink-0") -}}
|
||||||
<span class="logo-glitch font-display text-2xl md:text-3xl leading-none tracking-wide">
|
<span class="logo-glitch font-display text-2xl md:text-3xl leading-none tracking-wide">
|
||||||
{{- .Site.Params.logoText -}}
|
{{- .Site.Params.logoText -}}
|
||||||
@@ -45,12 +49,18 @@
|
|||||||
aria-controls="mobile-menu"
|
aria-controls="mobile-menu"
|
||||||
aria-label="Toggle navigation"
|
aria-label="Toggle navigation"
|
||||||
>
|
>
|
||||||
<span class="block h-px w-6 bg-current transition-all duration-300 origin-center"
|
<span
|
||||||
:class="$store.nav.open ? 'rotate-45 translate-y-[7px]' : ''"></span>
|
class="block h-px w-6 bg-current transition-all duration-300 origin-center"
|
||||||
<span class="block h-px w-4 bg-current transition-all duration-200"
|
:class="$store.nav.open ? 'rotate-45 translate-y-[7px]' : ''"
|
||||||
:class="$store.nav.open ? 'opacity-0' : 'opacity-100'"></span>
|
></span>
|
||||||
<span class="block h-px w-6 bg-current transition-all duration-300 origin-center"
|
<span
|
||||||
:class="$store.nav.open ? '-rotate-45 -translate-y-[7px]' : ''"></span>
|
class="block h-px w-4 bg-current transition-all duration-200"
|
||||||
|
:class="$store.nav.open ? 'opacity-0' : 'opacity-100'"
|
||||||
|
></span>
|
||||||
|
<span
|
||||||
|
class="block h-px w-6 bg-current transition-all duration-300 origin-center"
|
||||||
|
:class="$store.nav.open ? '-rotate-45 -translate-y-[7px]' : ''"
|
||||||
|
></span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -73,8 +83,13 @@
|
|||||||
<div class="gradient-line flex-none"></div>
|
<div class="gradient-line flex-none"></div>
|
||||||
|
|
||||||
<!-- Decorative background text -->
|
<!-- Decorative background text -->
|
||||||
<div class="graffiti-tag absolute -bottom-4 -right-4 select-none pointer-events-none"
|
<div
|
||||||
style="-webkit-text-stroke-color: rgba(155,0,255,0.07);" aria-hidden="true">MENU</div>
|
class="graffiti-tag absolute -bottom-4 -right-4 select-none pointer-events-none"
|
||||||
|
style="-webkit-text-stroke-color: rgba(155,0,255,0.07);"
|
||||||
|
aria-hidden="true"
|
||||||
|
>
|
||||||
|
MENU
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Main nav links -->
|
<!-- Main nav links -->
|
||||||
<nav class="flex-1 flex flex-col justify-center gutter-x py-10" aria-label="Mobile navigation">
|
<nav class="flex-1 flex flex-col justify-center gutter-x py-10" aria-label="Mobile navigation">
|
||||||
@@ -89,35 +104,49 @@
|
|||||||
@click="$store.nav.open = false"
|
@click="$store.nav.open = false"
|
||||||
>
|
>
|
||||||
<!-- Hover sweep -->
|
<!-- Hover sweep -->
|
||||||
<span class="absolute inset-y-0 left-0 w-0 group-hover:w-full transition-all duration-300 ease-out"
|
<span
|
||||||
style="background: linear-gradient(90deg, rgba(255,26,140,0.07), transparent);"></span>
|
class="absolute inset-y-0 left-0 w-0 group-hover:w-full transition-all duration-300 ease-out"
|
||||||
|
style="background: linear-gradient(90deg, rgba(255,26,140,0.07), transparent);"
|
||||||
|
></span>
|
||||||
<!-- Link text -->
|
<!-- Link text -->
|
||||||
<span class="relative transition-colors duration-200 text-paper group-hover:text-heat uppercase"
|
<span
|
||||||
|
class="relative transition-colors duration-200 text-paper group-hover:text-heat uppercase"
|
||||||
:class="($store.nav.path === '{{ $href }}' || ('{{ $href }}' !== '/' && $store.nav.path.startsWith('{{ $href }}'))) ? 'text-gradient' : ''"
|
:class="($store.nav.path === '{{ $href }}' || ('{{ $href }}' !== '/' && $store.nav.path.startsWith('{{ $href }}'))) ? 'text-gradient' : ''"
|
||||||
>{{ .Name }}</span>
|
>{{ .Name }}</span
|
||||||
|
>
|
||||||
<!-- Index number -->
|
<!-- Index number -->
|
||||||
<span class="absolute right-0 top-1/2 -translate-y-1/2 label text-smoke group-hover:text-heat transition-colors duration-200"
|
<span
|
||||||
|
class="absolute right-0 top-1/2 -translate-y-1/2 label text-smoke group-hover:text-heat transition-colors duration-200"
|
||||||
style="animation: mob-link-in 0.4s var(--ease-out-expo) {{ add (mul $i 70) 100 }}ms both"
|
style="animation: mob-link-in 0.4s var(--ease-out-expo) {{ add (mul $i 70) 100 }}ms both"
|
||||||
>0{{ add $i 1 }}</span>
|
>0{{ add $i 1 }}</span
|
||||||
|
>
|
||||||
</a>
|
</a>
|
||||||
{{- $i = add $i 1 -}}
|
{{- $i = add $i 1 -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="gradient-line my-8"
|
<div class="gradient-line my-8" style="animation: mob-link-in 0.4s ease {{ mul $i 70 }}ms both"></div>
|
||||||
style="animation: mob-link-in 0.4s ease {{ mul $i 70 }}ms both"></div>
|
|
||||||
|
|
||||||
<div class="flex flex-wrap gap-x-8 gap-y-3"
|
<div
|
||||||
style="animation: mob-link-in 0.4s ease {{ add (mul $i 70) 40 }}ms both">
|
class="flex flex-wrap gap-x-8 gap-y-3"
|
||||||
|
style="animation: mob-link-in 0.4s ease {{ add (mul $i 70) 40 }}ms both"
|
||||||
|
>
|
||||||
{{- range .Site.Menus.footer -}}
|
{{- range .Site.Menus.footer -}}
|
||||||
<a href="{{ .URL }}" class="label text-fog hover:text-heat transition-colors" @click="$store.nav.open = false">{{ .Name }}</a>
|
<a
|
||||||
|
href="{{ .URL }}"
|
||||||
|
class="label text-fog hover:text-heat transition-colors"
|
||||||
|
@click="$store.nav.open = false"
|
||||||
|
>{{ .Name }}</a
|
||||||
|
>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<!-- Bottom bar -->
|
<!-- Bottom bar -->
|
||||||
<div class="flex-none gutter-x pb-8 pt-4 border-t border-zinc"
|
<div
|
||||||
style="animation: mob-link-in 0.4s ease 420ms both">
|
class="flex-none gutter-x pb-8 pt-4 border-t border-zinc"
|
||||||
|
style="animation: mob-link-in 0.4s ease 420ms both"
|
||||||
|
>
|
||||||
<p class="label text-smoke">{{ .Site.Params.tagline }}</p>
|
<p class="label text-smoke">{{ .Site.Params.tagline }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -125,8 +154,14 @@
|
|||||||
</header>
|
</header>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
@keyframes mob-link-in {
|
@keyframes mob-link-in {
|
||||||
from { opacity: 0; transform: translateY(14px); }
|
from {
|
||||||
to { opacity: 1; transform: translateY(0); }
|
opacity: 0;
|
||||||
}
|
transform: translateY(14px);
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
opacity: 1;
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,24 +1,30 @@
|
|||||||
{{- /* Custom pagination component.
|
{{- /* Custom pagination component.
|
||||||
Call as: {{ partial "pagination.html" . }}
|
Call as: {{ partial "pagination.html" .
|
||||||
|
}}
|
||||||
*/ -}}
|
*/ -}}
|
||||||
{{- $paginator := .Paginator -}}
|
{{- $paginator := .Paginator -}}
|
||||||
{{- if gt $paginator.TotalPages 1 -}}
|
{{- if gt $paginator.TotalPages 1 -}}
|
||||||
<nav class="flex items-center justify-center gap-2 py-16" aria-label="Pagination">
|
<nav class="flex items-center justify-center gap-2 py-16" aria-label="Pagination">
|
||||||
|
|
||||||
{{- if $paginator.HasPrev -}}
|
{{- if $paginator.HasPrev -}}
|
||||||
<a
|
<a
|
||||||
href="{{ $paginator.Prev.URL }}"
|
href="{{ $paginator.Prev.URL }}"
|
||||||
class="label border border-mist text-ash px-5 py-3 hover:border-gold hover:text-gold transition-all duration-300"
|
class="label border border-mist text-ash px-5 py-3 hover:border-gold hover:text-gold transition-all duration-300"
|
||||||
aria-label="Previous page"
|
aria-label="Previous page"
|
||||||
>{{ partial "icon.html" "arrow-left" }} Prev</a>
|
>{{ partial "icon.html" "arrow-left" }} Prev</a
|
||||||
|
>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- range $paginator.Pagers -}}
|
{{- range $paginator.Pagers -}}
|
||||||
<a
|
<a
|
||||||
href="{{ .URL }}"
|
href="{{ .URL }}"
|
||||||
class="label border px-4 py-3 transition-all duration-300 {{ if eq . $paginator }}border-gold text-gold{{ else }}border-mist text-ash hover:border-gold hover:text-gold{{ end }}"
|
class="label border px-4 py-3 transition-all duration-300 {{ if eq . $paginator }}
|
||||||
{{- if eq . $paginator }} aria-current="page"{{ end }}
|
border-gold text-gold
|
||||||
>{{ .PageNumber }}</a>
|
{{ else }}
|
||||||
|
border-mist text-ash hover:border-gold hover:text-gold
|
||||||
|
{{ end }}"
|
||||||
|
{{- if eq . $paginator }}aria-current="page"{{ end }}
|
||||||
|
>{{ .PageNumber }}</a
|
||||||
|
>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- if $paginator.HasNext -}}
|
{{- if $paginator.HasNext -}}
|
||||||
@@ -26,8 +32,9 @@
|
|||||||
href="{{ $paginator.Next.URL }}"
|
href="{{ $paginator.Next.URL }}"
|
||||||
class="label border border-mist text-ash px-5 py-3 hover:border-gold hover:text-gold transition-all duration-300"
|
class="label border border-mist text-ash px-5 py-3 hover:border-gold hover:text-gold transition-all duration-300"
|
||||||
aria-label="Next page"
|
aria-label="Next page"
|
||||||
>Next {{ partial "icon.html" "arrow-right" }}</a>
|
>Next {{ partial "icon.html" "arrow-right" }}</a
|
||||||
|
>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -1,31 +1,35 @@
|
|||||||
{{- /* Large overlay card for featured/secondary slots.
|
{{- /* Large overlay card for featured/secondary slots.
|
||||||
Expects a post page as context (.).
|
Expects a post page as context (.).
|
||||||
*/ -}}
|
*/
|
||||||
|
-}}
|
||||||
{{- $post := . -}}
|
{{- $post := . -}}
|
||||||
<article class="group relative overflow-hidden aspect-[3/4] md:aspect-[4/5] card-comic">
|
<article class="group relative overflow-hidden aspect-[3/4] md:aspect-[4/5] card-comic">
|
||||||
<a href="{{ $post.RelPermalink }}" class="block w-full h-full" aria-label="{{ $post.Title }}">
|
<a href="{{ $post.RelPermalink }}" class="block w-full h-full" aria-label="{{ $post.Title }}">
|
||||||
|
|
||||||
<!-- Background media — bundle banner.png → 01.png → .Params.banner -->
|
<!-- Background media — bundle banner.png → 01.png → .Params.banner -->
|
||||||
{{- $thumb := $post.Resources.GetMatch "banner.png" -}}
|
{{- $thumb := $post.Resources.GetMatch "banner.png" -}}
|
||||||
{{- if not $thumb -}}{{- $thumb = $post.Resources.GetMatch "01.png" -}}{{- end -}}
|
{{- if not $thumb -}}{{- $thumb = $post.Resources.GetMatch "01.png" -}}{{- end -}}
|
||||||
<div class="card-media w-full h-full absolute inset-0">
|
<div class="card-media w-full h-full absolute inset-0">
|
||||||
{{- if $thumb -}}
|
{{- if $thumb -}}
|
||||||
{{- partial "img.html" (dict "res" $thumb "widths" (slice 800 1200) "sizes" "(max-width: 768px) 100vw, 50vw" "class" "w-full h-full object-cover" "alt" $post.Title) -}}
|
{{- partial "img.html" (dict "res" $thumb "widths" (slice 800 1200) "sizes" "(max-width: 768px) 100vw, 50vw" "class" "w-full h-full object-cover" "alt" $post.Title) -}}
|
||||||
{{- else -}}{{- with $post.Params.banner -}}
|
{{- else -}}
|
||||||
|
{{- with $post.Params.banner -}}
|
||||||
{{- partial "media.html" (dict "media" . "class" "w-full h-full object-cover") -}}
|
{{- partial "media.html" (dict "media" . "class" "w-full h-full object-cover") -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
<div class="w-full h-full bg-concrete flex items-center justify-center halftone">
|
<div class="w-full h-full bg-concrete flex items-center justify-center halftone">
|
||||||
<span class="label text-smoke">PIVOINE</span>
|
<span class="label text-smoke">PIVOINE</span>
|
||||||
</div>
|
</div>
|
||||||
{{- end -}}{{- end -}}
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Gradient overlay -->
|
<!-- Gradient overlay -->
|
||||||
<div class="absolute inset-0 overlay-gradient transition-opacity duration-500 group-hover:opacity-90"></div>
|
<div class="absolute inset-0 overlay-gradient transition-opacity duration-500 group-hover:opacity-90"></div>
|
||||||
|
|
||||||
<!-- Diagonal heat accent -->
|
<!-- Diagonal heat accent -->
|
||||||
<div class="absolute bottom-16 left-0 w-28 h-[3px] opacity-0 group-hover:opacity-90 transition-opacity duration-300"
|
<div
|
||||||
style="background: linear-gradient(90deg, var(--color-heat), var(--color-pulse)); transform: skewX(-20deg) translateX(-4px);"></div>
|
class="absolute bottom-16 left-0 w-28 h-[3px] opacity-0 group-hover:opacity-90 transition-opacity duration-300"
|
||||||
|
style="background: linear-gradient(90deg, var(--color-heat), var(--color-pulse)); transform: skewX(-20deg) translateX(-4px);"
|
||||||
|
></div>
|
||||||
|
|
||||||
<!-- Content -->
|
<!-- Content -->
|
||||||
<div class="absolute bottom-0 left-0 right-0 p-5 md:p-6">
|
<div class="absolute bottom-0 left-0 right-0 p-5 md:p-6">
|
||||||
@@ -36,7 +40,9 @@
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
<h3 class="font-display text-xl md:text-2xl text-paper text-balance leading-none group-hover:text-heat transition-colors mb-3">
|
<h3
|
||||||
|
class="font-display text-xl md:text-2xl text-paper text-balance leading-none group-hover:text-heat transition-colors mb-3"
|
||||||
|
>
|
||||||
{{- $post.Title -}}
|
{{- $post.Title -}}
|
||||||
</h3>
|
</h3>
|
||||||
<div class="flex items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
@@ -52,6 +58,5 @@
|
|||||||
</time>
|
</time>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</a>
|
</a>
|
||||||
</article>
|
</article>
|
||||||
|
|||||||
@@ -1,23 +1,25 @@
|
|||||||
{{- /* Compact post card for grids.
|
{{- /* Compact post card for grids.
|
||||||
Expects a post page as context (.).
|
Expects a post page as context (.).
|
||||||
*/ -}}
|
*/
|
||||||
|
-}}
|
||||||
{{- $post := . -}}
|
{{- $post := . -}}
|
||||||
<article class="group card-comic flex flex-col bg-concrete">
|
<article class="group card-comic flex flex-col bg-concrete">
|
||||||
<a href="{{ $post.RelPermalink }}" class="block flex-1 flex flex-col">
|
<a href="{{ $post.RelPermalink }}" class="block flex-1 flex flex-col">
|
||||||
|
|
||||||
<!-- Thumbnail — bundle banner.png → 01.png → .Params.banner -->
|
<!-- Thumbnail — bundle banner.png → 01.png → .Params.banner -->
|
||||||
{{- $thumb := $post.Resources.GetMatch "banner.png" -}}
|
{{- $thumb := $post.Resources.GetMatch "banner.png" -}}
|
||||||
{{- if not $thumb -}}{{- $thumb = $post.Resources.GetMatch "01.png" -}}{{- end -}}
|
{{- if not $thumb -}}{{- $thumb = $post.Resources.GetMatch "01.png" -}}{{- end -}}
|
||||||
<div class="card-media aspect-editorial">
|
<div class="card-media aspect-editorial">
|
||||||
{{- if $thumb -}}
|
{{- if $thumb -}}
|
||||||
{{- partial "img.html" (dict "res" $thumb "widths" (slice 600 1000) "sizes" "(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 25vw" "class" "w-full h-full object-cover" "alt" $post.Title) -}}
|
{{- partial "img.html" (dict "res" $thumb "widths" (slice 600 1000) "sizes" "(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 25vw" "class" "w-full h-full object-cover" "alt" $post.Title) -}}
|
||||||
{{- else -}}{{- with $post.Params.banner -}}
|
{{- else -}}
|
||||||
|
{{- with $post.Params.banner -}}
|
||||||
{{- partial "media.html" (dict "media" . "class" "w-full h-full object-cover") -}}
|
{{- partial "media.html" (dict "media" . "class" "w-full h-full object-cover") -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
<div class="w-full h-full flex items-center justify-center halftone">
|
<div class="w-full h-full flex items-center justify-center halftone">
|
||||||
<span class="label text-smoke text-xs">PIVOINE</span>
|
<span class="label text-smoke text-xs">PIVOINE</span>
|
||||||
</div>
|
</div>
|
||||||
{{- end -}}{{- end -}}
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Category badge — parallelogram -->
|
<!-- Category badge — parallelogram -->
|
||||||
@@ -29,8 +31,11 @@
|
|||||||
</div>
|
</div>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
|
||||||
<!-- Title -->
|
<!-- Title -->
|
||||||
<h3 class="font-display text-base md:text-lg text-paper text-balance leading-none group-hover:text-heat transition-colors px-4 pt-3 pb-2 flex-1">
|
<h3
|
||||||
|
class="font-display text-base md:text-lg text-paper text-balance leading-none group-hover:text-heat transition-colors px-4 pt-3 pb-2 flex-1"
|
||||||
|
>
|
||||||
{{- $post.Title -}}
|
{{- $post.Title -}}
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
@@ -42,10 +47,26 @@
|
|||||||
{{- $avRes := .Resources.GetMatch "avatar.*" -}}
|
{{- $avRes := .Resources.GetMatch "avatar.*" -}}
|
||||||
{{- if $avRes -}}
|
{{- if $avRes -}}
|
||||||
{{- $av := $avRes.Resize "64x webp" -}}
|
{{- $av := $avRes.Resize "64x webp" -}}
|
||||||
<img src="{{ $av.RelPermalink }}" alt="{{ $authorPage.Params.name | default $authorPage.Title }}" class="w-5 h-5 object-cover border border-smoke flex-shrink-0" width="{{ $av.Width }}" height="{{ $av.Height }}" loading="lazy" decoding="async">
|
<img
|
||||||
{{- else -}}{{- with .Params.avatar -}}
|
src="{{ $av.RelPermalink }}"
|
||||||
<img src="{{ . }}" alt="{{ $authorPage.Params.name | default $authorPage.Title }}" class="w-5 h-5 object-cover border border-smoke flex-shrink-0" loading="lazy" decoding="async">
|
alt="{{ $authorPage.Params.name | default $authorPage.Title }}"
|
||||||
{{- end -}}{{- end -}}
|
class="w-5 h-5 object-cover border border-smoke flex-shrink-0"
|
||||||
|
width="{{ $av.Width }}"
|
||||||
|
height="{{ $av.Height }}"
|
||||||
|
loading="lazy"
|
||||||
|
decoding="async"
|
||||||
|
/>
|
||||||
|
{{- else -}}
|
||||||
|
{{- with .Params.avatar -}}
|
||||||
|
<img
|
||||||
|
src="{{ . }}"
|
||||||
|
alt="{{ $authorPage.Params.name | default $authorPage.Title }}"
|
||||||
|
class="w-5 h-5 object-cover border border-smoke flex-shrink-0"
|
||||||
|
loading="lazy"
|
||||||
|
decoding="async"
|
||||||
|
/>
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
<span class="label text-fog">{{ .Params.name | default .Title }}</span>
|
<span class="label text-fog">{{ .Params.name | default .Title }}</span>
|
||||||
<span class="text-smoke" aria-hidden="true">/</span>
|
<span class="text-smoke" aria-hidden="true">/</span>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
@@ -54,6 +75,5 @@
|
|||||||
{{- $post.Date.Format "Jan 2006" -}}
|
{{- $post.Date.Format "Jan 2006" -}}
|
||||||
</time>
|
</time>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</a>
|
</a>
|
||||||
</article>
|
</article>
|
||||||
|
|||||||
@@ -20,10 +20,10 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
{{- else if and .IsPage (eq .Section "posts") -}}
|
{{- else if and .IsPage (eq .Section "posts") -}}
|
||||||
{{- $authorPage := "" -}}
|
{{- $authorPage := "" -}}
|
||||||
{{- with .Params.author -}}
|
{{- with .Params.author -}}
|
||||||
{{- $authorPage = site.GetPage (printf "authors/%s" .) -}}
|
{{- $authorPage = site.GetPage (printf "authors/%s" .) -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
<script type="application/ld+json">
|
<script type="application/ld+json">
|
||||||
{
|
{
|
||||||
"@context": "https://schema.org",
|
"@context": "https://schema.org",
|
||||||
|
|||||||
+97
-71
@@ -1,35 +1,38 @@
|
|||||||
{{- define "page-background" -}}
|
{{- define "page-background" -}}
|
||||||
{{- with .Params.background -}}
|
{{- with .Params.background -}}
|
||||||
<div class="fixed inset-0 -z-10 overflow-hidden" aria-hidden="true">
|
<div class="fixed inset-0 -z-10 overflow-hidden" aria-hidden="true">
|
||||||
{{- partial "media.html" (dict "media" . "class" "w-full h-full object-cover opacity-[0.15] blur-md scale-110" "lazy" false) -}}
|
{{- partial "media.html" (dict "media" . "class" "w-full h-full object-cover opacity-[0.15] blur-md scale-110" "lazy" false) -}}
|
||||||
<div class="absolute inset-0" style="background: rgba(5,5,16,0.7)"></div>
|
<div class="absolute inset-0" style="background: rgba(5,5,16,0.7)"></div>
|
||||||
</div>
|
</div>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- define "main" -}}
|
{{- define "main" -}}
|
||||||
|
|
||||||
<!-- ── ARTICLE HEADER ────────────────────────────────────────── -->
|
<!-- ── ARTICLE HEADER ────────────────────────────────────────── -->
|
||||||
<header class="gutter-x pt-36 pb-12 max-w-5xl mx-auto relative overflow-hidden">
|
<header class="gutter-x pt-36 pb-12 max-w-5xl mx-auto relative overflow-hidden">
|
||||||
|
|
||||||
<!-- Faded decorative category text -->
|
<!-- Faded decorative category text -->
|
||||||
{{- with index .Params.categories 0 -}}
|
{{- with index .Params.categories 0 -}}
|
||||||
<div class="graffiti-tag absolute -top-2 -right-4 select-none pointer-events-none"
|
<div
|
||||||
style="-webkit-text-stroke-color: rgba(155,0,255,0.08);" aria-hidden="true">{{ . }}</div>
|
class="graffiti-tag absolute -top-2 -right-4 select-none pointer-events-none"
|
||||||
|
style="-webkit-text-stroke-color: rgba(155,0,255,0.08);"
|
||||||
|
aria-hidden="true"
|
||||||
|
>
|
||||||
|
{{ . }}
|
||||||
|
</div>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
|
||||||
<!-- Categories -->
|
<!-- Categories -->
|
||||||
{{- with .Params.categories -}}
|
{{- with .Params.categories -}}
|
||||||
<div class="flex flex-wrap gap-2 mb-6">
|
<div class="flex flex-wrap gap-2 mb-6">
|
||||||
{{- range . -}}
|
{{- range . -}}
|
||||||
<a
|
<a href="/categories/{{ . | urlize }}/" class="badge badge-outline">{{ . }}</a>
|
||||||
href="/categories/{{ . | urlize }}/"
|
|
||||||
class="badge badge-outline"
|
|
||||||
>{{ . }}</a>
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
|
||||||
<!-- Title -->
|
<!-- Title -->
|
||||||
<h1 class="font-display text-5xl md:text-7xl lg:text-8xl text-paper text-balance mb-8 leading-none">
|
<h1 class="font-display text-5xl md:text-7xl lg:text-8xl text-paper text-balance mb-8 leading-none">
|
||||||
{{- .Title -}}
|
{{- .Title -}}
|
||||||
@@ -42,6 +45,7 @@
|
|||||||
</p>
|
</p>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
|
||||||
<!-- Author byline -->
|
<!-- Author byline -->
|
||||||
{{- with .Params.author -}}
|
{{- with .Params.author -}}
|
||||||
{{- $authorPage := site.GetPage (printf "authors/%s" .) -}}
|
{{- $authorPage := site.GetPage (printf "authors/%s" .) -}}
|
||||||
@@ -50,6 +54,7 @@
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
|
||||||
<!-- Date + reading info -->
|
<!-- Date + reading info -->
|
||||||
<div class="flex flex-wrap items-center gap-6">
|
<div class="flex flex-wrap items-center gap-6">
|
||||||
<time class="label text-fog" datetime="{{ .Date.Format "2006-01-02" }}">
|
<time class="label text-fog" datetime="{{ .Date.Format "2006-01-02" }}">
|
||||||
@@ -62,39 +67,43 @@
|
|||||||
<span class="label text-fog">{{ $itemCount }} {{ if eq $itemCount 1 }}Work{{ else }}Works{{ end }}</span>
|
<span class="label text-fog">{{ $itemCount }} {{ if eq $itemCount 1 }}Work{{ else }}Works{{ end }}</span>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
</header>
|
<!-- ── GRADIENT DIVIDER ──────────────────────────────────────── -->
|
||||||
|
<div class="gradient-line mb-0"></div>
|
||||||
|
|
||||||
<!-- ── GRADIENT DIVIDER ──────────────────────────────────────── -->
|
<!-- ── BANNER MEDIA — bundle banner.png → 01.png → .Params.banner ── -->
|
||||||
<div class="gradient-line mb-0"></div>
|
{{- $bannerImg := .Resources.GetMatch "banner.png" -}}
|
||||||
|
{{- if not $bannerImg -}}{{- $bannerImg = .Resources.GetMatch "01.png" -}}{{- end -}}
|
||||||
<!-- ── BANNER MEDIA — bundle banner.png → 01.png → .Params.banner ── -->
|
{{- if $bannerImg -}}
|
||||||
{{- $bannerImg := .Resources.GetMatch "banner.png" -}}
|
<div class="w-full overflow-hidden mb-16 md:mb-24" style="height: clamp(320px, 60vh, 75vh)">
|
||||||
{{- if not $bannerImg -}}{{- $bannerImg = .Resources.GetMatch "01.png" -}}{{- end -}}
|
|
||||||
{{- if $bannerImg -}}
|
|
||||||
<div class="w-full overflow-hidden mb-16 md:mb-24" style="height: clamp(320px, 60vh, 75vh)">
|
|
||||||
{{- partial "img.html" (dict "res" $bannerImg "widths" (slice 1200 1800) "sizes" "100vw" "class" "w-full h-full object-cover object-center" "alt" .Title "loading" "eager") -}}
|
{{- partial "img.html" (dict "res" $bannerImg "widths" (slice 1200 1800) "sizes" "100vw" "class" "w-full h-full object-cover object-center" "alt" .Title "loading" "eager") -}}
|
||||||
</div>
|
</div>
|
||||||
{{- else -}}{{- with .Params.banner -}}
|
{{- else -}}
|
||||||
<div class="w-full overflow-hidden mb-16 md:mb-24" style="height: clamp(320px, 60vh, 75vh)">
|
{{- with .Params.banner -}}
|
||||||
|
<div class="w-full overflow-hidden mb-16 md:mb-24" style="height: clamp(320px, 60vh, 75vh)">
|
||||||
{{- partial "media.html" (dict "media" . "class" "w-full h-full object-cover object-center" "lazy" false) -}}
|
{{- partial "media.html" (dict "media" . "class" "w-full h-full object-cover object-center" "lazy" false) -}}
|
||||||
</div>
|
</div>
|
||||||
{{- end -}}{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
<!-- ── PROSE BODY ────────────────────────────────────────────── -->
|
{{- end -}}
|
||||||
{{- with .Content -}}
|
|
||||||
<article class="gutter-x mb-20 md:mb-28">
|
|
||||||
|
<!-- ── PROSE BODY ────────────────────────────────────────────── -->
|
||||||
|
{{- with .Content -}}
|
||||||
|
<article class="gutter-x mb-20 md:mb-28">
|
||||||
<div class="max-w-5xl mx-auto">
|
<div class="max-w-5xl mx-auto">
|
||||||
<div class="max-w-3xl prose-editorial">
|
<div class="max-w-3xl prose-editorial">
|
||||||
{{ . }}
|
{{ . }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- /* ── GENERATION NOTES (disabled) ─────────────────────────────
|
|
||||||
|
<!-- ── GENERATION NOTES (disabled — remove comment tags to enable)
|
||||||
{{- with .Params.prompt -}}
|
{{- with .Params.prompt -}}
|
||||||
<section class="gutter-x mb-20 md:mb-28">
|
<section class="gutter-x mb-20 md:mb-28">
|
||||||
<div class="max-w-5xl mx-auto">
|
<div class="max-w-5xl mx-auto">
|
||||||
<div class="flex items-center gap-5 mb-8">
|
<div class="flex items-center gap-5 mb-8">
|
||||||
<span class="badge badge-outline">Generation Notes</span>
|
<span class="badge badge-outline">Generation Notes</span>
|
||||||
@@ -121,18 +130,17 @@
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
*/ -}}
|
-->
|
||||||
|
|
||||||
<!-- ── GALLERY ───────────────────────────────────────────────── -->
|
<!-- ── GALLERY ───────────────────────────────────────────────── -->
|
||||||
{{- $bundleImages := .Resources.Match "[0-9]*.png" -}}
|
{{- $bundleImages := .Resources.Match "[0-9]*.png" -}}
|
||||||
{{- $legacyItems := slice -}}
|
{{- $legacyItems := slice -}}
|
||||||
{{- with .Params.items -}}{{- $legacyItems = . -}}{{- end -}}
|
{{- with .Params.items -}}{{- $legacyItems = . -}}{{- end -}}
|
||||||
{{- if or $bundleImages $legacyItems -}}
|
{{- if or $bundleImages $legacyItems -}}
|
||||||
<section class="gutter-x pb-24 md:pb-32" aria-label="Gallery">
|
<section class="gutter-x pb-24 md:pb-32" aria-label="Gallery">
|
||||||
<div class="max-w-5xl mx-auto">
|
<div class="max-w-5xl mx-auto">
|
||||||
|
|
||||||
{{- if $bundleImages -}}
|
{{- if $bundleImages -}}
|
||||||
{{- /* Pre-compute lightbox items so Alpine gets a static JSON array */ -}}
|
{{- /* Pre-compute lightbox items so Alpine gets a static JSON array */ -}}
|
||||||
{{- $lbItems := slice -}}
|
{{- $lbItems := slice -}}
|
||||||
@@ -145,11 +153,13 @@
|
|||||||
{{- $lbItems = $lbItems | append $entry -}}
|
{{- $lbItems = $lbItems | append $entry -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
<div x-data="{ items: {{ $lbItems | jsonify }} }">
|
|
||||||
|
|
||||||
|
<div x-data="{ items: {{ $lbItems | jsonify }} }">
|
||||||
<div class="flex items-center gap-5 mb-10">
|
<div class="flex items-center gap-5 mb-10">
|
||||||
<span class="badge badge-gradient">Gallery</span>
|
<span class="badge badge-gradient">Gallery</span>
|
||||||
<span class="label text-fog">{{ len $bundleImages }} {{ if eq (len $bundleImages) 1 }}work{{ else }}works{{ end }}</span>
|
<span class="label text-fog"
|
||||||
|
>{{ len $bundleImages }} {{ if eq (len $bundleImages) 1 }}work{{ else }}works{{ end }}</span
|
||||||
|
>
|
||||||
<div class="flex-1 gradient-line ml-2"></div>
|
<div class="flex-1 gradient-line ml-2"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -157,11 +167,21 @@
|
|||||||
{{- range $i, $img := $bundleImages -}}
|
{{- range $i, $img := $bundleImages -}}
|
||||||
{{- $stem := $img.Name | strings.TrimSuffix ".png" -}}
|
{{- $stem := $img.Name | strings.TrimSuffix ".png" -}}
|
||||||
{{- $video := $.Resources.GetMatch (printf "%s.mp4" $stem) -}}
|
{{- $video := $.Resources.GetMatch (printf "%s.mp4" $stem) -}}
|
||||||
<figure class="break-inside-avoid group card-comic cursor-zoom-in"
|
<figure
|
||||||
@click="$dispatch('lightbox:open', { items, idx: {{ $i }} })">
|
class="break-inside-avoid group card-comic cursor-zoom-in"
|
||||||
|
@click="$dispatch('lightbox:open', { items, idx: {{ $i }} })"
|
||||||
|
>
|
||||||
<div class="card-media min-h-48">
|
<div class="card-media min-h-48">
|
||||||
{{- if $video -}}
|
{{- if $video -}}
|
||||||
<video class="w-full pointer-events-none" src="{{ $video.RelPermalink }}" poster="{{ $img.RelPermalink }}" autoplay loop muted playsinline></video>
|
<video
|
||||||
|
class="w-full pointer-events-none"
|
||||||
|
src="{{ $video.RelPermalink }}"
|
||||||
|
poster="{{ $img.RelPermalink }}"
|
||||||
|
autoplay
|
||||||
|
loop
|
||||||
|
muted
|
||||||
|
playsinline
|
||||||
|
></video>
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- partial "img.html" (dict "res" $img "widths" (slice 800 1200) "sizes" "(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw" "class" "w-full pointer-events-none") -}}
|
{{- partial "img.html" (dict "res" $img "widths" (slice 800 1200) "sizes" "(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw" "class" "w-full pointer-events-none") -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
@@ -169,24 +189,31 @@
|
|||||||
</figure>
|
</figure>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
<!-- Legacy front-matter items -->
|
<!-- Legacy front-matter items -->
|
||||||
<div class="flex items-center gap-5 mb-10">
|
<div class="flex items-center gap-5 mb-10">
|
||||||
<span class="badge badge-gradient">Gallery</span>
|
<span class="badge badge-gradient">Gallery</span>
|
||||||
<span class="label text-fog">{{ len $legacyItems }} {{ if eq (len $legacyItems) 1 }}work{{ else }}works{{ end }}</span>
|
<span class="label text-fog"
|
||||||
|
>{{ len $legacyItems }} {{ if eq (len $legacyItems) 1 }}work{{ else }}works{{ end }}</span
|
||||||
|
>
|
||||||
<div class="flex-1 gradient-line ml-2"></div>
|
<div class="flex-1 gradient-line ml-2"></div>
|
||||||
</div>
|
</div>
|
||||||
<div x-data="{ selected: null }" class="columns-1 sm:columns-2 lg:columns-3 gap-5 space-y-5">
|
<div x-data="{ selected: null }" class="columns-1 sm:columns-2 lg:columns-3 gap-5 space-y-5">
|
||||||
{{- range $i, $item := $legacyItems -}}
|
{{- range $i, $item := $legacyItems -}}
|
||||||
<figure class="break-inside-avoid group cursor-pointer card-comic" @click="selected = selected === {{ $i }} ? null : {{ $i }}">
|
<figure
|
||||||
|
class="break-inside-avoid group cursor-pointer card-comic"
|
||||||
|
@click="selected = selected === {{ $i }} ? null : {{ $i }}"
|
||||||
|
>
|
||||||
<div class="card-media">
|
<div class="card-media">
|
||||||
{{- partial "media.html" (dict "media" $item "class" "w-full") -}}
|
{{- partial "media.html" (dict "media" $item "class" "w-full") -}}
|
||||||
</div>
|
</div>
|
||||||
{{- with $item.description -}}
|
{{- with $item.description -}}
|
||||||
<figcaption class="px-4 py-3 text-fog text-sm leading-relaxed font-body transition-colors group-hover:text-chalk">{{ . }}</figcaption>
|
<figcaption
|
||||||
|
class="px-4 py-3 text-fog text-sm leading-relaxed font-body transition-colors group-hover:text-chalk"
|
||||||
|
>
|
||||||
|
{{ . }}
|
||||||
|
</figcaption>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</figure>
|
</figure>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
@@ -194,28 +221,27 @@
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
<!-- ── TAGS ─────────────────────────────────────────────────── -->
|
|
||||||
{{- with .Params.tags -}}
|
<!-- ── TAGS ─────────────────────────────────────────────────── -->
|
||||||
<footer class="gutter-x border-t border-zinc pt-10 pb-20">
|
{{- with .Params.tags -}}
|
||||||
|
<footer class="gutter-x border-t border-zinc pt-10 pb-20">
|
||||||
<div class="max-w-5xl mx-auto flex flex-wrap gap-3 items-center">
|
<div class="max-w-5xl mx-auto flex flex-wrap gap-3 items-center">
|
||||||
<span class="label text-fog">Tagged:</span>
|
<span class="label text-fog">Tagged:</span>
|
||||||
{{- range . -}}
|
{{- range . -}}
|
||||||
<a
|
<a href="/tags/{{ . | urlize }}/" class="badge badge-outline"># {{ . }}</a>
|
||||||
href="/tags/{{ . | urlize }}/"
|
|
||||||
class="badge badge-outline"
|
|
||||||
># {{ . }}</a>
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
<!-- ── RELATED POSTS ─────────────────────────────────────────── -->
|
|
||||||
{{- $related := .Site.RegularPages.Related . | first 3 -}}
|
<!-- ── RELATED POSTS ─────────────────────────────────────────── -->
|
||||||
{{- with $related -}}
|
{{- $related := .Site.RegularPages.Related . | first 3 -}}
|
||||||
<section class="bg-concrete border-t border-zinc gutter-x py-16 md:py-24 spray-bg">
|
{{- with $related -}}
|
||||||
|
<section class="bg-concrete border-t border-zinc gutter-x py-16 md:py-24 spray-bg">
|
||||||
<div class="max-w-5xl mx-auto">
|
<div class="max-w-5xl mx-auto">
|
||||||
<div class="flex items-center gap-5 mb-10">
|
<div class="flex items-center gap-5 mb-10">
|
||||||
<h2 class="font-display text-3xl md:text-4xl text-paper leading-none">
|
<h2 class="font-display text-3xl md:text-4xl text-paper leading-none">
|
||||||
@@ -229,7 +255,7 @@
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -1,16 +1,17 @@
|
|||||||
{{- define "main" -}}
|
{{- define "main" -}}
|
||||||
|
<!-- Tag header -->
|
||||||
<!-- Tag header -->
|
<header class="gutter-x pt-36 pb-16 border-b border-mist">
|
||||||
<header class="gutter-x pt-36 pb-16 border-b border-mist">
|
|
||||||
<div class="max-w-4xl">
|
<div class="max-w-4xl">
|
||||||
<span class="label text-ash block mb-4">Tag</span>
|
<span class="label text-ash block mb-4">Tag</span>
|
||||||
<h1 class="font-display text-5xl md:text-7xl text-paper text-balance"># {{ .Title }}</h1>
|
<h1 class="font-display text-5xl md:text-7xl text-paper text-balance"># {{ .Title }}</h1>
|
||||||
<p class="text-ash label mt-5">{{ len .Pages }} {{ if eq (len .Pages) 1 }}editorial{{ else }}editorials{{ end }}</p>
|
<p class="text-ash label mt-5">
|
||||||
|
{{ len .Pages }} {{ if eq (len .Pages) 1 }}editorial{{ else }}editorials{{ end }}
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<!-- Posts grid -->
|
<!-- Posts grid -->
|
||||||
<section class="gutter-x py-16 md:py-24">
|
<section class="gutter-x py-16 md:py-24">
|
||||||
{{- if .Paginator.Pages -}}
|
{{- if .Paginator.Pages -}}
|
||||||
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-x-5 gap-y-12">
|
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-x-5 gap-y-12">
|
||||||
{{- range .Paginator.Pages -}}
|
{{- range .Paginator.Pages -}}
|
||||||
@@ -21,6 +22,5 @@
|
|||||||
{{- else -}}
|
{{- else -}}
|
||||||
<p class="text-ash label text-center py-24">No posts with this tag yet.</p>
|
<p class="text-ash label text-center py-24">No posts with this tag yet.</p>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
+8
-3
@@ -4,13 +4,18 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "hugo server --buildDrafts --disableFastRender",
|
"dev": "hugo server --buildDrafts --disableFastRender",
|
||||||
"build": "NODE_ENV=production hugo --minify"
|
"build": "NODE_ENV=production hugo --minify",
|
||||||
|
"format": "prettier --write \"layouts/**/*.html\" \"assets/**/*.css\" \"assets/**/*.js\" \"content/**/*.md\" \"*.toml\"",
|
||||||
|
"format:check": "prettier --check \"layouts/**/*.html\" \"assets/**/*.css\" \"assets/**/*.js\" \"content/**/*.md\" \"*.toml\""
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"tailwindcss": "^4.0.0",
|
|
||||||
"@tailwindcss/postcss": "^4.0.0",
|
"@tailwindcss/postcss": "^4.0.0",
|
||||||
"autoprefixer": "^10.4.0",
|
"autoprefixer": "^10.4.0",
|
||||||
"postcss": "^8.5.0",
|
"postcss": "^8.5.0",
|
||||||
"postcss-cli": "^11.0.0"
|
"postcss-cli": "^11.0.0",
|
||||||
|
"prettier": "^3.8.3",
|
||||||
|
"prettier-plugin-go-template": "^0.0.15",
|
||||||
|
"prettier-plugin-toml": "^2.0.6",
|
||||||
|
"tailwindcss": "^4.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+56
@@ -20,6 +20,15 @@ importers:
|
|||||||
postcss-cli:
|
postcss-cli:
|
||||||
specifier: ^11.0.0
|
specifier: ^11.0.0
|
||||||
version: 11.0.1(jiti@2.6.1)(postcss@8.5.8)
|
version: 11.0.1(jiti@2.6.1)(postcss@8.5.8)
|
||||||
|
prettier:
|
||||||
|
specifier: ^3.8.3
|
||||||
|
version: 3.8.3
|
||||||
|
prettier-plugin-go-template:
|
||||||
|
specifier: ^0.0.15
|
||||||
|
version: 0.0.15(prettier@3.8.3)
|
||||||
|
prettier-plugin-toml:
|
||||||
|
specifier: ^2.0.6
|
||||||
|
version: 2.0.6(prettier@3.8.3)
|
||||||
tailwindcss:
|
tailwindcss:
|
||||||
specifier: ^4.0.0
|
specifier: ^4.0.0
|
||||||
version: 4.2.2
|
version: 4.2.2
|
||||||
@@ -134,6 +143,12 @@ packages:
|
|||||||
'@tailwindcss/postcss@4.2.2':
|
'@tailwindcss/postcss@4.2.2':
|
||||||
resolution: {integrity: sha512-n4goKQbW8RVXIbNKRB/45LzyUqN451deQK0nzIeauVEqjlI49slUlgKYJM2QyUzap/PcpnS7kzSUmPb1sCRvYQ==}
|
resolution: {integrity: sha512-n4goKQbW8RVXIbNKRB/45LzyUqN451deQK0nzIeauVEqjlI49slUlgKYJM2QyUzap/PcpnS7kzSUmPb1sCRvYQ==}
|
||||||
|
|
||||||
|
'@taplo/core@0.2.0':
|
||||||
|
resolution: {integrity: sha512-r8bl54Zj1In3QLkiW/ex694bVzpPJ9EhwqT9xkcUVODnVUGirdB1JTsmiIv0o1uwqZiwhi8xNnTOQBRQCpizrQ==}
|
||||||
|
|
||||||
|
'@taplo/lib@0.5.0':
|
||||||
|
resolution: {integrity: sha512-+xIqpQXJco3T+VGaTTwmhxLa51qpkQxCjRwezjFZgr+l21ExlywJFcDfTrNmL6lG6tqb0h8GyJKO3UPGPtSCWg==}
|
||||||
|
|
||||||
ansi-regex@5.0.1:
|
ansi-regex@5.0.1:
|
||||||
resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==}
|
resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==}
|
||||||
engines: {node: '>=8'}
|
engines: {node: '>=8'}
|
||||||
@@ -413,6 +428,23 @@ packages:
|
|||||||
resolution: {integrity: sha512-OW/rX8O/jXnm82Ey1k44pObPtdblfiuWnrd8X7GJ7emImCOstunGbXUpp7HdBrFQX6rJzn3sPT397Wp5aCwCHg==}
|
resolution: {integrity: sha512-OW/rX8O/jXnm82Ey1k44pObPtdblfiuWnrd8X7GJ7emImCOstunGbXUpp7HdBrFQX6rJzn3sPT397Wp5aCwCHg==}
|
||||||
engines: {node: ^10 || ^12 || >=14}
|
engines: {node: ^10 || ^12 || >=14}
|
||||||
|
|
||||||
|
prettier-plugin-go-template@0.0.15:
|
||||||
|
resolution: {integrity: sha512-WqU92E1NokWYNZ9mLE6ijoRg6LtIGdLMePt2C7UBDjXeDH9okcRI3zRqtnWR4s5AloiqyvZ66jNBAa9tmRY5EQ==}
|
||||||
|
engines: {node: '>=14.0.0'}
|
||||||
|
peerDependencies:
|
||||||
|
prettier: ^3.0.0
|
||||||
|
|
||||||
|
prettier-plugin-toml@2.0.6:
|
||||||
|
resolution: {integrity: sha512-12N/wBuHa9jd/KVy9pRP20NMKxQfQLMseQCt66lIbLaPLItvGUcSIryE1eZZMJ7loSws6Ig3M2Elc2EreNh76w==}
|
||||||
|
engines: {node: '>=16.0.0'}
|
||||||
|
peerDependencies:
|
||||||
|
prettier: ^3.0.3
|
||||||
|
|
||||||
|
prettier@3.8.3:
|
||||||
|
resolution: {integrity: sha512-7igPTM53cGHMW8xWuVTydi2KO233VFiTNyF5hLJqpilHfmn8C8gPf+PS7dUT64YcXFbiMGZxS9pCSxL/Dxm/Jw==}
|
||||||
|
engines: {node: '>=14'}
|
||||||
|
hasBin: true
|
||||||
|
|
||||||
pretty-hrtime@1.0.3:
|
pretty-hrtime@1.0.3:
|
||||||
resolution: {integrity: sha512-66hKPCr+72mlfiSjlEB1+45IjXSqvVAIy6mocupoww4tBFE9R9IhwwUGoI4G++Tc9Aq+2rxOt0RFU6gPcrte0A==}
|
resolution: {integrity: sha512-66hKPCr+72mlfiSjlEB1+45IjXSqvVAIy6mocupoww4tBFE9R9IhwwUGoI4G++Tc9Aq+2rxOt0RFU6gPcrte0A==}
|
||||||
engines: {node: '>= 0.8'}
|
engines: {node: '>= 0.8'}
|
||||||
@@ -462,6 +494,10 @@ packages:
|
|||||||
resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==}
|
resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==}
|
||||||
engines: {node: '>=8.0'}
|
engines: {node: '>=8.0'}
|
||||||
|
|
||||||
|
ulid@2.4.0:
|
||||||
|
resolution: {integrity: sha512-fIRiVTJNcSRmXKPZtGzFQv9WRrZ3M9eoptl/teFJvjOzmpU+/K/JH6HZ8deBfb5vMEpicJcLn7JmvdknlMq7Zg==}
|
||||||
|
hasBin: true
|
||||||
|
|
||||||
universalify@2.0.1:
|
universalify@2.0.1:
|
||||||
resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==}
|
resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==}
|
||||||
engines: {node: '>= 10.0.0'}
|
engines: {node: '>= 10.0.0'}
|
||||||
@@ -585,6 +621,12 @@ snapshots:
|
|||||||
postcss: 8.5.8
|
postcss: 8.5.8
|
||||||
tailwindcss: 4.2.2
|
tailwindcss: 4.2.2
|
||||||
|
|
||||||
|
'@taplo/core@0.2.0': {}
|
||||||
|
|
||||||
|
'@taplo/lib@0.5.0':
|
||||||
|
dependencies:
|
||||||
|
'@taplo/core': 0.2.0
|
||||||
|
|
||||||
ansi-regex@5.0.1: {}
|
ansi-regex@5.0.1: {}
|
||||||
|
|
||||||
ansi-styles@4.3.0:
|
ansi-styles@4.3.0:
|
||||||
@@ -820,6 +862,18 @@ snapshots:
|
|||||||
picocolors: 1.1.1
|
picocolors: 1.1.1
|
||||||
source-map-js: 1.2.1
|
source-map-js: 1.2.1
|
||||||
|
|
||||||
|
prettier-plugin-go-template@0.0.15(prettier@3.8.3):
|
||||||
|
dependencies:
|
||||||
|
prettier: 3.8.3
|
||||||
|
ulid: 2.4.0
|
||||||
|
|
||||||
|
prettier-plugin-toml@2.0.6(prettier@3.8.3):
|
||||||
|
dependencies:
|
||||||
|
'@taplo/lib': 0.5.0
|
||||||
|
prettier: 3.8.3
|
||||||
|
|
||||||
|
prettier@3.8.3: {}
|
||||||
|
|
||||||
pretty-hrtime@1.0.3: {}
|
pretty-hrtime@1.0.3: {}
|
||||||
|
|
||||||
read-cache@1.0.0:
|
read-cache@1.0.0:
|
||||||
@@ -861,6 +915,8 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
is-number: 7.0.0
|
is-number: 7.0.0
|
||||||
|
|
||||||
|
ulid@2.4.0: {}
|
||||||
|
|
||||||
universalify@2.0.1: {}
|
universalify@2.0.1: {}
|
||||||
|
|
||||||
update-browserslist-db@1.2.3(browserslist@4.28.1):
|
update-browserslist-db@1.2.3(browserslist@4.28.1):
|
||||||
|
|||||||
Reference in New Issue
Block a user