asw-v01: archive deferred content (packs, site, lab, legacy examples)
- 2.1: packs/ -> archive/packs/ - 2.2: site/ -> archive/site/ - 2.3: src/lab/ -> archive/lab/ - 2.4: examples/ -> archive/examples-legacy/ (SSI-based)
This commit is contained in:
parent
416fe2f180
commit
e47a9f4401
173 changed files with 11 additions and 5 deletions
82
archive/packs/hugo/static/admin/config.yml
Normal file
82
archive/packs/hugo/static/admin/config.yml
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
# Decap CMS configuration for ASW-Hugo pack
|
||||
# Browser-based Markdown editing — no backend server required.
|
||||
#
|
||||
# Setup:
|
||||
# 1. Update `repo` below to your Forgejo repo path (owner/repo)
|
||||
# 2. Update `base_url` to your Forgejo instance URL
|
||||
# 3. Register an OAuth app in Forgejo: Settings → Applications → OAuth2 Apps
|
||||
# - Redirect URL: https://yoursite.com/admin/
|
||||
# 4. Deploy admin/ alongside your Hugo output
|
||||
# 5. Access at https://yoursite.com/admin/
|
||||
|
||||
backend:
|
||||
name: gitea # Forgejo is Gitea-compatible
|
||||
repo: trentuna/vault # ← CHANGE: your repo (owner/repo)
|
||||
branch: main
|
||||
base_url: https://trentuna.com # ← CHANGE: your Forgejo instance URL
|
||||
auth_endpoint: /api/v1/oauth2/
|
||||
|
||||
media_folder: static/images
|
||||
public_folder: /images
|
||||
|
||||
# Slug format for new posts
|
||||
slug:
|
||||
encoding: ascii
|
||||
clean_accents: true
|
||||
|
||||
collections:
|
||||
- name: posts
|
||||
label: Posts
|
||||
label_singular: Post
|
||||
folder: content/posts
|
||||
create: true
|
||||
slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
|
||||
preview_path: "posts/{{slug}}/"
|
||||
fields:
|
||||
- label: Title
|
||||
name: title
|
||||
widget: string
|
||||
- label: Date
|
||||
name: date
|
||||
widget: datetime
|
||||
default: ""
|
||||
date_format: "YYYY-MM-DD"
|
||||
time_format: "HH:mm:ss"
|
||||
format: "YYYY-MM-DDTHH:mm:ssZ"
|
||||
- label: Description
|
||||
name: description
|
||||
widget: string
|
||||
required: false
|
||||
hint: Short summary shown in list views
|
||||
- label: Tags
|
||||
name: tags
|
||||
widget: list
|
||||
required: false
|
||||
hint: Comma-separated tags
|
||||
- label: Draft
|
||||
name: draft
|
||||
widget: boolean
|
||||
default: true
|
||||
- label: Body
|
||||
name: body
|
||||
widget: markdown
|
||||
|
||||
- name: pages
|
||||
label: Pages
|
||||
label_singular: Page
|
||||
folder: content
|
||||
create: true
|
||||
filter:
|
||||
field: _type
|
||||
value: page
|
||||
fields:
|
||||
- label: Title
|
||||
name: title
|
||||
widget: string
|
||||
- label: Description
|
||||
name: description
|
||||
widget: string
|
||||
required: false
|
||||
- label: Body
|
||||
name: body
|
||||
widget: markdown
|
||||
4931
archive/packs/hugo/static/css/asw.css
Normal file
4931
archive/packs/hugo/static/css/asw.css
Normal file
File diff suppressed because it is too large
Load diff
130
archive/packs/hugo/static/css/theme.css
Normal file
130
archive/packs/hugo/static/css/theme.css
Normal file
|
|
@ -0,0 +1,130 @@
|
|||
/*
|
||||
* Trentuna theme tokens for ASW-Hugo pack
|
||||
* Overrides ASW custom properties with trentuna-specific values.
|
||||
*
|
||||
* Zero CDN dependencies — system font stacks only, matching ASW's own ethos.
|
||||
* ASW framework (web-fonts.css) uses system fonts by design: zero external requests,
|
||||
* zero layout shift, fonts resolve to native equivalents on every device.
|
||||
*
|
||||
* Inter and JetBrains Mono resolve to system-ui / monospace on most platforms.
|
||||
* To use web fonts: add @font-face declarations to a local fonts.css and
|
||||
* @import it before this file.
|
||||
*/
|
||||
|
||||
:root {
|
||||
/* --- Typography (system font stacks — no external loading) --- */
|
||||
--font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
||||
--font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', ui-monospace, monospace;
|
||||
|
||||
/* --- Dark palette --- */
|
||||
--color-bg: #0f0f0f;
|
||||
--color-surface: #1a1a1a;
|
||||
--color-surface-2:#222222;
|
||||
--color-border: #2e2e2e;
|
||||
--color-text: #e8e8e8;
|
||||
--color-muted: #888888;
|
||||
--color-accent: #e8c87a; /* warm gold */
|
||||
--color-accent-2: #7aadcf; /* cool blue */
|
||||
--color-danger: #cf7a7a;
|
||||
--color-success: #7acf9a;
|
||||
|
||||
/* --- Spacing scale (matches ASW defaults) --- */
|
||||
--space-xs: 0.25rem;
|
||||
--space-sm: 0.5rem;
|
||||
--space-md: 1rem;
|
||||
--space-lg: 1.5rem;
|
||||
--space-xl: 2.5rem;
|
||||
--space-2xl: 4rem;
|
||||
}
|
||||
|
||||
/* Base */
|
||||
html {
|
||||
background-color: var(--color-bg);
|
||||
color: var(--color-text);
|
||||
font-family: var(--font-sans);
|
||||
}
|
||||
|
||||
code, pre, kbd, samp, tt {
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
|
||||
/* Links */
|
||||
a {
|
||||
color: var(--color-accent);
|
||||
}
|
||||
a:hover {
|
||||
color: var(--color-accent-2);
|
||||
}
|
||||
a[data-wikilink] {
|
||||
text-decoration: underline dotted;
|
||||
}
|
||||
|
||||
/* Navigation */
|
||||
header nav {
|
||||
display: flex;
|
||||
gap: var(--space-md);
|
||||
align-items: center;
|
||||
padding: var(--space-md) var(--space-lg);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
header nav a {
|
||||
text-decoration: none;
|
||||
font-weight: 500;
|
||||
}
|
||||
header nav strong {
|
||||
color: var(--color-text);
|
||||
margin-right: var(--space-md);
|
||||
}
|
||||
|
||||
/* Tag cloud */
|
||||
nav[data-role="tag-cloud"] {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-xs) var(--space-sm);
|
||||
}
|
||||
nav[data-role="tag-cloud"] a {
|
||||
font-size: 0.8rem;
|
||||
text-decoration: none;
|
||||
padding: 0.15em 0.5em;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: 2px;
|
||||
color: var(--color-muted);
|
||||
}
|
||||
nav[data-role="tag-cloud"] a:hover {
|
||||
color: var(--color-accent);
|
||||
border-color: var(--color-accent);
|
||||
}
|
||||
a[data-tag] {
|
||||
font-size: 0.8rem;
|
||||
color: var(--color-muted);
|
||||
text-decoration: none;
|
||||
}
|
||||
a[data-tag]:hover {
|
||||
color: var(--color-accent);
|
||||
}
|
||||
|
||||
/* Grid layout */
|
||||
section[data-layout="grid"] {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
|
||||
gap: var(--space-lg);
|
||||
}
|
||||
|
||||
/* Article cards in grid */
|
||||
section[data-layout="grid"] article {
|
||||
border: 1px solid var(--color-border);
|
||||
padding: var(--space-md);
|
||||
border-radius: 3px;
|
||||
}
|
||||
section[data-layout="grid"] article:hover {
|
||||
border-color: var(--color-border);
|
||||
background: var(--color-surface);
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
footer {
|
||||
padding: var(--space-lg);
|
||||
color: var(--color-muted);
|
||||
border-top: 1px solid var(--color-border);
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue