Skip to content

Conversation

@koudaiii
Copy link
Owner

Ref

#48

Why

image

What

Fix it.

How

This pull request refactors how the update information is displayed by reusing and customizing the existing article-metadata-footer element. Instead of always creating a new <p> tag, it now clones the footer, updates its attributes, and inserts the update information in a more structured way. This approach improves consistency with the page’s metadata layout and enhances maintainability.

Improvements to metadata display:

  • Clones the article-metadata-footer element to create a new container (custom-header-from-article-metadata-footer) for update information, ensuring consistent styling and structure with existing metadata.
  • Updates attributes (id, data-bi-name, data-test-id, and className) on the cloned container for better identification and styling.
  • Sets the lang attribute on the metadata list to match the current language.
  • Inserts the update information <p> tag after the span.badge inside the relevant list item, improving semantic placement.
  • Falls back to the original implementation if the custom container cannot be created, ensuring backward compatibility.

Create custom-header-from-article-metadata-footer container to improve article metadata layout.
@koudaiii
Copy link
Owner Author

@koudaiii
Copy link
Owner Author

koudaiii commented Nov 20, 2025

added <hr class="hr"> in the buttom.

image image

@koudaiii koudaiii merged commit e688d1b into main Nov 26, 2025
3 checks passed
@koudaiii koudaiii deleted the koudaiii/fix-design branch November 26, 2025 14:48
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.

2 participants