From 3b9b9244abde2cb165a0251d3979512a2d905843 Mon Sep 17 00:00:00 2001 From: jpg619 Date: Wed, 8 Oct 2025 10:53:10 -0400 Subject: [PATCH 1/2] [Fix]: Enhance link component to support underline styling and improve last edited information display --- src/components/link.js | 11 ++++++++--- src/components/page-footer.js | 10 ++++++++-- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/src/components/link.js b/src/components/link.js index c6ea6db8881..208ac07d81d 100644 --- a/src/components/link.js +++ b/src/components/link.js @@ -26,14 +26,19 @@ const GatsbyLinkWithoutSxProps = React.forwardRef(function GatsbyLinkWithoutSxPr return }) -const Link = React.forwardRef(function Link({to, href, ...props}, ref) { +const Link = React.forwardRef(function Link({to, href, showUnderline = false, sx, ...props}, ref) { const localPath = getLocalPath(href) + const linkStyles = { + ...sx, + ...(showUnderline && {textDecoration: 'underline'}), + } + if (to || localPath !== null) { - return + return } - return + return }) export const LinkNoUnderline = React.forwardRef(function LinkNoUnderline({sx, ...props}, ref) { diff --git a/src/components/page-footer.js b/src/components/page-footer.js index 96f0b692477..74eaa5c51f6 100644 --- a/src/components/page-footer.js +++ b/src/components/page-footer.js @@ -46,8 +46,14 @@ const Contributors = ({contributors = [], latestCommit}) => { {latestCommit ? ( - Last edited by {latestCommit.login} on{' '} - {format(new Date(latestCommit.date))} + Last edited by{' '} + + {latestCommit.login} + {' '} + on{' '} + + {format(new Date(latestCommit.date))} + ) : null} From 7cafceb4e1947003ded42366aaec6023309651df Mon Sep 17 00:00:00 2001 From: jpg619 Date: Wed, 8 Oct 2025 13:06:45 -0400 Subject: [PATCH 2/2] [Fix]: Update TableOfContents component to apply underline styling to NavList --- src/components/table-of-contents.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/table-of-contents.js b/src/components/table-of-contents.js index ed2acb5a77e..c0c11bf7167 100644 --- a/src/components/table-of-contents.js +++ b/src/components/table-of-contents.js @@ -26,7 +26,14 @@ const TableOfContentsItems = ({items, depth}) => ( ) const TableOfContents = ({'aria-labelledby': ariaLabelledBy, items, depth = 1, ...props}) => ( - + )