diff --git a/annotation-setting.yaml b/annotation-setting.yaml index 7eaecfe4..9884bef5 100644 --- a/annotation-setting.yaml +++ b/annotation-setting.yaml @@ -36,7 +36,6 @@ spec: - $formkit: "textarea" name: "description" label: "描述" - value: "" --- @@ -52,12 +51,10 @@ spec: - $formkit: "attachment" name: "siteshot" label: "背景" - value: "" - $formkit: "text" name: "label" label: "标签" - value: "" - $formkit: "color" name: "labelColor" value: "#425AEF" - label: "标签颜色" \ No newline at end of file + label: "标签颜色" diff --git a/templates/macro/content-links.html b/templates/macro/content-links.html index 00bffa8d..8a148470 100644 --- a/templates/macro/content-links.html +++ b/templates/macro/content-links.html @@ -74,18 +74,20 @@ [[${group.spec.displayName}]] ([[${group.links.size}]]) - + -
+
- [[${link.metadata.annotations.label}]] + [[${#annotations.get(link, 'label')}]] + + th:src="@{${#strings.isEmpty(#annotations.get(link, 'siteshot')) ? link.spec.logo : #annotations.get(link,'siteshot') }}">