Detailed Change Log: Compact Teaching Overview

Detailed Change Log: Compact Teaching Overview

Date: 2026-11-16 Repository: YanWin/YanWin.github.io High-level entry: website-change-overview.md

Request

Make teaching visually consistent with the compact research overview. Group courses by level, ordered PhD, master’s, then bachelor’s, and make the teaching role clear. Keep the changes local without pushing.

Context Map

Files Modified

FilePurposeChange
_data/teaching.ymlTeaching categoriesDefine level and role ordering
_teaching/*.mdCourse metadataAdd explicit level and role keys and synchronize sort order
_includes/teaching-list.htmlShared teaching listingRender level headings, course titles, role/institution lines, and enabled course links
_pages/about.md, _pages/teaching.html, _pages/cv.mdTeaching surfacesUse the shared listing
_sass/layout/_publication_cards.scssShared listing stylesApply the research typography, spacing, separators, and action styles to teaching
_sass/layout/_home_sections.scssHomepage spacingApply the compact research heading spacing to teaching
_data/cv.jsonStructured CVMove the master’s course before bachelor’s courses
docs/website-change-overview.mdChange indexRecord the update and maintenance files

Risks

Every teaching entry needs a recognized level and role to appear in the grouped listing. Course permalinks and existing link visibility must remain intact. The CV must render the generated HTML as a listing rather than code.

Task Steps

  1. Map the existing course levels and roles to explicit metadata.
  2. Create one listing for the homepage, teaching page, and main CV.
  3. Reuse the research styles and synchronize the structured CV order.
  4. Build Jekyll, check desktop/mobile layouts and the course link, and document the result.

Implementation Plan

Use level headings in the requested order. Within each level, show Lecturer, Lecturer and Tutor, then Tutor. Show each role in bold beside the institution. Remove repeated descriptions from the overview while retaining the original course content. Keep Course details below the metadata, using the same action styling as research.

Progress Updates

  • Added level and role metadata for all five teaching entries.
  • Replaced the old archive rows with the shared compact listing on all three pages.
  • Built with the existing Docker image and checked the rendered output.
  • Switched the temporary preview from a basic static server to Jekyll to verify the existing extensionless course URL with its normal routing.

Final Implementation Results

  • PhD level appears first, master’s level second, and bachelor’s level last.
  • Lecturer roles precede tutoring within each level.
  • All five entries remain visible with their institutions and roles; the toolkit course retains its Course details link.
  • The teaching overview uses the same title sizes, category headings, separators, and link placement as research.
  • Course descriptions, institutions, titles, and permalinks remain unchanged. No JavaScript changes were needed.

Verification Notes

  • The full Jekyll build passed using jekyll-site:latest, with networking disabled, and output in local/research-preview.
  • All five entries fit together in the desktop overview at 1280 by 720 pixels and in the checked mobile view at 390 by 844 pixels.
  • The mobile document has no horizontal overflow. Course details appears below its metadata.
  • The teaching archive and main CV each render three level headings and five entries in the requested order.
  • Research and teaching entry titles both use 18-pixel text at the checked desktop size. The homepage has no duplicate element IDs.
  • The existing extensionless toolkit URL returned HTTP 200 from the local Jekyll server.
  • Structured CV JSON parsing and git diff --check passed.
  • Screenshots are saved in local/teaching-overview-desktop.jpg and local/teaching-overview-mobile.jpg.
  • The temporary preview server was stopped and the browser viewport override was reset after verification.

Closure

Changes remain uncommitted and unpushed. The previous research changes remain intact. The pre-existing .serena/project.yml modification is outside this change set. Preview files and screenshots remain in the ignored local/ directory.