Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Fix Incorrect Default Title in Page Source #1352

Merged
merged 6 commits into from
May 27, 2024
Merged

Conversation

Aibono1225
Copy link
Member

@Aibono1225 Aibono1225 commented May 22, 2024

Relates to #1333

This PR fixes the issue where the default <title> in the page source was incorrect for some pages.

image
Figure: Orphaned Rule

image
Figure: Homepage

@Aibono1225 Aibono1225 changed the title Set correct titles when generating pages 馃悰 Fix Incorrect Default Title in Page Source May 22, 2024
@Aibono1225 Aibono1225 marked this pull request as ready for review May 23, 2024 03:02
JackDevAU
JackDevAU previously approved these changes May 23, 2024
Comment on lines 22 to 29
const titles = {
'/latest-rules/': 'Latest Rules',
'/user/': 'User Rules',
'/orphaned/': 'Orphaned Rules',
'/archived/': 'Archived Rules',
'/profile/': 'Profile',
};

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be worth moving this to a config file?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done 馃槈

Comment on lines 1 to 9
const titles = {
'/latest-rules/': 'Latest Rules',
'/user/': 'User Rules',
'/orphaned/': 'Orphaned Rules',
'/archived/': 'Archived Rules',
'/profile/': 'Profile',
};

export default titles;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we move this to https://github.com/SSWConsulting/SSW.Rules/blob/main/site-config.js

Just so its all in one spot?

@Aibono1225 Aibono1225 enabled auto-merge (squash) May 27, 2024 02:06
@Aibono1225 Aibono1225 merged commit aefdeb8 into main May 27, 2024
5 checks passed
@Aibono1225 Aibono1225 deleted the fix-default-title branch May 27, 2024 02:26
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.

None yet

2 participants