Standalone Pages Overview
About 508 wordsAbout 2 min
2026-09-01
Shirone ships with a set of standalone personal pages: About, Moments, Friends, Albums, Anime, Compass, Skills, Projects, Devices, Games, Series, and Timeline. This page explains their overall organization—the enable system, navigation linkage, and page identifiers. Page-specific configs follow in later pages.
Page List
| Page | URL | Data/Content Source | Behavior Config |
|---|---|---|---|
| About | /about/ | src/content/spec/about.md | aboutConfig.ts |
| Moments | /moments/ | src/content/moments/*.md | momentsConfig.ts (encryption supported) |
| Friends | /friends/ | src/data/friends.ts | friendsConfig.ts (pagination included) |
| Albums | /albums/ | Album data | albumsConfig.ts; encryption protected |
| Anime | /anime/ | src/data/anime.ts or snapshots | animeConfig.ts (pagination included) |
| Compass | /compass/ | src/data/compass.ts | compassConfig.ts |
| Skills | /skills/ | src/data/skills.ts | skillsConfig.ts |
| Projects | /projects/ | src/data/projects.ts | projectsConfig.ts |
| Devices | /devices/ | src/data/devices.ts | devicesConfig.ts |
| Games | /games/ | src/data/games.ts | gamesConfig.ts |
| Series | /series/ | src/content/series/*.md | seriesConfig.ts |
| Timeline | /timeline/ | src/data/timeline.ts | timelineConfig.ts |
Enable System and Navigation Linkage
Every standalone page has a matching xxxConfig.ts, and they all share one rule:
enable: true, // when false:
// 1. the navigation entry hides automatically
// 2. direct visits to the page return 404Disabling a page requires no navbar changes—nav entries are conditionally mounted on each page's enable (see the more group section in Navigation Bar).
Pages differ in how much they expose: About and Compass only have the switch and title/description, Moments adds content encryption, and Friends and Anime add list pagination. If you only want to hide a page from the navbar, remove the nav entry—the page itself can stay online.
Config / Data Separation
This is the core principle for all page configs (see Site Config):
| Question | Belongs to | Location |
|---|---|---|
| Page on/off? Category order? Disable one item? | Config | src/config/xxxConfig.ts |
| The actual entries shown on the page? | Data | src/data/xxx.ts |
Taking the skills page as an example: skillsConfig.enable toggles the page, categories orders the filter chips, disabledNames disables individual skills—while skill names, levels, icons, and descriptions all live in src/data/skills.ts.
Page Identifiers (pages)
Every page has a unified identifier used for pages filtering in sidebar widgets and the FAB:
home | archive | friends | moments | anime | compass | skills |
projects | devices | games | series | timeline | albums | about | post | categories | tagsFor example, the announcement widget defaults to pages: ["home"] and the floating TOC to pages: ["post"] (see Sidebar Layout and Floating Controls).
Navigation Mounting
All page URLs are registered in the LinkPresets table. The default navbar mounts common pages directly and folds low-frequency pages (Timeline, Projects, Devices, Games, Skills) into the "More" dropdown—also conditional on each enable. See Navigation Bar for adjustments.
FAQ
What happens to old links after disabling a page
Direct visits return 404. If the page was indexed by search engines, configure 301 redirects at the hosting platform level.
Can I change a page's URL
The url in presets can be overridden via custom links (e.g. /moments/ → /say/), see the custom links section in Navigation Bar.
Adding my own standalone page
Create an Astro page under src/pages/—but it won't automatically get navigation entries or widget filtering; register it in LinkPresets.
Copyright
Copyright Ownership:Dawn6666666
License under:Attribution 4.0 International (CC-BY-4.0)