-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// src/components/Blog/BacktoBlog.js | ||
import React from 'react'; | ||
import Link from '@docusaurus/Link'; | ||
import styles from './styles.module.scss'; | ||
|
||
|
||
const BackToBlogHub = () => ( | ||
|
||
<Link to="/blog" className={styles.blogHome}> | ||
← Back to Blogs | ||
</Link> | ||
|
||
); | ||
|
||
export default BackToBlogHub; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.blogHome { | ||
text-decoration: none; | ||
font-size: 14px; | ||
position: absolute; | ||
display: block; | ||
left: 32px; | ||
|
||
top: 140px; | ||
color: #525860; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// src/theme/BlogPostPage/index.js | ||
import React from 'react'; | ||
import OriginalBlogPostPage from '@theme-original/BlogPostPage'; | ||
import BackToBlogHub from '../../components/Blog/BacktoBlog'; | ||
|
||
export default function BlogPostPageWrapper(props) { | ||
return ( | ||
<> | ||
<BackToBlogHub /> | ||
<OriginalBlogPostPage {...props} /> | ||
</> | ||
); | ||
} |