Skip to content

Conversation

@geoochi
Copy link
Contributor

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