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 })
|
useMeta({ property: "og:title", content: pageData?.title })
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
setPageData(undefined)
|
||||||
|
setLoading(true)
|
||||||
|
|
||||||
const content_id = location.replace(/\/$/, "") // remove trailing slash
|
const content_id = location.replace(/\/$/, "") // remove trailing slash
|
||||||
|
|
||||||
fetchContent(content_id).then((fetched_content) => {
|
fetchContent(content_id).then((fetched_content) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue