@@ -7,7 +7,7 @@ import "@fontsource-variable/source-serif-4";
77import { ClientRouter } from " astro:transitions" ;
88import { SITE } from " @/lib/config" ;
99import type { ArticleMeta , Meta } from " @/lib/types" ;
10- import { GOOGLE_CONFIG , getGATagConfig , getGTMContainerId , hasGoogleAnalytics , hasGoogleTagManager , hasGoogleAdSense } from " @/utils/google-config" ;
10+ import { GOOGLE_CONFIG , hasGoogleAnalytics , hasGoogleTagManager , hasGoogleAdSense } from " @/utils/google-config" ;
1111
1212type Props = {
1313 meta: Meta | ArticleMeta ;
@@ -41,7 +41,7 @@ const OGImage = new URL(meta.ogImage, Astro.url).href;
4141
4242 <!-- Google AdSense -->
4343 { hasGoogleAdSense () && (
44- <script async src = { ` https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${GOOGLE_CONFIG .ADSENSE_CLIENT_ID } ` }
44+ <script is : inline async src = { ` https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${GOOGLE_CONFIG .ADSENSE_CLIENT_ID } ` }
4545 crossorigin = " anonymous" ></script >
4646 )}
4747
@@ -213,7 +213,7 @@ const OGImage = new URL(meta.ogImage, Astro.url).href;
213213 ))}
214214
215215 <!-- Article structured data -->
216- <script type = " application/ld+json" >
216+ <script is : inline type = " application/ld+json" >
217217 { JSON .stringify ({
218218 ' @context' : ' https://schema.org' ,
219219 ' @type' : ' Article' ,
@@ -248,7 +248,7 @@ const OGImage = new URL(meta.ogImage, Astro.url).href;
248248 </script >
249249
250250 <!-- Breadcrumb structured data -->
251- <script type = " application/ld+json" >
251+ <script is : inline type = " application/ld+json" >
252252 { JSON .stringify ({
253253 ' @context' : ' https://schema.org' ,
254254 ' @type' : ' BreadcrumbList' ,
@@ -280,7 +280,7 @@ const OGImage = new URL(meta.ogImage, Astro.url).href;
280280
281281 {
282282 ! isArticleMeta (meta ) && meta .metaTitle ? (
283- <script type = " application/ld+json" >
283+ <script is : inline type = " application/ld+json" >
284284 { JSON .stringify ({
285285 ' @context' : ' https://schema.org' ,
286286 ' @type' : ' WebSite' ,
@@ -292,14 +292,14 @@ const OGImage = new URL(meta.ogImage, Astro.url).href;
292292 name: SITE .title ,
293293 logo: {
294294 ' @type' : ' ImageObject' ,
295- url: new URL (' /favicon.png' , Astro . site ).href ,
295+ url: new URL (' /favicon.png' , SITE . url ).href ,
296296 },
297297 },
298298 potentialAction: {
299299 ' @type' : ' SearchAction' ,
300300 target: {
301301 ' @type' : ' EntryPoint' ,
302- urlTemplate: new URL (' /search?q={search_term_string}' , Astro . site ).href ,
302+ urlTemplate: new URL (' /search?q={search_term_string}' , SITE . url ).href ,
303303 },
304304 ' query-input' : ' required name=search_term_string' ,
305305 },
0 commit comments