mkdocs-plugins icon indicating copy to clipboard operation
mkdocs-plugins copied to clipboard

Open URL in a new tab in the cards

Open Suke0811 opened this issue 1 year ago • 2 comments

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"?

Suke0811 avatar Jul 08 '23 07:07 Suke0811

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
  1. 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 avatar Jul 18 '23 18:07 RobertoPrevato

Reopening because this must be documented.

RobertoPrevato avatar Jul 18 '23 18:07 RobertoPrevato