Skip to content

feat: configurable badge and logo for article sidebar and issue TOC (Issue #27)#135

Merged
nuest merged 3 commits into
mainfrom
feature/configurable-badge
Jul 13, 2026
Merged

feat: configurable badge and logo for article sidebar and issue TOC (Issue #27)#135
nuest merged 3 commits into
mainfrom
feature/configurable-badge

Conversation

@subhanLabs

Copy link
Copy Markdown
Member

Closes #27

Adds a Badge / Logo setting in the plugin settings allowing journal managers to choose how CODECHECK is displayed on the article landing page sidebar and the issue table of contents.

Options:

  • CODE WORKS badge (default)
  • CODECHECK logo
  • Own image via custom URL (recommended: approx. 134×24px)
  • No badge (text only , displays a plain "CODECHECK" label, linked to the certificate when available)

Changes:

  • New codecheckBadgeType and codecheckBadgeCustomUrl plugin settings
  • Badge selection is applied consistently on both the article landing page sidebar and the issue table of contents
  • The CODECHECK logo is displayed at a slightly larger height than the CODE WORKS badge to account for its different aspect ratio
  • Text-only mode links to the certificate when one exists, otherwise renders as a plain label

Screenshots:

image image image

Add a Badge / Logo setting with four options: CODE WORKS badge
(default), CODECHECK logo, own image via custom URL, and no badge
(text only). The selected badge is applied consistently on both the
article landing page sidebar and the issue table of contents.
Text-only mode shows a plain CODECHECK label, linked to the
certificate when available.
@nuest
nuest marked this pull request as draft June 22, 2026 11:28
@nuest

nuest commented Jun 22, 2026

Copy link
Copy Markdown
Member

@subhanLabs Converted to draft so you can work on the scaling / image height form. For demonstration purposes, I recommend using a shields.io URL for a badge that looks completely different, e.g.:

https://img.shields.io/badge/WORKFLOW-reviewed_and_executed-22ee99 gives you

Allow journal managers to set the badge display height in pixels.
Width adjusts automatically. Applies to all badge types across
both the article sidebar and issue table of contents. Default: 24px.
@subhanLabs

Copy link
Copy Markdown
Member Author

@subhanLabs Converted to draft so you can work on the scaling / image height form. For demonstration purposes, I recommend using a shields.io URL for a badge that looks completely different, e.g.:

https://img.shields.io/badge/WORKFLOW-reviewed_and_executed-22ee99 gives you

image image image

Height option is added in the settings, by default the size will be 24.

@subhanLabs
subhanLabs marked this pull request as ready for review July 6, 2026 11:10
@nuest

nuest commented Jul 6, 2026

Copy link
Copy Markdown
Member

@subhanLabs please resolve the merge conflicts, then I'll review. Thanks!

@nuest
nuest merged commit c133a39 into main Jul 13, 2026
3 checks passed
@nuest

nuest commented Jul 13, 2026

Copy link
Copy Markdown
Member

@subhanLabs I did the merge - always risky ! Please check after the merge if the badge config still works.

@nuest
nuest deleted the feature/configurable-badge branch July 13, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make badge and logo configurable

2 participants