Skip to content

Show the degree on the homepage, and stop printing one month twice - #50

Merged
leinss merged 1 commit into
releasefrom
feature/site-fixes
Aug 26, 2026
Merged

Show the degree on the homepage, and stop printing one month twice#50
leinss merged 1 commit into
releasefrom
feature/site-fixes

Conversation

@leinss

@leinss leinss commented Aug 26, 2026

Copy link
Copy Markdown
Owner

Four small correctness fixes on the homepage and the education page.

What changed

  • The homepage education section showed no degree. It sorts newest first and slices to three, and the B.Eng. is the oldest entry by six years, so the list was three certificates. Education entries take an optional degree flag and flagged entries are pinned ahead of the rest.
  • dateRange() printed "May 2022 - May 2022" for an entry that starts and ends in the same month. It now prints the month once.
  • The Encode.club education entry ran Aug 2017 to Jul 2022. That is five years, and it contradicts the tenure given for the same organisation on the CV. Corrected to Jun 2022 to Dec 2022.
  • Removed the second "See all projects" link. It sat on the apps section, which already renders every entry in APPS, and the identical link appears again further down the page.
  • Removed a commented-out list left in src/pages/education/index.astro.

Test plan

  • make lint
  • make build: 82 pages, 1758 internal links, none broken
  • Built HTML contains no month range that repeats itself
  • Built dist/index.html carries the degree in the education section

The homepage education list is sorted newest first and sliced to three, and
the degree is the oldest entry by six years, so the section rendered three
certificates and no degree. Entries can now be flagged as a degree and are
pinned ahead of the rest.

dateRange() printed a start and end inside the same month as
"May 2022 - May 2022", which reads as a broken template. It prints the month
once instead.

The Encode.club entry ran Aug 2017 to Jul 2022, five years before the
programme is recorded anywhere else. It now matches the tenure already given
for the same organisation on the CV, Jun 2022 to Dec 2022.

Also drops the second "See all projects" link, which sat on a section that
already renders every app, and a commented-out list left in the education
page.

Test plan:
- [x] make lint
- [x] make build, 82 pages, 1758 internal links, none broken
- [x] built HTML: no month range repeats itself
- [x] built HTML: the homepage education section carries the degree
@leinss
leinss merged commit ed3564b into release Aug 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant