Skip to content

Commit

Permalink
misc: demo site content fix (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
rochacbruno authored Oct 21, 2024
1 parent 2eeafca commit 2217050
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ as a `{slug}.html` and make it accessible only via the link directly.
By default marmite includes 3 items in the main menu:

- Pages -> pages.html
- List of posts in chronological order.
- List of pages in alphabetical order.
- Tags -> tags.html
- List of tags and a link to each tag group page.
- Archive -> archive.html
Expand Down
59 changes: 59 additions & 0 deletions example/content/markdown-format.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,65 @@ Same but containing a tooltip if you hover the mouse on
![Photo](./media/marmite.jpg "A jar of Marmite")
```

### Embed

Just use raw HTML for now, in future we may have a shorcode.

<iframe width="360" height="215" src="https://www.youtube.com/embed/MjrBTcnnK6c?si=PmQWsGiTh5XguSpb" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>

```html
<iframe width="360" height="215" src="https://www.youtube.com/embed/MjrBTcnnK6c?si=PmQWsGiTh5XguSpb" title="YouTube video player"></iframe>
```

### Pico CSS components

<small>The default embedded template uses [picocss](https://picocss.com) so it is possible to write raw HTML like this:</small>

#### FAQ

<details>
<summary>Why is it named Marmite?</summary>

The creator of this project was looking for some cool name
to use for a **mark**down related project.
Then while having bread with Marmite spread for breakfast
it looked like a good idea!

</details>

<hr />

<details>
<summary>Why Rust?</summary>

**Why not?**

</details>

<hr />


```html
<details>
<summary>Why is it named Marmite?</summary>

The ...

</details>

<hr />

<details>
<summary>Why Rust?</summary>

**Why not?**

</details>

<hr />

```

### Symbols


Expand Down
29 changes: 0 additions & 29 deletions example/content/second-blog-post.md

This file was deleted.

0 comments on commit 2217050

Please sign in to comment.