You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Content from the site comes from the files in the `content` folder. `.md` files support Markdown syntax as you might be able to guess but notice in order to use other elements than basic bolding and italicized further setup is needed.
13
-
14
-
### Adding a new projects
14
+
Content from the site comes from the files in the `src/content` folder. Write project descriptions etc. in the Markdown files (`.md`).
15
15
16
-
1. Make a new .md file to the `content/projects` folder.
16
+
### Projects
17
17
18
-
- Name of the file is meaningful (decides the URL)
18
+
To add a new project, follow these instructions.
19
19
20
+
1. Make a new .md file to the `src/content/projects` folder.
21
+
- Name of the file should be meaningful as it decides the URL
20
22
2. On the top of the .md file add metadata like so:
- First paragraph is what is shown as preview on the front page
38
+
4. Add an image of the project to `public/projects/` in .png format using the same name as the .md made in step 1.
39
+
5. Add the name of the project in [project.ts](./src/types/project.ts) and export its image in [PreviewImage.tsx](./src/components/Projects/ProjectCard/PreviewImage.tsx)
40
+
- This is done so that the image load immediately when the page is loaded
35
41
36
-
- First paragraph is what is shown as preview on the front page.
42
+
### Members
37
43
38
-
4. Add an image (square aspect ratio - recommended approximately 1000x1000) of the project to `public/projects/` in .png format using the same name as the .md made in step 1.
44
+
To add new members or edit exit dates etc., see [members.json](./src/content/members.json).
39
45
40
-
### intro.md
46
+
Please append new members at the end of the file as it is used to generate the member number!
41
47
42
-
Text on top below the logo and "Helsingin yliopiston tietojenkäsittelytieteen osaston sovelluskehitysakatemia".
48
+
Structure of `members.json`. See also the [Member](./src/types/member.ts) type.
0 commit comments