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
- modified the script to better handle the frontmatter
- generated new member-locations.js (with the above script)
- Modified the readme (add conventions, link to wiki)
Copy file name to clipboardExpand all lines: README.md
+12-10Lines changed: 12 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -2,20 +2,20 @@
2
2
Website for the SwissBIAS network: Swiss BioImage Analysts' network
3
3
See also the associated [wiki](https://github.com/SwissBIAS/SwissBIAS.github.io/wiki)
4
4
5
-
6
5
## How to contribute
7
6
We decided to keep some control over what’s published by merging Pull Requests. So ***please fork, modify, PR*** and then we’ll merge your changes. Please see this [guide to create a Pull Request](https://docs.github.com/en/github/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request). \
8
-
If you would prefer to generate a dummy website to make sure it looks exactly as you want before pushing it, you can create your locally served website. To do so, follow the instructions provided [here](https://github.com/imagej/imagej.github.io/blob/main/_pages/editing/advanced.md).
7
+
If you would prefer to generate a dummy website to make sure it looks exactly as you want before pushing it, you can create your locally served website. To do so, follow the instructions provided for the _imagej.github.io_ pages about [Jekyll and Git](https://github.com/imagej/imagej.github.io/blob/main/_pages/editing/advanced.md).
9
8
10
-
## Adding and editing member information
9
+
## Quickstart: Adding and editing member information
11
10
Each member have their own markdown file, stored in the `/_members` directory.
12
-
It consist of a YAML frontmatterand markdown text, like this, for the file `simon.noerrelykke.md`:
11
+
It consists of a YAML [frontmatter](https://jekyllrb.com/docs/front-matter/) (between the triple-dashed lines) and document body written in Github flavored [markdown](https://guides.github.com/features/mastering-markdown/). Bellow is an example, for the file `simon.noerrelykke.md`:
13
12
14
-
```
13
+
```markdown
15
14
---
16
15
first_name: Simon F.
17
16
last_name: Noerrelykke
18
17
short_name: simon
18
+
city: Zurich
19
19
affiliation: ETH Zurich
20
20
position: Image Analyst
21
21
tags: [matlab, fiji]
@@ -27,20 +27,22 @@ He heads [IDA](http://let-your-data-speak.com/) - the Image and Data Analysis gr
27
27
28
28
To create a new member file, copy an existing file, rename as `firstName.lastName.md`, change all text that needs changing, and save it in `/_members` (commit it).
29
29
30
-
Edits can be done directly in your browser in GitHub --- larger changes to structure must be done locally, then pushed to GitHub.
30
+
> Front Matter conventions:
31
+
> * The `city` attribute should only be used for Swiss cities and left empty otherwise. To add a new city not yet present on [the map](https://swissbias.github.io/members/), check out [detailed documentation](https://github.com/SwissBIAS/SwissBIAS.github.io/wiki/How-to-add-yourself-to-the-webpage#the-city-attribute)
32
+
> * The `affiliation` attribute can hold only one institution/company. Use its main name and put the detailed description in the document body.
33
+
34
+
**Small edits** can be done directly in your browser in GitHub.
35
+
**Larger changes** to structure must be done locally, then pushed to GitHub (see the [above section](#how-to-contribute).
31
36
32
37
That is it!
33
38
The new member will automatically be added to the list of all members and have their own page with the text they provided, e.g. `https://www.swissbias.ch/members/simon.noerrelykke`.
34
39
35
-
[Here is a guide to markdown on Github](https://guides.github.com/features/mastering-markdown/).
36
-
37
-
38
40
## Adding pages
39
41
To add a webpage, create it as markdown or html and place it in `_pages` (become and editor or create a pull request for this).
40
42
You can link to it from another page or add it to the navigation menu (be conservative -- navigation bars quickly become crowded).
41
43
42
44
## Navigation bars
43
-
There are several possible navigation bars, read the documention for whatever Jekyll theme we are using, e.g. [minimal-mistakes](https://github.com/mmistakes/minimal-mistakes).
45
+
There are several possible navigation bars, read the documentation for whatever Jekyll theme we are using, e.g. [minimal-mistakes](https://github.com/mmistakes/minimal-mistakes).
44
46
Pages are added to the top bar by editing the file `navigation.yml` in the `/_data` folder.
0 commit comments