Skip to content

feat(display): improve regulation frontend display format and meta data rendering#4

Open
zhenhuang-tw wants to merge 2 commits into
ntpusu:masterfrom
zhenhuang-tw:feat/update-regulation-display
Open

feat(display): improve regulation frontend display format and meta data rendering#4
zhenhuang-tw wants to merge 2 commits into
ntpusu:masterfrom
zhenhuang-tw:feat/update-regulation-display

Conversation

@zhenhuang-tw

Copy link
Copy Markdown

This PR improves the frontend output format of the regulation sync plugin to align with the present display requirements of the website.

Changes

  1. Fix Missing Meta Info: Combined and rendered modifiedType and modifiedDate correctly, pushing them into the output array.
  2. Update Title & Meta Format: Changed the wrapper for the regulation title from <h2> to <p><strong> and applied a specific paragraph format for the meta information (<p><strong>{type}日期:</strong>{date}</p>).
  3. Fix History List Styling: Replaced the unordered list (<ul>) with an ordered list (<ol>) for the regulation history section.

How to Test

  1. Apply this branch's version of the plugin in the WordPress admin panel.
  2. Trigger the regulation data sync.
  3. Check the frontend regulation page and verify that the title is displayed correctly along with the last modified date format below it.
  4. Confirm that the history section at the bottom displays a numbered list (1, 2, 3...).

Correct the HTML tag of the regulatory history
section to replace <ul> with <ol> . Because
historical records have a temporal nature, it is
more appropriate to use the semantics of an ordered list.
1. According to current practice, regulation titles
are only output as paragraphs rather than titles.
2. Add HTML rendering of modification information.
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.

1 participant