Back to projects
GitHubVisit

blog

▲ Guany's blog

CategoryStack
FrameworkNext.js 16 (App Router)
UIshadcn/ui + Tailwind CSS 4
ContentStreamdown
I18nnext-intl
Config config center
DeployVercel / Netlify / Docker

Install

bash
pnpm installcp .env.example .env.local

Environment Variables

VariableRequiredDescription
GITHUB_TOKENYesGitHub personal access token
CO_APINoCo config center API for Hero background config
TO_API_URLNoto short link service API base URL
TO_API_KEYNoto API key for external link tracking

Usage

Development

bash
pnpm dev

Build

bash
pnpm build

Hero Background Config

Hero background is managed via config center (blog/ui/hero). Falls back to Bing daily wallpaper if not configured.

json
{  "hero": {    "mode": "bing"  }}
json
{  "hero": {    "mode": "custom",    "custom": {      "url": "https://example.com/image.jpg",      "position": "center"    }  }}
FieldDescription
hero.mode"bing" or "custom"
hero.custom.urlAbsolute image URL
hero.custom.positionCSS background-position value, default "center"

When TO_API_URL and TO_API_KEY are set, external links in articles are redirected through the to short link service for click tracking. Falls back to direct link if not configured.

License

© Guany