halo-sigs / plugin-links

Halo 2.0 的链接管理插件
https://www.halo.run/store/apps/app-hfbQg
GNU General Public License v3.0
30 stars 7 forks source link

feat: adapt to the comment plugin #66

Closed LIlGG closed 4 months ago

LIlGG commented 4 months ago

What type of PR is this?

/kind feature

What this PR does / why we need it:

为友链页面适配评论插件。在当前的 links.html 模板下,增加如下 HTML 即可为友链页面增加评论组件。

<div th:if="${haloCommentEnabled}">
    <halo:comment
        group="plugin.halo.run"
        kind="Plugin"
        th:attr="name=${pluginName}"
    />
</div>

提交后将在评论页面展示相关信息并支持跳转至评论页面。

image

How to test it?

测试友链页面添加评论组件。 测试提交评论后,在评论列表是否能够显示友情链接的 subject 信息。

Which issue(s) this PR fixes:

Fixes #63

Does this PR introduce a user-facing change?

为友情链接页面适配评论插件
f2c-ci-robot[bot] commented 4 months ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: guqing

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/halo-sigs/plugin-links/blob/main/OWNERS)~~ [guqing] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment