想要在HomePage上配置Halo的信息展示,找到了一个免签接口可以提供相关数据。本文将详细讲解如何在HomePage中进行配置并展示Halo博客系统的相关信息。
打开HomePage的 service.yaml 文件,填写以下内容并修改其中的参数数据为自己的内容
- 新·都在:
icon: /images/logo-doiw.png
description: 只想专心玩NAS
href: "https://blog.xindu.site/"
siteMonitor: https://blog.xindu.site/
ping: https://blog.xindu.site
server: halo2
container: halo2
showStats: false
widget:
type: customapi
url: https://blog.xindu.site/apis/api.halo.run/v1alpha1/stats/-
method: GET
mappings:
- field: category
label: 分类数
- field: post
label: 文章数
- field: comment
label: 评论数
- field: visit
label: 访问量
# - field: upvote
# label: 点赞数
docker.yaml 配置docker.yaml 配置container 参数https://blog.xindu.site 替换成你自己的站点地址即可