-
-
Notifications
You must be signed in to change notification settings - Fork 10k
Refactor SEO meta tag processors and update help texts for ui #7665
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #7665 +/- ##
============================================
- Coverage 59.55% 59.54% -0.02%
+ Complexity 3812 3801 -11
============================================
Files 677 678 +1
Lines 23248 23230 -18
Branches 1500 1491 -9
============================================
- Hits 13846 13832 -14
+ Misses 8764 8757 -7
- Partials 638 641 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refactors SEO meta tag generation to be more targeted and improves user interface help text clarity. The changes optimize SEO tags by restricting site-level metadata to homepage only and adding category-specific descriptions.
Key changes:
- Moved site description and keywords from global to index-only scope
- Added meta description tags for category archive pages using category descriptions
- Updated help text in UI locales to clarify SEO functionality and usage
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 6 comments.
Show a summary per file
File | Description |
---|---|
IndexSeoProcessor.java | New processor that handles SEO meta tags specifically for the homepage |
GlobalSeoProcessor.java | Refactored to only handle robots meta tag for blocking search engines |
CategorySeoProcessor.java | New processor that adds meta description tags for category pages |
system-setting.yaml | Updated help text for SEO settings to clarify their scope and usage |
zh-CN.yaml, zh-TW.yaml, en.yaml | Corrected help text translations and added SEO-related descriptions |
HaloProcessorDialectTest.java | Updated test to reflect new SEO processor structure |
application/src/main/java/run/halo/app/theme/dialect/GlobalSeoProcessor.java
Outdated
Show resolved
Hide resolved
application/src/main/java/run/halo/app/theme/dialect/IndexSeoProcessor.java
Show resolved
Hide resolved
application/src/main/java/run/halo/app/theme/dialect/IndexSeoProcessor.java
Show resolved
Hide resolved
application/src/main/java/run/halo/app/theme/dialect/CategorySeoProcessor.java
Outdated
Show resolved
Hide resolved
I suggest defining a specification about how to set meta description in Halo core or in plugins. For example, we can resolve a variable name |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JohnNiang The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/area core
/kind improvement
/milestone 2.21.x
What this PR does / why we need it:
This PR optimizes SEO tag generation with the following changes:
Which issue(s) this PR fixes:
Fixes #7662
Does this PR introduce a user-facing change?