Neoteroi / mkdocs-plugins

Plugins for MkDocs.
MIT License
116 stars 9 forks source link

Open URL in a new tab in the cards #39

Open Suke0811 opened 12 months ago

Suke0811 commented 12 months ago

Hi, thank you for your awesome work! This plugin makes mkdoc website beautiful.

I see no option for opening the URL link in a new tab, but is there any workaround to force the card item URL links to have target="_blank"?

RobertoPrevato commented 11 months ago

Hi @Suke0811 Thank You for your kind words. I added support for target="_blank" in the cards, and published it to https://pypi.org/project/neoteroi-mkdocs/1.0.3/

You have two options to use it:

  1. You can enable it globally, editing your mkdocs.yml file to use this setting:

    - neoteroi.cards:
      blank_target: true
  2. in a specific instance of cards, you can use the option:

-::cards::
+::cards:: blank_target=true

* title: Zeus
  content: Lorem ipsum dolor sit amet.
  url: https://en.wikipedia.org/wiki/Zeus

::/cards::

Please upgrade using pip install -U neoteroi-mkdocs.

RobertoPrevato commented 11 months ago

Reopening because this must be documented.