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.ymlcontrols site-wide parameters and is where navbar and footer contents are specified_variables.ymlcontrols site-wide variables, such as the email used in our contact pageindex.qmdis the site’s home pageabout,contact,documents,events, andnewscontain those respective pages for the sitedocuments,events, andnewsare listing pages- The
index.qmdfile in each directory controls parameters for the post listings
- The
contacthas a listing section for displaying member profiles- The profiles are created in the
members.ymlfile in thecontactdirectory - Profile pictures are stored in the
avatarsdirectory
- The profiles are created in the
404.qmdis the 404 page for the sitestyles.cssandtheme.scssin theassetsdirectory are used for additional CSS and SASS styling for the site’s appearance, such as fonts and colours
Other files:
_templatescontains templates you can use for creating new posts for the sites various listing pages. - Please see theREADME.mdfile inside_templatesor the New Post Workflow document for more information_commonincludes files that are common to several pages across the site- Please see the
README.mdfile inside_commonfor more information
- Please see the
_sitecontains 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.