Skip to content

Open URL in a new tab in the cards #39

Open

Description

@Suke0811

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

Activity

  1. added a commit that references this issue on Jul 18, 2023
    6503a83
  2. RobertoPrevato commented on Jul 18, 2023

    @RobertoPrevato
    Member

    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.

  3. RobertoPrevato commented on Jul 18, 2023

    @RobertoPrevato
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions