diff --git a/components/home-intro.js b/components/home-intro.js index 690573b..377095c 100644 --- a/components/home-intro.js +++ b/components/home-intro.js @@ -32,6 +32,11 @@ export default ({ isFlat }) => ( Override default subject text (URL-Encoding needed for spaces or special characters). e.g. +
  • + labelColor + Override default label color. + e.g. +
  • Advanced usage

    diff --git a/libs/serve-badge.ts b/libs/serve-badge.ts index e60bb37..a71e1f4 100644 --- a/libs/serve-badge.ts +++ b/libs/serve-badge.ts @@ -14,13 +14,14 @@ export default function (req, res, options: ServeBadgeOptions) { const { code = 200, sMaxAge = 10800, query = {}, params } = options const { subject, status, color } = params - const { label, list, icon, iconWidth } = query + const { label, labelColor, icon, iconWidth, list } = query const _icon = resolveIcon(icon, iconWidth) // TODO: review usage of list list && console.log(`FEAT-LIST ${req.url}`) const badge = badgen({ + labelColor, subject: typeof label !== 'undefined' ? label : subject, status: transformStatus(status, { list }), color: query.color || color,