Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions public/ads.txt‎
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
google.com, pub-1891953654573817, DIRECT, f08c47fec0942fa0
9 changes: 9 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import ScrollToTopButton from "@/components/ScrolltoTopButton";
import { ThemeProvider } from "@/contexts/ThemeContext";
import { GoogleAnalytics } from "@next/third-parties/google";
import type { Metadata } from "next";
import Script from "next/script";
import Footer from "./_components/common/Footer";
import ThemeScript from "./_components/ThemeScript";
import { pretendard } from "./fonts";
Expand All @@ -15,6 +16,9 @@ export const metadata: Metadata = {
title: "spde3289의 개발 블로그",
description:
"spde3289의 성장을 기록하는 개발 블로그 입니다. 사용자들이 불편함을 느끼는 문제를 빠르게 해결하는 것을 즐기며 다양한 서비스를 운영하고 있습니다.",
other: {
"google-adsense-account": "ca-pub-1891953654573817",
},
};

const RootLayout = ({
Expand All @@ -31,6 +35,11 @@ const RootLayout = ({
className={`${pretendard.className} bg-white dark:bg-neutral-900
dark:text-white/90`}
>
<Script
async
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1891953654573817"
crossOrigin="anonymous"
></Script>
{/* Google Analytics Script */}
{GA_ID && <GoogleAnalytics gaId={GA_ID} />}
<ThemeProvider>
Expand Down
Loading