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

期望文章内容页支持创建多类型图文布局 #3962

Closed
intoyang opened this issue May 17, 2023 · 3 comments
Closed

期望文章内容页支持创建多类型图文布局 #3962

intoyang opened this issue May 17, 2023 · 3 comments
Labels
area/editor Issues or PRs related to the Editor kind/feature Categorizes issue or PR as related to a new feature.

Comments

@intoyang
Copy link
Member

你当前使用的版本

2.5

描述一下此特性

  1. 创建文章时,支持为正文内容选择不同布局;
  2. 可将当前正常键入文章内容的布局理解为默认布局,支持纯文字及图片的顺序排列;在此之上,初步构想了三种拓展布局,分别是并列图文、遮罩图文及图片墙;
  3. 该功能可以使用斜杠唤出,或加入富文本编辑器的 tab 菜单中;当功能唤出时,立即显示配置弹窗;
  4. 完成相应配置后,在编辑器中显示为可编辑卡片,点击编辑按钮,可以再次进入配置界面;类似 confluence 当中的宏组件。
image
  • 并列图文布局示例:
image
  • 遮罩图文布局示例:
image
  • 图片墙布局示例:
image

每种布局有相应配置选项,其中,文本输入框可支持最基础的文体设置,如:加粗、斜体、下划线、删除线、水平对齐(左/中/右)、垂直对齐(顶/居中/底)等。

附加信息

可以预想,正文多布局应该能让文章页更生动易读。
image

@ruibaby
Copy link
Member

ruibaby commented May 17, 2023

创建文章时,支持为正文内容选择不同布局;

这一点目前已经支持,可参考:https://docs.halo.run/developer-guide/theme/template-route-mapping#custom-templates

其他需求似乎都是编辑器的需求。

/kind feature
/area editor

@ruibaby ruibaby added kind/feature Categorizes issue or PR as related to a new feature. area/editor Issues or PRs related to the Editor labels May 18, 2023
@ruibaby
Copy link
Member

ruibaby commented Sep 27, 2023

已经在 #4669 中支持分栏布局。

/close

@f2c-ci-robot f2c-ci-robot bot closed this as completed Sep 27, 2023
@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Sep 27, 2023

@ruibaby: Closing this issue.

In response to this:

已经在 #4669 中支持分栏布局。

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/editor Issues or PRs related to the Editor kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

2 participants