forked from Hostea/website
34 lines
715 B
Markdown
34 lines
715 B
Markdown
|
# Add ratings to Hostea Doctor
|
||
|
|
||
|
1. To rate Doctor `batman` from
|
||
|
[./gitea-clinic-new-doctor.md](./gitea-clinic-new-doctor.md) guide,
|
||
|
add the following section to `batman` section:
|
||
|
|
||
|
```toml
|
||
|
[[ doctors.reviews ]]
|
||
|
name = "Joker Hahaha"
|
||
|
rating = 0
|
||
|
remarks = "Hahaha"
|
||
|
```
|
||
|
|
||
|
**Note: Only add reviews between doctor-specific section delimited by
|
||
|
comment format mentioned in style guide**
|
||
|
|
||
|
The end result must look like the following:
|
||
|
|
||
|
```toml
|
||
|
## ------------- batman ---------
|
||
|
[[ doctors ]]
|
||
|
nick = "batman"
|
||
|
name ="Bruce Wayne"
|
||
|
photo = "static/people/batman.jpg"
|
||
|
website = "https://bat.example.com"
|
||
|
|
||
|
[[ doctors.reviews ]]
|
||
|
name = "Joker Hahaha"
|
||
|
rating = 0
|
||
|
remarks = "Hahaha"
|
||
|
|
||
|
## ------------- start batman ---------
|
||
|
```
|