Haiyi Public Site
This directory contains the public website for www.haiyihy.com and the H5 landing pages for h5.haiyihy.com.
Structure
content/site.json: Official website and company-level content.content/legal.json: Privacy policy and terms content.content/landing-pages/*.json: One JSON file per H5 landing page.src/site.css: Shared styling for all generated pages.scripts/build.mjs: Static site generator.scripts/new-landing-page.mjs: Scaffolds a new landing page JSON file.
Local workflow
cd public-site
node ./scripts/build.mjs
The generated output is written to public-site/dist:
dist/www: content forwww.haiyihy.comdist/h5: content forh5.haiyihy.com
Landing page management
Current management is file-driven:
- Duplicate an existing JSON file under
content/landing-pages/, or run:
cd public-site
node ./scripts/new-landing-page.mjs your-page-slug
- Edit the JSON content only. No Vue or HTML editing is required.
- Rebuild the site:
cd public-site
node ./scripts/build.mjs
- Run the public-site deployment script:
./deploy/tencent-prod/.venv/bin/python ./deploy/tencent-prod/deploy_public_site.py
If you later want a browser-based online editor with persistence, this structure is already suitable for adding a small API or CMS layer.
Description
Languages
JavaScript
46.4%
CSS
37.5%
HTML
15.7%
Vue
0.4%