vuejs / vitepress

Vite & Vue powered static site generator.
https://vitepress.dev
MIT License
13.1k stars 2.11k forks source link

Cannot change prev/next labels when disabling them globally #2535

Open niknetniko opened 1 year ago

niknetniko commented 1 year ago

Describe the bug

I have the following situation:

Since the attributes for setting the labels of these links (the Next page and Previous page text) are also used to disable them globally (since #2317), I cannot change the labels while also disabling them globally.

Reproduction

  1. Open any vitepress site.
  2. Disable prev/next links globally.
  3. Re-enable them on some page.

Expected behavior

The label should be translatable, either by allowing to set this in the frontmatter, or having separate attributes for the labels of these links and disabling them.

System Info

System:
    OS: Linux 6.3 NixOS 23.11 (Tapir) 23.11 (Tapir)
    CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11850H @ 2.50GHz
    Memory: 17.05 GB / 31.09 GB
    Container: Yes
    Shell: 5.2.15 - /nix/store/j1bznhli95dsjwgcpvaxgkaivzc1wqc3-bash-interactive-5.2-p15/bin/bash
  Binaries:
    Node: 18.16.0 - /nix/store/1dyx7vs2isj2yl81ik2f3zxzwp3l233p-nodejs-18.16.0/bin/node
    Yarn: 1.22.19 - /nix/store/9p2d8qvqj6q5lbhsq03a85w7xka0j4l7-yarn-1.22.19/bin/yarn
    npm: 9.5.1 - /nix/store/1dyx7vs2isj2yl81ik2f3zxzwp3l233p-nodejs-18.16.0/bin/npm
  npmPackages:
    vitepress: ^1.0.0-beta.3 => 1.0.0-beta.3

Additional context

No response

Validations

aslafy-z commented 10 months ago

I am also interested with this feature.