fix(blog): close #66
This commit is contained in:
parent
77862c61c5
commit
7065c4cc18
1 changed files with 3 additions and 0 deletions
|
@ -33,6 +33,9 @@ export default function Page() {
|
|||
useMeta({ property: "og:title", content: pageData?.title })
|
||||
|
||||
useEffect(() => {
|
||||
setPageData(undefined)
|
||||
setLoading(true)
|
||||
|
||||
const content_id = location.replace(/\/$/, "") // remove trailing slash
|
||||
|
||||
fetchContent(content_id).then((fetched_content) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue