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:
parent
1671a896b5
commit
b34a2ee2ed
6132 changed files with 244167 additions and 0 deletions
17
markdown/dev/editors/howtos/frontmatter/about/en.md
Normal file
17
markdown/dev/editors/howtos/frontmatter/about/en.md
Normal 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 />
|
11
markdown/dev/editors/howtos/frontmatter/en.md
Normal file
11
markdown/dev/editors/howtos/frontmatter/en.md
Normal 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 />
|
16
markdown/dev/editors/howtos/frontmatter/lists/en.md
Normal file
16
markdown/dev/editors/howtos/frontmatter/lists/en.md
Normal 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
|
||||
```
|
||||
|
16
markdown/dev/editors/howtos/frontmatter/multi-line/en.md
Normal file
16
markdown/dev/editors/howtos/frontmatter/multi-line/en.md
Normal 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
|
||||
```
|
||||
|
||||
|
||||
|
12
markdown/dev/editors/howtos/frontmatter/structure/en.md
Normal file
12
markdown/dev/editors/howtos/frontmatter/structure/en.md
Normal 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"
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue