1
0
Fork 0

feat: Flat import of markdown repo

This is a flat (without history) import of (some of) the content
from our markdown module.

We've imported this without history because the repo contains our
blog posts and showcases posts content prior to porting them to strapi.

Since this contains many images, it would balloon the size of this repo
to import the full history.

Instead, please refer to the history of the (archived) markdown repo
at: https://github.com/freesewing/markdown
This commit is contained in:
Joost De Cock 2021-08-25 16:09:31 +02:00
parent 1671a896b5
commit b34a2ee2ed
6132 changed files with 244167 additions and 0 deletions

View file

@ -0,0 +1,17 @@
---
title: About frontmatter
order: 10
---
Frontmatter is a way to add metadata to markdown documents.
Frontmatter sits at the top of the file (it's matter that's at the front) and is
surrounded by lines with three dashes on them:
```md
---
title: This is frontmatter
---
```
<ReadMore list />

View file

@ -0,0 +1,11 @@
---
title: Working with frontmatter
for: editors
---
Frontmatter is a way to add metadata to markdown documents.
It is used extensively on freesewing.org and freesewing.dev alike.
Here's what you need to know:
<ReadMore list />

View file

@ -0,0 +1,16 @@
---
title: Lists or arrays
order: 30
---
Values are typically text or numbers, but you can also make it a list or array.
There's two types of syntax for this:
```md
tags: [tag1, another, three]
categories:
- cat1
- anothercat
- somethingelse
```

View file

@ -0,0 +1,16 @@
---
title: Mult-line text
order: 40
---
To add multi-line text in frontmatter, use a `|` character,
and prefix the lines by spaces:
```md
about: |
This is a multi-line text
that will be assigned to the about key
```

View file

@ -0,0 +1,12 @@
---
title: Structure
order: 20
---
Frontmatter is made up of `key: value` pairs.
The value must be quoted if you use a `:` in it to avoid problems parsing the key values:
```md
title: This does not need to be quoted
slogan: "Markdown: This is the way"
```