There is this header at the top of every page to display the title and define the navigation on the Navigation panel on the left side of the page.
title = "Write content"
chapter = false
: Leave the default as false. The title above will also display as h1 in the article.weiht
: Used to sort the index of the titlepre = "<b>2. </b>"
: This is the numbering for the page displayed in Navigation panel on the left.---
title : "Writing Content"
date : "`r Sys.Date()`"
weight : 2
chapter : false
pre : " <b> 2. </b> "
---
After writing the content (or finishing listing the Headings of a page), we can build Table of Contents (TOC) automatically by plug-in.
Use the key combination Ctrl + Shift + P
then type in Create Table of Contents and select the plug-in option Markdown All in One. Enter.
We will have a TOC like this:
Content:
- [**Cách viết một Lab Guide**](#cách-viết-một-lab-guide)
- [**I. Phần 1: Chuẩn bị**](#i-phần-1-chuẩn-bị)
- [II. **Phần 2: Nội dung**](#ii-phần-2-nội-dung)
- [1. Cấu trúc file](#1-cấu-trúc-file)
- [**Thư mục *content***](#thư-mục-content)
- [**Thư mục *static/images***](#thư-mục-staticimages)
- [**Thư mục *public***](#thư-mục-public)
- [2. Nội dung](#2-nội-dung)
- [**Phần tiêu đề**](#phần-tiêu-đề)
- [**Phần heading**](#phần-heading)
- [**Phần Table of Contents (TOC)**](#phần-table-of-contents-toc)
- [**Phần ghi chú**](#phần-ghi-chú)
- [**Phần tập tin đính kèm**](#phần-tập-tin-đính-kèm)
- [**Phần vẽ bảng**](#phần-vẽ-bảng)
- [**Phần hình ảnh**](#phần-hình-ảnh)
- [**Update config.toml**](#update-configtoml)
{< figure src="../images/fcj.png" title="First Cloud Journey" width=150pc >}
In the article, there may be paragraphs that need to be highlighted such as Notes, Warnings,… then the shortcode will be used according to the instructions at [here](https://learn.netlify.app/en/ shortcodes/notice/)
Note Note. See more at Note
This is Note
This is Info
This is Tip
This is Warning
This section will follow the instructions at here
The file location will be in the directory corresponding to the md. page name as follows:
That is, if there are many languages, each language has 1 such directory for 1 page.
title : Title of attachment
pattern : Identify the files displayed in the box (you can leave the filename or pattern to identify the tail)
Example filter file Dockerfile:
{{%<attachments title="Dockerfile" pattern="Dockerfile"/%}}
{{%attachments title="Build Scripts" pattern=".*(ps1|sh)"/%}}
To simplify drawing tables, writers often use the tool Tables Generator
Recommended screen capture software: SnagIt (2019/2020)
Image design:
To create uniformity and easy understanding for viewers, we define a common standard as follows:
[Languages.en]
title = "How to Write a Lab Guide"
weight = 1
languageName = "English"
[Languages.vi]
title = "Cách viết một Lab Guide"
weight = 2
languageName = "Tiếng Việt"