nushackers / nushackers-site

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

Better handling of sponsors in posts #546

Closed shenyih0ng closed 1 year ago

shenyih0ng commented 1 year ago

Description

This PR is mainly to remove the use of nofh, which is little confusing.

Instead of using nofh to conditionally render sponsorships for FH, we can use the proposed new sponsors field.

Example of how it can be used:

https://github.com/nushackers/nushackers-site/blob/0fa3e6b688a347ed0cf8920dc06b47e072315ede/content/post/2022-11-04-friday-hacks-232.md?plain=1#L5-L7

It works by loading sponsor_<sponsor-name>.html partials.