getnikola / shortcodes

Shortcodes for Nikola.
13 stars 3 forks source link

New Shortcodes #3

Closed dacog closed 10 months ago

dacog commented 10 months ago

Hi,

I created some shortcodes for my site based on the default Nikola Theme (bootstrap 4 and Jinja2).

One is a shortcode to add something like a series-button

{{% series_buttons previous_url="/previous-article" previous_text="Previous Article Title" next_url="/next-article" next_text="Next Article Title" %}}

and looks like this:

Screenshot_20231208_161857

and the other one is a shortcode to add a note box with different icons.

{{% notebox type="book" text="This is a book notebox" %}}

This looks like this:

Screenshot_20231208_161735

Would it be ok to add them to the repo or are they to specific?

Best,

Diego

Kwpolska commented 10 months ago

Those shortcodes seem useful to more than one person — feel free to submit a pull request :)

dacog commented 10 months ago

Hi @Kwpolska

Great! Here is the Pull Request https://github.com/getnikola/shortcodes/pull/4

If there is anything I should change, please do tell me. I tried following the format of the other entries.