Skip to content

tlyboy/home

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

home

▲ Guany's home

Category Stack
Framework Next.js 16 (App Router)
UI shadcn/ui + Tailwind CSS 4
Content Streamdown
I18n next-intl
Config Co config center
Deploy Vercel / Netlify / Docker

Install

pnpm install
cp .env.example .env.local

Environment Variables

Variable Required Description
GITHUB_TOKEN Yes GitHub personal access token
CO_API No Co config center API for Hero background config
TO_API_URL No to short link service API base URL
TO_API_KEY No to API key for external link tracking

Usage

Development

pnpm dev

Build

pnpm build

Hero Background Config

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

{
  "hero": {
    "mode": "bing"
  }
}
{
  "hero": {
    "mode": "custom",
    "custom": {
      "url": "https://example.com/image.jpg",
      "position": "center"
    }
  }
}
Field Description
hero.mode "bing" or "custom"
hero.custom.url Absolute image URL
hero.custom.position CSS background-position value, default "center"

External Link Tracking

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

MIT © Guany

About

▲ Guany's home

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages