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

PageFrontMatter 中的 color 属性应该如何应用? #391

Open
3 tasks done
674019130 opened this issue May 5, 2024 · 2 comments
Open
3 tasks done

PageFrontMatter 中的 color 属性应该如何应用? #391

674019130 opened this issue May 5, 2024 · 2 comments

Comments

@674019130
Copy link

674019130 commented May 5, 2024

Describe the bug

实际上不算 Bug,应该是想问下使用方式
https://github.com/YunYouJun/valaxy/blob/main/packages/valaxy/types/posts.ts#L108

这个看备注是 title color,在pages/posts/xx.md 的 FrontMatter 里试了以下几种方式都没有生效

color: 'red'
color: '#FF8EB3'
color: 'rgb(255, 0, 255)'
color: '255, 0, 255'

Reproduction

as description

System Info

  System:
    OS: Windows 11 10.0.22631
    CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700H
    Memory: 2.37 GB / 15.67 GB
  Binaries:
    Node: 20.12.2 - E:\BlogCode\nodejs20.12.2\node.EXE
    npm: 10.5.0 - E:\BlogCode\nodejs20.12.2\npm.CMD
    pnpm: 9.0.6 - ~\AppData\Roaming\npm\pnpm.CMD
  Browsers:
    Edge: Chromium (123.0.2420.65)
    Internet Explorer: 11.0.22621.1

Used Package Manager

pnpm

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.
@yixiaojiu
Copy link
Collaborator

yaml 里字符串好像不用加单引号,你试试这样写?

color: red

@674019130
Copy link
Author

yaml 里字符串好像不用加单引号,你试试这样写?

color: red

在首页还是原来的颜色,但是点进去就是设置的颜色了!
但是内外颜色不一致也很奇怪,看来改外面的颜色要找别的地方
感谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants