This repository contains a version of my personal website and blog built on Docusaurus. The site hosts my occasionally updated blog and links to documentation in my other repositories.
Provide a brief description about why this PR is necessary. Be sure to provide context.
This PR moves tags to the top of blog posts and docs. The tags feature exists natively for pages in the blog and docs folders, but the tags appear at the bottom of pages. Some customization is needed to move the tags to the top of pages, which this PR addresses.
Related issues and/or PRs
Add a link to any existing issues and/or PRs. Or, write N/A if no related issues and/or PRs exist.
N/A
Changes made
Outline the specific changes made in this pull request in the form of a bulleted list. Include relevant details, such as added features, bug fixes, code refactoring, or improvements.
Swizzled the @docusaurus/theme-classic theme:
Removed the tags from the bottom of the page in DocItem/Footer and BlogPostItem/Footer.
Added tags to the top of the page in DocVersionBadge and BlogPostItem/Header.
Added styles for tags.
Checklist
The following is a best-effort checklist. If any items in this checklist are not applicable to this PR, add N/A after each item.
Documentation
[ ] I have updated the side navigation as necessary. N/A
[ ] I have updated the documentation to reflect the changes. N/A
[ ] I have documented or updated any remaining open issues linked to this PR in GitHub, Obsidian, etc. N/A
Build, deploy, and test
[ ] I have merged and published any dependent changes in other PRs. N/A
[x] I have commented my code, particularly in hard-to-understand areas.
[x] I have checked that my changes look as expected on a locally built version of the docs site.
Description
This PR moves tags to the top of blog posts and docs. The tags feature exists natively for pages in the
blog
anddocs
folders, but the tags appear at the bottom of pages. Some customization is needed to move the tags to the top of pages, which this PR addresses.Related issues and/or PRs
N/A
Changes made
@docusaurus/theme-classic
theme:DocItem/Footer
andBlogPostItem/Footer
.DocVersionBadge
andBlogPostItem/Header
.Checklist
Documentation
N/A
N/A
N/A
Build, deploy, and test
N/A