From f412ba6263e9f32c8e120b1f6af5293cd52e8aef Mon Sep 17 00:00:00 2001 From: nc Date: Sun, 19 Feb 2023 12:28:33 +0700 Subject: [PATCH] edit content --- contents/2023-02-11-Scuffed_server.mdx | 5 ++++- src/pages/Layout/index.tsx | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/contents/2023-02-11-Scuffed_server.mdx b/contents/2023-02-11-Scuffed_server.mdx index 217a113..4f016b8 100644 --- a/contents/2023-02-11-Scuffed_server.mdx +++ b/contents/2023-02-11-Scuffed_server.mdx @@ -117,6 +117,9 @@ uwsgi /path/to/uwsgi.ini then i added the isso script to my gatsby component ```javascript +import { Script } from "gatsby"; +// ... + const Comment = ({post_id}) => { return ( <> @@ -139,7 +142,7 @@ const Comment = ({post_id}) => {
-
+
{post.date} diff --git a/src/pages/Layout/index.tsx b/src/pages/Layout/index.tsx index 04aa51b..e5a2c65 100644 --- a/src/pages/Layout/index.tsx +++ b/src/pages/Layout/index.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useState } from "react"; +import React from "react"; import { graphql, Script } from "gatsby"; import config from '../../../data/site-config'; import Base from "../../components/Base";