Detailed Change Log: Homepage Section Separation
Detailed Change Log: Homepage Section Separation
Date: 2026-11-18 Repository: YanWin/YanWin.github.io High-level entry: website-change-overview.md
Request
Separate the introduction, research, and teaching sections more clearly in the branch experiment. Retain the confirmed scrolling homepage, separate CV, continuous background, and existing colors.
Context Map
| File | Purpose | Change |
|---|---|---|
_pages/about.md | Homepage sections | Visible Research and Teaching headings with matching wrappers |
_sass/layout/_section_layout.scss | Experimental layout | Stronger major dividers, larger section headings, more space between main sections, smaller category labels |
_includes/teaching-list.html | Shared teaching list | Optional left-side level headings on the homepage |
assets/js/_main.js, assets/js/main.min.js | Navigation behavior | Keep Teaching active when the page reaches its bottom |
_includes/scripts.html | Script loading | Version the bundle URL by build time so refreshed previews load the updated script |
docs/visual-style.md | Editing guide | Explain the main-section and category hierarchy |
Risks
The new heading hierarchy must remain clear on phones. Teaching-level wrappers must preserve the standalone teaching page. A short last section may not reach the usual navigation activation threshold before scrolling reaches the page bottom.
Implementation Plan and Progress
- Add matching visible Research and Teaching headings, with stronger full-width dividers and additional space between the three main sections.
- Retain sticky category labels beside papers; use the same layout for teaching levels. Make category labels smaller and use the existing terracotta accent.
- Preserve the standalone teaching layout through an optional include parameter.
- Build and inspect desktop and phone layouts.
- Correct the observed bottom-of-page navigation issue and rebuild the JavaScript bundle.
- Add a build version to the bundle URL after confirming that the browser retained the previous script despite page reloads.
Final Implementation Results
- Research and Teaching have prominent dark-green headings and two-pixel dividers. The introduction retains its name heading.
- Additional spacing separates the main sections. Thin rules and smaller terracotta labels identify groups within them.
- Teaching levels now appear beside their courses on desktop, matching the research categories. On phones, labels appear above their content.
- The continuous warm background, original content, header destinations, and separate CV remain intact.
- At the bottom of the homepage, the navigation marks the last section active even when it cannot reach the usual activation offset.
Verification Notes
- The Jekyll build for the layout passed.
- Desktop and 390-pixel phone inspection showed all four papers and five courses, without horizontal overflow or duplicate IDs.
npm run build:jsand the final Jekyll build passed. The generated preview contains the rebuilt bundle.- After refreshing the versioned script, the navigation correctly highlighted Teaching at the page bottom and Research when returning to its section. An Abstract control still opened and closed correctly.
- The separate teaching page retained all five courses and its original layout.
- Saved screenshots in ignored
local/design-sections-research.jpg,local/design-sections-teaching.jpg, andlocal/design-sections-mobile.jpg. git diff --checkpassed. The browser viewport override was reset, and the refreshed preview remains open for review.
Closure
Changes stay on codex/wider-section-layout. Nothing is pushed or deployed. The existing loopback-only preview is retained for the user’s ongoing review. The pre-existing .serena/project.yml modification is unrelated.