mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-02-02 11:32:30 -06:00
Fix markdown linting issues.
This commit is contained in:
parent
ffa0ece618
commit
c5340d108f
1 changed files with 13 additions and 18 deletions
|
@ -40,6 +40,7 @@ Don't forget to [follow me](https://twitter.com/nunocoracao) on Twitter.
|
||||||
{{< /alert >}}
|
{{< /alert >}}
|
||||||
|
|
||||||
## Article
|
## Article
|
||||||
|
|
||||||
`Article` will embed a single article into a markdown file. The `link` to the file should be the `.RelPermalink` of the file to be embedded. Note that the shortcode will not display anything if it's referencing it's parent. *Note: if you are running your website in a subfolder like Blowfish (i.e. /blowfish/) please include that path in the link.*
|
`Article` will embed a single article into a markdown file. The `link` to the file should be the `.RelPermalink` of the file to be embedded. Note that the shortcode will not display anything if it's referencing it's parent. *Note: if you are running your website in a subfolder like Blowfish (i.e. /blowfish/) please include that path in the link.*
|
||||||
|
|
||||||
<!-- prettier-ignore-start -->
|
<!-- prettier-ignore-start -->
|
||||||
|
@ -56,8 +57,6 @@ Don't forget to [follow me](https://twitter.com/nunocoracao) on Twitter.
|
||||||
|
|
||||||
{{< article link="/docs/welcome/" >}}
|
{{< article link="/docs/welcome/" >}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Badge
|
## Badge
|
||||||
|
|
||||||
`badge` outputs a styled badge component which is useful for displaying metadata.
|
`badge` outputs a styled badge component which is useful for displaying metadata.
|
||||||
|
@ -102,8 +101,6 @@ Call to action
|
||||||
|
|
||||||
{{< carousel "gallery/03.jpg" "gallery/01.jpg" "gallery/02.jpg" "gallery/04.jpg" >}}
|
{{< carousel "gallery/03.jpg" "gallery/01.jpg" "gallery/02.jpg" "gallery/04.jpg" >}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Chart
|
## Chart
|
||||||
|
|
||||||
`chart` uses the Chart.js library to embed charts into articles using simple structured data. It supports a number of [different chart styles](https://www.chartjs.org/docs/latest/samples/) and everything can be configured from within the shortcode. Simply provide the chart parameters between the shortcode tags and Chart.js will do the rest.
|
`chart` uses the Chart.js library to embed charts into articles using simple structured data. It supports a number of [different chart styles](https://www.chartjs.org/docs/latest/samples/) and everything can be configured from within the shortcode. Simply provide the chart parameters between the shortcode tags and Chart.js will do the rest.
|
||||||
|
@ -181,7 +178,6 @@ Blowfish also supports automatic conversion of images included using standard Ma
|
||||||
|
|
||||||
{{< figure src="abstract.jpg" alt="Abstract purple artwork" caption="Photo by [Jr Korpa](https://unsplash.com/@jrkorpa) on [Unsplash](https://unsplash.com/)" >}}
|
{{< figure src="abstract.jpg" alt="Abstract purple artwork" caption="Photo by [Jr Korpa](https://unsplash.com/@jrkorpa) on [Unsplash](https://unsplash.com/)" >}}
|
||||||
|
|
||||||
|
|
||||||
## Gallery
|
## Gallery
|
||||||
|
|
||||||
`gallery` allows you to showcase multiple images at once, in a responsive manner with more varied and interesting layouts.
|
`gallery` allows you to showcase multiple images at once, in a responsive manner with more varied and interesting layouts.
|
||||||
|
@ -212,7 +208,6 @@ In order to add images to the gallery, use `img` tags for each image and add `cl
|
||||||
<img src="gallery/07.jpg" class="grid-w33" />
|
<img src="gallery/07.jpg" class="grid-w33" />
|
||||||
{{< /gallery >}}
|
{{< /gallery >}}
|
||||||
|
|
||||||
|
|
||||||
## GitHub Card
|
## GitHub Card
|
||||||
|
|
||||||
`github` allows you to quickly link a github repository, all while showing and updating in realtime stats about it, such as the number of stars and forks it has.
|
`github` allows you to quickly link a github repository, all while showing and updating in realtime stats about it, such as the number of stars and forks it has.
|
||||||
|
@ -231,7 +226,6 @@ In order to add images to the gallery, use `img` tags for each image and add `cl
|
||||||
|
|
||||||
{{< github repo="nunocoracao/blowfish" >}}
|
{{< github repo="nunocoracao/blowfish" >}}
|
||||||
|
|
||||||
|
|
||||||
## Icon
|
## Icon
|
||||||
|
|
||||||
`icon` outputs an SVG icon and takes the icon name as its only parameter. The icon is scaled to match the current text size.
|
`icon` outputs an SVG icon and takes the icon name as its only parameter. The icon is scaled to match the current text size.
|
||||||
|
@ -287,6 +281,7 @@ When life gives you lemons, make lemonade.
|
||||||
{{< /lead >}}
|
{{< /lead >}}
|
||||||
|
|
||||||
## List
|
## List
|
||||||
|
|
||||||
`List` will display a list of recent articles. This shortcode requires a limit value to constraint the list. Additionally, it supports a `where` and a `value` in order to filter articles by their parameters. Note that this shortcode will not display its parent page but it will count for the limit value.
|
`List` will display a list of recent articles. This shortcode requires a limit value to constraint the list. Additionally, it supports a `where` and a `value` in order to filter articles by their parameters. Note that this shortcode will not display its parent page but it will count for the limit value.
|
||||||
|
|
||||||
<!-- prettier-ignore-start -->
|
<!-- prettier-ignore-start -->
|
||||||
|
@ -299,6 +294,7 @@ When life gives you lemons, make lemonade.
|
||||||
<!-- prettier-ignore-end -->
|
<!-- prettier-ignore-end -->
|
||||||
|
|
||||||
**Example #1:**
|
**Example #1:**
|
||||||
|
|
||||||
```md
|
```md
|
||||||
{{</* list limit=2 */>}}
|
{{</* list limit=2 */>}}
|
||||||
```
|
```
|
||||||
|
@ -306,13 +302,13 @@ When life gives you lemons, make lemonade.
|
||||||
{{< list limit=2 >}}
|
{{< list limit=2 >}}
|
||||||
|
|
||||||
**Example #2:**
|
**Example #2:**
|
||||||
|
|
||||||
```md
|
```md
|
||||||
{{</* list limit=2 where="Type" value="sample" */>}}
|
{{</* list limit=2 where="Type" value="sample" */>}}
|
||||||
```
|
```
|
||||||
|
|
||||||
{{< list limit=2 where="Type" value="sample">}}
|
{{< list limit=2 where="Type" value="sample">}}
|
||||||
|
|
||||||
|
|
||||||
## Mermaid
|
## Mermaid
|
||||||
|
|
||||||
`mermaid` allows you to draw detailed diagrams and visualisations using text. It uses Mermaid under the hood and supports a wide variety of diagrams, charts and other output formats.
|
`mermaid` allows you to draw detailed diagrams and visualisations using text. It uses Mermaid under the hood and supports a wide variety of diagrams, charts and other output formats.
|
||||||
|
@ -340,9 +336,11 @@ B-->C[Profit]
|
||||||
You can see some additional Mermaid examples on the [diagrams and flowcharts samples]({{< ref "diagrams-flowcharts" >}}) page.
|
You can see some additional Mermaid examples on the [diagrams and flowcharts samples]({{< ref "diagrams-flowcharts" >}}) page.
|
||||||
|
|
||||||
## Swatches
|
## Swatches
|
||||||
|
|
||||||
`swatches` outputs a set of up to three different colors to showcase color elements like a color palette. This shortcode takes the `HEX` codes of each color and creates the visual elements for each.
|
`swatches` outputs a set of up to three different colors to showcase color elements like a color palette. This shortcode takes the `HEX` codes of each color and creates the visual elements for each.
|
||||||
|
|
||||||
**Example**
|
**Example**
|
||||||
|
|
||||||
```md
|
```md
|
||||||
{{</* swatches "#64748b" "#3b82f6" "#06b6d4" */>}}
|
{{</* swatches "#64748b" "#3b82f6" "#06b6d4" */>}}
|
||||||
```
|
```
|
||||||
|
@ -350,7 +348,6 @@ You can see some additional Mermaid examples on the [diagrams and flowcharts sam
|
||||||
**Output**
|
**Output**
|
||||||
{{< swatches "#64748b" "#3b82f6" "#06b6d4" >}}
|
{{< swatches "#64748b" "#3b82f6" "#06b6d4" >}}
|
||||||
|
|
||||||
|
|
||||||
## TypeIt
|
## TypeIt
|
||||||
|
|
||||||
[TypeIt](https://www.typeitjs.com) is the most versatile JavaScript tool for creating typewriter effects on the planet. With a straightforward configuration, it allows you to type single or multiple strings that break lines, delete & replace each other, and it even handles strings that contain complex HTML.
|
[TypeIt](https://www.typeitjs.com) is the most versatile JavaScript tool for creating typewriter effects on the planet. With a straightforward configuration, it allows you to type single or multiple strings that break lines, delete & replace each other, and it even handles strings that contain complex HTML.
|
||||||
|
@ -372,8 +369,6 @@ Blowfish implements a sub-set of TypeIt features using a `shortcode`. Write your
|
||||||
|
|
||||||
<!-- prettier-ignore-end -->
|
<!-- prettier-ignore-end -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**Example 1:**
|
**Example 1:**
|
||||||
|
|
||||||
```md
|
```md
|
||||||
|
@ -406,7 +401,6 @@ Lorem ipsum dolor sit amet,
|
||||||
consectetur adipiscing elit.
|
consectetur adipiscing elit.
|
||||||
{{< /typeit >}}
|
{{< /typeit >}}
|
||||||
|
|
||||||
|
|
||||||
**Example 3:**
|
**Example 3:**
|
||||||
|
|
||||||
```md
|
```md
|
||||||
|
@ -420,6 +414,7 @@ Lorem ipsum dolor sit amet,
|
||||||
consectetur adipiscing elit.
|
consectetur adipiscing elit.
|
||||||
{{</* /typeit */>}}
|
{{</* /typeit */>}}
|
||||||
```
|
```
|
||||||
|
|
||||||
{{< typeit
|
{{< typeit
|
||||||
tag=h3
|
tag=h3
|
||||||
speed=50
|
speed=50
|
||||||
|
|
Loading…
Reference in a new issue