diff --git a/settings.yaml b/settings.yaml index abbfc9cd..0ea41a87 100644 --- a/settings.yaml +++ b/settings.yaml @@ -2661,6 +2661,36 @@ spec: validation: required value: 'https://npm.onmicrosoft.cn/hao-theme-static@1.3.0/templates/assets' help: '默认为npmJs的onmicrosoft加速地址,如果你有自己的cdn地址(请确保链接下assets文件夹下主题静态资源文件),可以填写,否则请勿修改! ' + - $formkit: group + name: vanillaLazyload + label: 懒加载 + value: + enable: true + errorImg: "/themes/theme-hao/assets/images/404.gif" + loadingImg: /themes/theme-hao/assets/images/404s.gif + children: + - $formkit: radio + name: enable + id: enable + key: enable + options: + - label: 启用 + value: true + - label: 禁用 + value: false + - $formkit: attachment + name: loadingImg + id: loadingImg + key: loadingImg + if: $get(enable).value + label: 加载图片 + validation: required + placeholder: 请输入图片 url + - $formkit: attachment + name: errorImg + label: 图片加载失败图 + validation: required + placeholder: 请输入图片 url - $formkit: group name: diytitle label: 动态标题 diff --git a/templates/album.html b/templates/album.html index 59f5d15f..84371b59 100644 --- a/templates/album.html +++ b/templates/album.html @@ -23,7 +23,10 @@
[[${#annotations.get(group, 'description')}]]
- - - + +