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
Copy file name to clipboardExpand all lines: readme.md
+26-12Lines changed: 26 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,10 +9,24 @@ To see the website locally, run
9
9
```
10
10
hugo server
11
11
```
12
-
and navigate to the url, usually `http://localhost:1313/`.
12
+
and navigate to the url, usually `http://localhost:1313/`.
13
13
14
-
After the changes have been made, commit them onto a new branch, and create a PR to merge the content into `main`.
15
-
The github workflows will automatically deploy the new version of the website.
14
+
After the changes have been made, commit them onto a new branch, and create a PR to merge the content into `main`.
15
+
The github workflows will automatically deploy the new version of the website.
16
+
17
+
## Docker
18
+
19
+
You can also use the dockerfiles here to do this. Simply run
20
+
```
21
+
docker compose build
22
+
```
23
+
to build the image, and then to run the container
24
+
```
25
+
docker compose up -d
26
+
docker exec -it dasc-labgithubio-hugo-1 hugo server
27
+
```
28
+
29
+
This should print the location where the web server is available, and you can open it in a browser. Updates made to the local repo should automatically get rendered.
16
30
17
31
## Adding Content
18
32
@@ -23,31 +37,31 @@ To add a new person, starting from the root directory, run
23
37
```
24
38
hugo new content people/id.md
25
39
```
26
-
where `id` must be replaced by the id you want to create.
40
+
where `id` must be replaced by the id you want to create.
27
41
28
42
Navigate to `/content/people/id.md` and edit the front matter.
29
-
After the front matter, you can add more details. These will be rendered on `dasc-lab.github.io/people/id` page.
43
+
After the front matter, you can add more details. These will be rendered on `dasc-lab.github.io/people/id` page.
30
44
31
45
### Adding a paper
32
46
33
-
Similarly, to add a paper, run
47
+
Similarly, to add a paper, run
34
48
```
35
49
hugo new content papers/id.md
36
50
```
37
-
and then edit `/contents/papers/id.md`. Again, you can add more info after the front matter, to have it render on the individual page.
51
+
and then edit `/contents/papers/id.md`. Again, you can add more info after the front matter, to have it render on the individual page.
38
52
39
-
If you link the author id correctly, each author's page will be automatically updated to include all the papers too.
53
+
If you link the author id correctly, each author's page will be automatically updated to include all the papers too.
40
54
41
55
## Styles and Layout
42
56
43
-
This website uses boostrap https://getbootstrap.com/ v5.3.3 to create styles.
57
+
This website uses boostrap https://getbootstrap.com/ v5.3.3 to create styles.
44
58
45
-
To customize additional css, edit `/layouts/partials/style.html`.
46
-
To customize how the `person` and `papers` render, edit `/layouts/partials/person-card` or `/layouts/partials/paper-card`.
59
+
To customize additional css, edit `/layouts/partials/style.html`.
60
+
To customize how the `person` and `papers` render, edit `/layouts/partials/person-card` or `/layouts/partials/paper-card`.
0 commit comments