feat: render CMS content fields and footer settings
This commit is contained in:
@@ -42,6 +42,26 @@ Frontend tests: `node --test tests/seo.test.cjs`.
|
||||
Backend tests (from the backend root):
|
||||
`python -m pytest apps/core/tests.py -k "page_api_exposes_seo_fields or seo_image_serializer or notify_frontend_revalidate"`.
|
||||
|
||||
## CMS Display Fields
|
||||
|
||||
Products, solutions, cases and blog columns display the CMS title and introduction.
|
||||
Lists and detail pages display optional cover images, summaries, industry/client
|
||||
details, publication dates (Asia/Shanghai) and blog tags where applicable. Missing
|
||||
images and optional fields are omitted. Detail previews request the same fields.
|
||||
|
||||
The footer reads the `footer` navigation menu and site settings for contact details,
|
||||
WeChat account/QR code and Weibo link. An unconfigured menu falls back to the privacy
|
||||
policy link; the existing ICP fallback is retained. Feature-grid icons follow the
|
||||
same text-symbol convention as tech-stack icons.
|
||||
|
||||
Deploy the backend field declarations before rebuilding the frontend. These changes
|
||||
use existing database fields and require no new migrations. Page publication uses
|
||||
the shared cache tag; menu/site-setting changes retain the 60-second cache fallback.
|
||||
|
||||
Display/API regression tests (from the backend root):
|
||||
`python -m pytest apps/blog/tests.py apps/products/tests.py apps/solutions/tests.py apps/cases/tests.py`.
|
||||
Frontend display regressions run alongside SEO tests: `node --test tests/seo.test.cjs`.
|
||||
|
||||
## Learn More
|
||||
|
||||
To learn more about Next.js, take a look at the following resources:
|
||||
|
||||
Reference in New Issue
Block a user