Dr. Honglang Wang
  • News
  • Statistics Seminar
  • Lang’s Journal Club
  • Research
    • List of Publication
    • Grants
  • Teaching
  • Lang’s Lab
  • Contact
  • CV

On this page

  • Example Quarto academic websites I reference regularly
  • Templates I adapt you may find useful
  • Useful tips for building an academic Quarto site
    • Using “Includes” for reusable content
    • Academic badges
    • Social sharing
    • The art of listing
    • Listing external items

Quarto Academic Site Examples and Tips

tool
Author

Gang He

Published

October 15, 2024

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


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


Useful tips for building an academic Quarto site

Using “Includes” for reusable content

To streamline updates across your site, use Quarto’s includes 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.

{{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, and reuse it in mainpage and syllabus.

Academic badges

Display academic badges like the Dimension Citation badge and Altmetric badge.

Here’s an example for embedding them:

<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:

<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.

Highly cited paper Hot paper

![](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, and the source code.

Social sharing

For easy setup of social sharing buttons, AddToAny 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.

The art of listing

Listings 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, and source code; another example, and source code.

Listing external items

If you need to list external resources with key metadata, you can use this format to create clear, linked listings.

    - 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, and source code.

Honglang Wang ©