CSC Learning Template

This is the official template for creating clean, branded self-learning course sites. By using this template, you ensure that your training materials match the CSC visual identity automatically.

For a quick overview of the Markdown syntax elements refer to Markdown Cheat Sheet.


📄 Add more pages

  1. Create a new page: index.md is the ‘landing page’ of the website, do not rename it. You can easily add more pages by making new .md files in the root or in a subfolder. To remove chapter1 page, simply delete chapter1.md.
  2. Add front matter: Every page needs these lines at the top:
---
layout: home
title: Home page
nav_order: 1
---

Where:

  • layout should be ‘home’ for index.md and ‘default’ for other pages;
  • title is the name of the page;
  • nav_order defines the order in which the extra pages are listed on the left side.

🎨 Branded Boxes

You can use special “Callout Boxes” to highlight information for your students as follows:

CSC Green (Note)

Use this for additional context or general helpful information.

CSC Red (Warning)

Use this for critical warnings, security notices, or common errors to avoid.


💻 Technical Content

  • Links: Links will turn teal when you hover over them.
  • Inline Commands: Use backticks to show code like srun --pty bash.
  • Code blocks Use triple backticks to show multiline blocks of code. When user hovers over it, the copy button appears. You must have an empty line before and after the block as such:
import math

result = math.sqrt(25)
print(f"The calculation result is: {result}")

Embedding a picture

To add an image, place it in assets/images/ and use this syntax:

Description of the image

To add an image with a caption underneath and/or resize the image use this simple HTML:

Figure 1: Spring School on Computational Chemistry 2024.

Embedding a YouTube video

To add a video, simply copy the Embed code from YouTube (Share > Embed) and paste it into the .md file.


🧪 Mathematical Formulas

You can write beautiful LaTeX formulas easily using MathJax:

  • Inline math: \(\nabla \times \mathbf{E} = -\frac{\partial \mathbf{B}}{\partial t}\)
  • Block math:
\[\nabla \times \mathbf{E} = -\frac{\partial \mathbf{B}}{\partial t}\]

🛠️ Need Help?

If you have questions or suggestions on how to improve the template or instructions, please reach out to me on RocketChat: Artúr Vojt-Antal