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

Provide a property "target" for setting the redirect action for featu… #2897

Merged
merged 3 commits into from Sep 10, 2023
Merged

Provide a property "target" for setting the redirect action for featu… #2897

merged 3 commits into from Sep 10, 2023

Conversation

szchixy
Copy link
Contributor

@szchixy szchixy commented Sep 2, 2023

Resolves #2896.

This allows you to redirect new a tab page when clicking on a feature item.

Examples:

Set target: _blank for "Guide" feature item, and set nothing for "Reference" item. When click on "Guide" feature item, it will open a new tab page and redirect to it, while reflash 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

@brc-dd brc-dd merged commit cb49673 into vuejs:main Sep 10, 2023
7 checks passed
@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 this pull request may close these issues.

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