Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open URL in a new tab in the cards #39

Open
Suke0811 opened this issue Jul 8, 2023 · 2 comments
Open

Open URL in a new tab in the cards #39

Suke0811 opened this issue Jul 8, 2023 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@Suke0811
Copy link

Suke0811 commented Jul 8, 2023

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
Copy link
Member

RobertoPrevato commented Jul 18, 2023

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 RobertoPrevato added the documentation Improvements or additions to documentation label Jul 18, 2023
@RobertoPrevato
Copy link
Member

Reopening because this must be documented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants