That's a directive, shortcodes look more like this:

{{% button icon=paperplance color=blue %}}

Check the manual: https://getnikola.com/handbook.html#shortcodes

On Thu, Jun 13, 2024 at 10:08 AM Hartmut Goebel <
[email protected]> wrote:

> Hi,
>
> I created a template based shortcode "button", and using it as directive
> according to the example for "post-list":
>
> .. button::
>    :icon: paperplane
>    :color: blue
>
>    This is the text in the button
>
> Anyhow. when using it in reST file, I get "Unknown directive type
> "button"".
>
> I tried both
>
>    - themes/mytheme/shortcodes/button.tmpl
>    - themes/mytheme/templates/shortcodes/button.tmpl
>
> without success.
>
> What am I doing wrong?
>
> --
> Regards
> Hartmut Goebel
>
> | Hartmut Goebel          | [email protected]               |
> | www.crazy-compilers.com | compilers which you thought are impossible |
>
> --
> You received this message because you are subscribed to the Google Groups
> "nikola-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/nikola-discuss/f7b086ec-592b-44de-9228-66bc0d7ab38e%40crazy-compilers.com
> <https://groups.google.com/d/msgid/nikola-discuss/f7b086ec-592b-44de-9228-66bc0d7ab38e%40crazy-compilers.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"nikola-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nikola-discuss/CALXDAfoBcL1Gwn-bYKVCCTWFZEbgaO0BE%3D3bc_Wqvq29fBTr6g%40mail.gmail.com.

Reply via email to