12 Jun 2024

How To Manage Images And PDFs

Where to place images and PDFs and how to link them safely with relative_url.

assets images pdf

Images and PDFs should stay inside assets so GitHub Pages can publish them.

assets/images/bsc/sem-v/topic-name/
assets/images/msc/sem-ii/topic-name/
assets/images/documentation/tech/
assets/images/documentation/code/
assets/pdfs/documentation/tech/

Use lowercase folder names when possible, and keep related files together.

Image Syntax

![Diagram caption](/assets/images/bsc/sem-v/tunneling/example.png)
[Download PDF](/assets/pdfs/documentation/tech/file.pdf)

Using relative_url keeps links working with the current baseurl.

Small Rules

Share This Page