Skip to content

Commit

Permalink
update blog handle tag click function
Browse files Browse the repository at this point in the history
Signed-off-by: ryjiang <[email protected]>
  • Loading branch information
shanghaikid committed Nov 30, 2023
1 parent 01f4b5d commit 5ad4ead
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/templates/blogTemplate.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default function Template({ data, pageContext }) {
);

const handleTagClick = tag => {
navigate(`/blog?page=1#${tag}`);
navigate(`/blog?#${tag}`);
};

useEffect(() => {
Expand Down

0 comments on commit 5ad4ead

Please sign in to comment.