polish keywork shortcode

This commit is contained in:
Nuno Coração 2024-01-04 21:34:00 +00:00
parent 09bdcb78a2
commit 23bb87b1cf
4 changed files with 13 additions and 3 deletions

View file

@ -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

View file

@ -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 */>}}
``` ```

View file

@ -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 >}} |

View file

@ -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}}