-
Notifications
You must be signed in to change notification settings - Fork 0
/
quarto-academic-site-examples.qmd
134 lines (85 loc) · 7.96 KB
/
quarto-academic-site-examples.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
---
title: "Quarto Academic Site Examples and Tips"
description-meta: "Quarto academic site examples; Quarto website examples; Quarto website templates; Quarto academic websites; site, class, poster, slides templates; tips of building an academic website."
author: "Gang He"
date: "2024-10-15"
categories: [tool]
title-block-banner: false
page-layout: full
---
<!--This is my personal clarity, please delete or replace with your own clarity-->
{{< include /files/includes/_msclarity.qmd >}}
## Example Quarto academic websites I reference regularly
| Web | GitHub |
| ------------------------------------------ | ------------------------------------------------------- |
| <https://quarto.org/> | <https://github.com/quarto-dev/quarto-web> |
| <https://www.andrewheiss.com/> | <https://github.com/andrewheiss/ath-quarto> |
| <https://www.jhelvy.com/> | <https://github.com/jhelvy/jhelvy_quarto> |
| <https://faculty.washington.edu/masiello/> | <https://github.com/MasielloGroup/MasielloGroupWebsite> |
| <https://affcom.ku.edu/> | <https://github.com/jmgirard/affcomlab> |
| <https://silviacanelon.com/> | <https://github.com/spcanelon/silvia> |
<br>
## Templates I adapt you may find useful
| Type | Web | GitHub |
| --------- | -------------------------------------------------------------------------------- | ---------------------------------------------------------- |
| Personal | <https://drganghe.github.io/> | <https://github.com/drganghe/drganghe.github.io> |
| Lab/Group | <https://deeppolicylab.github.io/> | <https://github.com/deeppolicylab/deeppolicylab.github.io> |
| Class | <https://drganghe.github.io/energy-climate-policy/> | <https://github.com/drganghe/energy-climate-policy> |
| Events | <https://drganghe.github.io/climate-guest-speakers/> | <https://github.com/drganghe/climate-guest-speakers> |
| Slides | <https://drganghe.github.io/files/slides/solar-supply-chains-slides.html> | <https://quarto.org/docs/presentations/revealjs/> |
| Poster | <https://drganghe.github.io/files/posters/nature-solar-supply-chains-poster.png> | <https://github.com/brentthorne/posterdown> |
<br>
## Useful tips for building an academic Quarto site
### Using "Includes" for reusable content
To streamline updates across your site, use Quarto's [includes](https://quarto.org/docs/authoring/includes.html) feature for reusable elements like syllabus statements, social sharing options, academic badges, and other reuseable materials. By doing this, you only need to update a single source file, and then rerender the site to reflect changes across all pages.
``` markdown
{{include _statement.qmd}}
```
Prefixing include file names with an underscore ("_") ensures they won't be rendered directly by Quarto.
Here is an example course [description](https://github.com/drganghe/energy-climate-policy/blob/main/files/includes/_coursedescription.qmd), and reuse it in [mainpage](https://github.com/drganghe/energy-climate-policy/blob/main/index.qmd) and [syllabus](https://github.com/drganghe/energy-climate-policy/blob/main/syllabus.qmd).
### Academic badges
Display academic badges like the [Dimension Citation badge](https://badges.dimensions.ai/) and [Altmetric badge](https://badge-docs.altmetric.com/getting-started.html).
```{=html}
<script type='text/javascript' src='https://d1bxh8uas1mnw7.cloudfront.net/assets/embed.js'></script><script async src="https://badge.dimensions.ai/badge.js" charset="utf-8"></script><span class="__dimensions_badge_embed__" data-doi="10.1038/s41586-022-05316-6" data-style="large_rectangle"></span><div data-badge-popover="right" data-badge-type="1" data-doi="10.1038/s41586-022-05316-6" data-hide-no-mentions="true" class="altmetric-embed"></div>
```
Here's an example for embedding them:
``` markdown{.code-overflow-wrap}
<span class="__dimensions_badge_embed__" data-doi="10.1038/s41586-022-05316-6" data-style="large_rectangle"></span> <div data-badge-popover="right" data-badge-type="1" data-doi="10.1038/s41586-022-05316-6" data-hide-no-mentions="true" class="altmetric-embed"></div>
```
Replace the doi with your own.
Make sure to include below scripts in the same page to enable the badges:
```markdown
<script type='text/javascript' src='https://d1bxh8uas1mnw7.cloudfront.net/assets/embed.js'></script>
<script async src="https://badge.dimensions.ai/badge.js" charset="utf-8"></script>
```
You can also showcase your highly cited and hot papers using custom badges.
![](https://drganghe.github.io/files/images/highly-cited-paper-badge.png "ESI Highly Cited Paper"){width=20 fig-alt="Highly cited paper"} ![](https://drganghe.github.io/files/images/hot-paper-badge.png "ESI Hot Paper"){width=20 fig-alt="Hot paper"}
```markdown
![](https://drganghe.github.io/files/images/highly-cited-paper-badge.png "ESI Highly Cited Paper"){width=20 fig-alt="Highly cited paper"} ![](https://drganghe.github.io/files/images/hot-paper-badge.png "ESI Hot Paper"){width=20 fig-alt="Hot paper"}
```
Here is an [example](https://drganghe.github.io/publications.html), and the [source code](https://github.com/drganghe/drganghe.github.io/blob/main/publications.qmd).
### Social sharing
For easy setup of social sharing buttons, [AddToAny](https://www.addtoany.com/buttons/for/website) is a simple solution.
Using includes files here will make it easier to manage updates, as any changes to social buttons need only be made once.
Here is an [example](https://github.com/drganghe/drganghe.github.io/blob/main/files/includes/_socialshare.qmd).
### The art of listing
[Listings](https://quarto.org/docs/websites/website-listings.html) are a powerful tool in Quarto, offering flexibility for creating visually appealing and organized pages. By adjusting listing options, you can control how content is presented.
Type: `default`, `grid`, `table`
Options: `grid-columns`, `image-height`, `grid-item-align`
Display: `fields` and `field-display-names`
By mastering these options, you can easily create pages that fit your content needs while maintaining a clean, user-friendly design.
Here is an [example](https://deeppolicylab.github.io/research.html), and [source code](https://github.com/deeppolicylab/deeppolicylab.github.io/blob/main/research.qmd); another [example](https://deeppolicylab.github.io/events/2024-09-26-nyc-climate-week-clean-energy-global-supply-chains-panel/index.html), and [source code](https://github.com/deeppolicylab/deeppolicylab.github.io/blob/main/events/2024-09-26-nyc-climate-week-clean-energy-global-supply-chains-panel/index.qmd).
### Listing external items
If you need to list external resources with key metadata, you can use this format to create clear, linked listings.
```markdown
- path: https://www.nature.com/articles/s41586-022-05316-6
image: /files/images/journal/nature.avif
title: "Quantifying the cost savings of global solar photovoltaic supply chains"
subtitle: "*Nature*"
description: "Globalized supply chain has saved solar installers in the U.S., Germany, and China $67B 2008-2020, and solar prices will be 20-30% higher in 2030 if countries move to produce domestically."
date: "2022-10-26"
```
If you have many items to list, it's efficient to store them in a YAML(.yml) file. You can then reference this YAML file in Quarto.
Here is an [example](https://deeppolicylab.github.io/publications.html), and [source code](https://github.com/deeppolicylab/deeppolicylab.github.io/blob/main/publications.qmd).
<!--Include social share buttons-->
{{< include /files/includes/_socialshare.qmd >}}