Live at jww19.de
Follow the usual GitHub "fork and pull request" workflow to suggest changes to the website.
All of the content of our dorm's website is inside of src/content/pages. Currently the entire website consists of only two pages: index and info.
To edit the content for either of those pages, you can simply go ahead and edit the Markdown file for the topic or section in question. Each Markdown file, representing a topic or section, is split into an English and a German part, which are used to render the website in the respective language:
<!-- English -->
# An Example Title
Topic/Section body goes here.
<!-- Deutsch -->
# Ein Beispieltitel
Hier steht der dazugehörige Text.The comments are a necessary separator of the English and German section used to split the file in twain before rendering them.
NOTE: Images will be broken in the GitHub website preview of a Markdown file, since they use a URL relative to the built file, not the content file.
Make sure Node.js is installed.
-
npm install
-
npm run build
-
npm run dev
The website is built as minimal and as unfancy as possible using the build script in build. Plain HTML would be the first choice, if it were not for the convenience of having multiple languages side by side in the same Markdown file using a custom build script. Every bit of added fanciness is more of a headache for the next person that needs to maintain this website.