From acf78ebd7b5ebf536d365496d9c3fc332204e448 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Tue, 8 Feb 2022 13:12:14 +0800 Subject: [PATCH] googleAdsense --- components/Comment.js | 2 +- themes/Medium/LayoutSlug.js | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/components/Comment.js b/components/Comment.js index a1cc1c04..4ceb0884 100644 --- a/components/Comment.js +++ b/components/Comment.js @@ -26,7 +26,7 @@ const CusdisComponent = dynamic( const Comment = ({ frontMatter }) => { const router = useRouter() return ( -
+
{BLOG.COMMENT_CUSDIS_APP_ID && (
diff --git a/themes/Medium/LayoutSlug.js b/themes/Medium/LayoutSlug.js index fa1b5b8f..cb6ef8c6 100644 --- a/themes/Medium/LayoutSlug.js +++ b/themes/Medium/LayoutSlug.js @@ -86,6 +86,16 @@ export const LayoutSlug = (props) => { /> )} +
+ {/* 文章内嵌广告 */} + +