Website Basics
How the website works
The OSSSG website is built using Quarto, and the source files for the website are managed on GitHub. The GitHub repository for the website is located at https://github.com/Open-Science-Student-Support-Group/osssg-website.
If you navigate to the GitHub repository you can view the source files for the website. The source files for the website fall into two broad categories:
- Input files
- Output files
Input files provide the scaffolding for the website, containing things such as settings for pages, written content, image files, and so forth. Output files contain the content that we publish to the web. This content is rendered by Quarto from the website’s input input files, then written to the _site
directory. The _site
directory contains the output files for the website (indeed, it is the website!); everything else can be thought of as an input file.
We publish the content in the _site
directory to the web using Netlify, which is integrated with the website’s GitHub repository. Whenever a new commit is made on the main
branch of the GitHub repository, Netlify will publish the content in the _site
directory to the web.
Site file structure
The main content for the site is stored in the following files and directories:
_quarto.yml
controls site-wide parameters and is where navbar and footer contents are specified_variables.yml
controls site-wide variables, such as the email used in our contact pageindex.qmd
is the site’s home pageabout
,contact
,documents
,events
, andnews
contain those respective pages for the sitedocuments
,events
, andnews
are listing pages- The
index.qmd
file in each directory controls parameters for the post listings
- The
contact
has a listing section for displaying member profiles- The profiles are created in the
members.yml
file in thecontact
directory - Profile pictures are stored in the
avatars
directory
- The profiles are created in the
404.qmd
is the 404 page for the sitestyles.css
andtheme.scss
in theassets
directory are used for additional CSS and SASS styling for the site’s appearance, such as fonts and colours
Other files:
_templates
contains templates you can use for creating new posts for the sites various listing pages. - Please see theREADME.md
file inside_templates
or the New Post Workflow document for more information_common
includes files that are common to several pages across the site- Please see the
README.md
file inside_common
for more information
- Please see the
_site
contains the files for the rendered site- Do not modify anything in this directory directly, it’s pointless
- Whenever you render the site it will be overwritten.
- Do not modify anything in this directory directly, it’s pointless
Creating and editing content
See the New Post Workflow document.
Learning more about Quarto
Please see the getting started page for installation information, and the Quarto guide and reference for information on how the site was built and how you can modify it.