Skip to content

Commit 334bb50

Browse files
feat: add configurable labels for Home and Close buttons in UI
1 parent e8fa18f commit 334bb50

5 files changed

Lines changed: 6 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Added
1111

1212
- Configurable Body of Work page: `bodyOfWork.title` and `bodyOfWork.slug` fields in `config.yaml`.
13+
- Configurable Home link label via `ui.labels.home` in `config.yaml`.
1314

1415
### Fixed
1516

1617
- 502 error page now correctly uses theme from `ui.theme.preset` instead of defaulting to `journal`.
18+
- Close button label now correctly reads from `ui.labels.close` instead of `ui.close`.
1719
- Deployment script now polls host filesystem for 502 page instead of waiting for container build.
1820

1921
## [1.4.0] - 2026-02-26

build/defaults/config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ site:
66
description: "A personal writing space."
77
ui:
88
labels:
9+
home: "Home"
910
previous: "Previous"
1011
next: "Next"
1112
noContent: "No pieces found in this collection."

public/config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ ui:
1010
defaultMode:
1111
overrides:
1212
labels:
13+
home: "Home"
1314
previous: "Previous"
1415
next: "Next"
1516
noContent: "No pieces found in this collection."

src/components/Header/Header.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function Header({ config }) {
4848
<header className="header-bar">
4949
<div className="header-left collection-view">
5050
<Link to="/" className="close-button">
51-
{config?.ui?.close || "Close"}
51+
{config?.ui?.labels?.close || "Close"}
5252
</Link>
5353
<span className="separator">|</span>
5454
<span className="collection-title">{collection}</span>

src/components/Navigation/Navigation.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function Navigation() {
3737
return (
3838
<nav>
3939
<NavLink key="home" to="/">
40-
Home
40+
{config?.ui?.labels?.home || 'Home'}
4141
</NavLink>
4242
{pages.map((page) => (
4343
<NavLink key={page.slug} to={`/${page.slug}`}>

0 commit comments

Comments
 (0)