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

feat: jump to a new tab page when click on a feature item in index page. #2896

Closed
4 tasks done
geoochi opened this issue Sep 2, 2023 · 0 comments · Fixed by #2897
Closed
4 tasks done

feat: jump to a new tab page when click on a feature item in index page. #2896

geoochi opened this issue Sep 2, 2023 · 0 comments · Fixed by #2897

Comments

@geoochi
Copy link
Contributor

geoochi commented Sep 2, 2023

Is your feature request related to a problem? Please describe.

I have put several feature items in index.md with links, and some of them link to my other html project pages, so it needs to be automatically redirected to new tab pages, but now they can't.

Describe the solution you'd like

Provide a property "target" for setting the redirect action for feature items.

Example:

Setting target: _blank for "Guide" feature item, and setting nothing for "Reference" item.

When click on "Guide" feature item, it will open a new tab page and redirect to it, while flash in self page when click on "Reference" page.

---
layout: home

title: VitePress
titleTemplate: Vite & Vue Powered Static Site Generator

hero:
  name: VitePress
  text: Vite & Vue Powered Static Site Generator
  tagline: Simple, powerful, and fast. Meet the modern SSG framework you've always wanted.
  actions:
    - theme: brand
      text: Get Started
      link: /guide/getting-started
    - theme: alt
      text: View on GitHub
      link: https://github.com/vuejs/vitepress
  image:
    src: /vitepress-logo-large.webp
    alt: VitePress

features:
  - title: Guide
    link: /guide/what-is-vitepress
    target: _blank
  - title: Reference
    link: /Reference/site-config
---

result

Describe alternatives you've considered

No response

Additional context

No response

Validations

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant