Skip to content

Commit

Permalink
doc: minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudLigny committed Jan 7, 2024
1 parent 2fceaa1 commit d43c78e
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions docs/2-Content.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
description: "Create content and organize it."
date: 2021-05-07
updated: 2023-12-20
updated: 2024-01-07
-->
# Content

Expand Down Expand Up @@ -81,10 +81,6 @@ By default each page is generated as `slugified-filename/index.html` to get a
To get an “ugly” URL (like `404.html` instead of `404/`), set `uglyurl: true` in page [front matter](#front-matter).
:::

:::tip
To get an “ugly” URL (like `404.html` instead of `404/`), set `uglyurl: true` in [front matter](#front-matter).
:::

### File based routing

Markdown files in the `pages` directory enable file based routing. Meaning that adding a `pages/my-projects/project-a.md` for instance will make it available at `/project-a` in your browser.
Expand Down Expand Up @@ -169,7 +165,7 @@ For instance, put the desired attribute(s) after a header, a fenced code block,
## Header {#id .class attribute=value}
```

:::important
:::warning
For an inline element, like a link, you must use a line break after the closing brace:

```markdown
Expand Down Expand Up @@ -211,7 +207,7 @@ _Example:_
[An example YouTube video](https://www.youtube.com/watch?v=Dj-rKHmLp5w){embed}
```

:::info
:::important
Only **YouTube** and **GitHub Gits** links are supported for the moment.
:::

Expand Down

0 comments on commit d43c78e

Please sign in to comment.