News Section Documentation

In order to add a news post to the website, you need to do the following: 1. Add a new .md file with a name reflecting the contents of the post. Please see template below for the contents of the file. 2. In case of image posts, please crop and resize the image of the post to 720px wide, save as jpg with good quality. 3. Upload the image to ./static/img/news/image_filename.jpg on this repo, where image_filename is short name reflecting the contents of the image. 4. Please make sure that you change image_filename.jpg in the template below to the name chosen for the image in step 3 above.

MD template for this section

Image post template

+++
date = "YYYY-MM-DDT09:00:00+00:00"
title = "TTTTTTTTTTTTT"
image = "/img/news/image_filename.jpg"
image_subtitle = "SSSSSSSSSSSSS"
+++

The text of your image news post

Image+subtitle post template

+++
date = "YYYY-MM-DDT09:00:00+00:00"
title = "TTTTTTTTTTTTT"
image = "/img/news/image_filename.jpg"
+++

The text of your image news post

Vimeo post template

+++
date = "YYYY-MM-DDT09:00:00+00:00"
title = "TTTTTTTTTTTTT"
vimeo = "NNNNNNNNNN"
+++

The text of your image news post

YouTube post template

+++
date = "YYYY-MM-DDT09:00:00+00:00"
title = "TTTTTTTTTTTTT"
youtube = "NNNNNNNNNN"
+++

The text of your image news post

Explanation of template

These are the fields which need to be changed in the frontmatter section of the .md file above: 1. YYYY: The year in a 4-digit format, for example 2021. 2. MM: The month in a 2-digit format, for example 06 for June. 3. TTTT: The title of the post, in any length desired 4. image_filename: change this to the name of the image file uploaded to ./static/img/news/ on the repo. 5. NNNNN: The Vimeo or the YouTube video identifier, can be found in the URL of the video.

Example for template

Please check other .md files in this repo folder for examples.

Jan 1, 0001
FIRST PREV