nushackers / nushackers-site

NUS Hackers website
https://www.nushackers.org
MIT License
43 stars 45 forks source link

Refactor "featured articles" section to use the same markdown file #581

Closed riccqi closed 11 months ago

riccqi commented 1 year ago

Currently we have to duplicate the markdown file into the featured folder if we want it to appear in the featured section. This is not a big deal, but files can get out of sync. It would be good to figure out a way to avoid this duplication.

An ideal solution would involve specifying the featured content type in the front matter of the relevant post.

See related PR: https://github.com/nushackers/nushackers-site/pull/576

parth-io commented 1 year ago

If we're utterly lazy, we can use Unix symlinks :stuck_out_tongue_closed_eyes: : ln -s 2023-08-12-rebrand.md ../featured/featured_1.md.

Tested it, it works fine with Hugo - but our Windows brethren will be left in the cold.