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

主题开发文档添加对主题预览链接的描述 #424

Open
guqing opened this issue Sep 27, 2024 · 0 comments
Open

主题开发文档添加对主题预览链接的描述 #424

guqing opened this issue Sep 27, 2024 · 0 comments

Comments

@guqing
Copy link
Member

guqing commented Sep 27, 2024

目前主题预览功能是在页面路由添加 preview-theme 参数来实现的,所以在切换页面的时候同样也需要携带这个参数,如果主题没有适配,那么将不再是预览主题的状态。

目前主题适配的方式是在所有动态超链接的语法中使用 @{} 包裹实际的路由变量,但目前似乎没有在开发文档中提到,后续可以专门提供一篇文档来说明。

如果链接没有使用 @{} 包裹那么可能无法完整支持预览功能

Originally posted by @ruibaby in halo-dev/halo#5700 (comment)

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

1 participant