Add Hugo link page with Sveltia CMS admin
build / build (push) Successful in 35s

Content lives in data/profile.yaml and is edited as structured fields through Sveltia at /admin/, so the page is never hand-written HTML. The CMS bundle is vendored at a pinned version instead of loaded from unpkg, and the admin assets ship with the built site, so hosting and builds stay self-contained. PKCE sign-in activates once a Gitea OAuth application client ID is added to static/admin/config.yml.
This commit is contained in:
Hermes committed 2026-10-24 03:53:31 +00:00
commit 0341edc73d
30 files changed
+4181

No files matched your search

+47
View File
@@ -0,0 +1,47 @@
backend:
name: gitea
repo: William/williammiceli.me
base_url: https://gitea.williammiceli.systems
api_root: https://gitea.williammiceli.systems/api/v1
media_folder: static/uploads
public_folder: /uploads
collections:
- name: profile
label: Profile
files:
- name: profile
label: Profile
file: data/profile.yaml
fields:
- { name: name, label: Name, widget: string }
- { name: tagline, label: Tagline, widget: string, required: false }
- { name: initials, label: Initials, widget: string, required: false, hint: Shown when no avatar is set }
- { name: avatar, label: Avatar, widget: image, required: false }
- name: links
label: Links
widget: list
fields:
- { name: label, label: Label, widget: string }
- { name: url, label: URL, widget: string }
- name: icon
label: Icon
widget: select
default: link-45deg
options:
- link-45deg
- envelope
- telephone
- globe2
- github
- gitlab
- git
- linkedin
- twitter-x
- instagram
- facebook
- youtube
- telegram
- whatsapp
- mastodon
- bluesky
- rss
+12
View File
@@ -0,0 +1,12 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noindex">
<title>Content — williammiceli.me</title>
</head>
<body>
<script src="./vendor/sveltia-cms.js"></script>
</body>
</html>
+3753
View File
File diff suppressed because it is too large. Load diff
+4
View File
@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<rect width="32" height="32" rx="7" fill="#111318"/>
<g transform="scale(2)" fill="#ffffff"><path d="M4.715 6.542 3.343 7.914a3 3 0 1 0 4.243 4.243l1.828-1.829A3 3 0 0 0 8.586 5.5L8 6.086a1 1 0 0 0-.154.199 2 2 0 0 1 .861 3.337L6.88 11.45a2 2 0 1 1-2.83-2.83l.793-.792a4 4 0 0 1-.128-1.287z"/></g>
</svg>

After

Width:  |  Height:  |  Size: 370 B

View File
Whitespace-only changes.