hextra icon indicating copy to clipboard operation
hextra copied to clipboard

Support buttons shortcode

Open Leroy-X opened this issue 2 years ago • 4 comments

Support more shortcodes.

Hope to support more short codes, such as hints, buttons, columns, etc.

I think the usage rate of hints is very high, and I hope it can be supported as soon as possible. Currently I am using callout to make similar styles.

Thank you so much!

Leroy-X avatar Sep 16 '23 08:09 Leroy-X

Hi, I would like to add more shortcodes in the theme.

Hope to support more short codes, such as hints, buttons, columns, etc.

What do you mean by "hints"? Currently it has callout and details which should be sufficient to use as "hints", if my understanding is correct.

re: buttons, I'm planning to add it in the future, stay tuned.

re: columns, I don't have plan to add columns since it's a very specific use case. Hextra has Cards, and plus markdown table can be used to divide content vertically.

imfing avatar Sep 16 '23 09:09 imfing

Sorry, I forgot to link, it seems similar to callout, maybe just the name is different. https://hugo-book-demo.netlify.app/docs/shortcodes/hints/

Thank you very much for your reply. The active development makes me look forward to it.

I have been using mkdocs before, Hextra gave me a new choice, I will recommend it to my friends, thank you very much!

Leroy-X avatar Sep 16 '23 10:09 Leroy-X

Thanks. The hints you posted is essentially the callouts we have here.

imfing avatar Sep 16 '23 21:09 imfing

Hi @imfing, I made some buttons inspired by the ones you have on your website, I can submit a PR for a button shortcode if you are ok with that.

juliamrch avatar Jan 18 '24 13:01 juliamrch