mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-01-22 22:45:42 -06:00
polish keywork shortcode
This commit is contained in:
parent
09bdcb78a2
commit
23bb87b1cf
4 changed files with 13 additions and 3 deletions
|
@ -44,7 +44,7 @@ smartTOCHideUnfocusedChildren = false
|
||||||
showMoreLinkDest = "docs"
|
showMoreLinkDest = "docs"
|
||||||
cardView = false
|
cardView = false
|
||||||
cardViewScreenWidth = false
|
cardViewScreenWidth = false
|
||||||
layoutBackgroundBlur = false # only used when layout equals background
|
layoutBackgroundBlur = true # only used when layout equals background
|
||||||
|
|
||||||
[article]
|
[article]
|
||||||
showDate = false
|
showDate = false
|
||||||
|
|
|
@ -392,13 +392,22 @@ The `keyword` component can be used to visually highlight certain important word
|
||||||
|
|
||||||
The input is written in Markdown so you can format it however you please.
|
The input is written in Markdown so you can format it however you please.
|
||||||
|
|
||||||
**Example:**
|
**Example1 :**
|
||||||
|
|
||||||
|
```md
|
||||||
|
{{</* keyword */>}} Super skill {{</* /keyword */>}}
|
||||||
|
```
|
||||||
|
|
||||||
|
{{< keyword >}} *Standalone* skill {{< /keyword >}}
|
||||||
|
|
||||||
|
**Example2 :**
|
||||||
|
|
||||||
```md
|
```md
|
||||||
{{</* keywordList */>}}
|
{{</* keywordList */>}}
|
||||||
{{</* keyword icon="github" */>}} Lorem ipsum dolor. {{</* /keyword */>}}
|
{{</* keyword icon="github" */>}} Lorem ipsum dolor. {{</* /keyword */>}}
|
||||||
{{</* keyword icon="code" */>}} **Important** skill {{</* /keyword */>}}
|
{{</* keyword icon="code" */>}} **Important** skill {{</* /keyword */>}}
|
||||||
{{</* /keywordList */>}}
|
{{</* /keywordList */>}}
|
||||||
|
|
||||||
{{</* keyword */>}} *Standalone* skill {{</* /keyword */>}}
|
{{</* keyword */>}} *Standalone* skill {{</* /keyword */>}}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -37,6 +37,7 @@ The full list of built-in icons and their corresponding names can referenced bel
|
||||||
| edit | {{< icon edit >}} |
|
| edit | {{< icon edit >}} |
|
||||||
| email | {{< icon email >}} |
|
| email | {{< icon email >}} |
|
||||||
| envelope | {{< icon envelope >}} |
|
| envelope | {{< icon envelope >}} |
|
||||||
|
| expand | {{< icon expand >}} |
|
||||||
| eye | {{< icon eye >}} |
|
| eye | {{< icon eye >}} |
|
||||||
| facebook | {{< icon facebook >}} |
|
| facebook | {{< icon facebook >}} |
|
||||||
| fire | {{< icon fire >}} |
|
| fire | {{< icon fire >}} |
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{{ $icon := .Get "icon"}}
|
{{ $icon := .Get "icon"}}
|
||||||
<div class="flex mt-2">
|
<div class="flex mt-2">
|
||||||
<span
|
<span
|
||||||
class="rounded-full bg-primary-500 dark:bg-primary-300 text-neutral-50 dark:text-neutral-700 px-1.5 py-[1px] text-xs font-normal"
|
class="rounded-full bg-primary-500 dark:bg-primary-400 text-neutral-50 dark:text-neutral-800 px-1.5 py-[1px] text-xs font-normal"
|
||||||
>
|
>
|
||||||
<span class="flex flex-row items-center">
|
<span class="flex flex-row items-center">
|
||||||
{{if $icon}}
|
{{if $icon}}
|
||||||
|
|
Loading…
Reference in a new issue