diff --git a/annotation-setting.yaml b/annotation-setting.yaml index d3cfd0c8..7eaecfe4 100644 --- a/annotation-setting.yaml +++ b/annotation-setting.yaml @@ -9,4 +9,55 @@ spec: formSchema: - $formkit: "text" name: "icon" - label: "图标" \ No newline at end of file + label: "图标" + +--- + +apiVersion: v1alpha1 +kind: AnnotationSetting +metadata: + generateName: annotation-setting- +spec: + targetRef: + group: "core.halo.run" + kind: LinkGroup + formSchema: + - $formkit: "radio" + name: "displayStyle" + label: "分组方式" + value: default + options: + - label: 默认 + value: default + - label: 美化 + value: beautify + - label: 失联 + value: deprecated + - $formkit: "textarea" + name: "description" + label: "描述" + value: "" + +--- + +apiVersion: v1alpha1 +kind: AnnotationSetting +metadata: + generateName: annotation-setting- +spec: + targetRef: + group: "core.halo.run" + kind: Link + formSchema: + - $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 diff --git a/templates/macro/content-links.html b/templates/macro/content-links.html index 8a08dda6..00bffa8d 100644 --- a/templates/macro/content-links.html +++ b/templates/macro/content-links.html @@ -74,19 +74,18 @@ [[${group.spec.displayName}]] ([[${group.links.size}]]) - - + -
- [[${link.spec.label}]] + [[${link.metadata.annotations.label}]] + th:src="@{${#strings.isEmpty(link.metadata.annotations.siteshot) ? link.spec.logo : link.metadata.annotations.siteshot}}">
+
-