refactor: remove ad scripts from views

Cleaned up multiple view files by removing Google AdSense script inclusions.
This commit is contained in:
Rico van Zelst
2025-02-26 22:25:14 +01:00
parent 76d468d1da
commit 45cb08c4d9
9 changed files with 2 additions and 93 deletions

View File

@@ -14,11 +14,6 @@
<meta name="googlebot" content="index, follow">
@endpush
@push('top_scripts')
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4505764048662657"
crossorigin="anonymous"></script>
@endpush
@section('content')
<a href="{{ route('posts.index') }}"
class="block mt-8 text-sm font-medium text-center text-orange-400 uppercase hover:underline">Back
@@ -40,20 +35,15 @@
<h2 class="text-sm italic text-center text-orange-400 not-prose" itemprop="description">
{{ $post->description }}
</h2>
<x-ads.in-article />
<p>
{{ $post->contents }}
</p>
<x-ads.in-article />
<p class="mt-3 text-sm text-center">
Tagged with: <span itemprop="keywords" class="italic">
{{ isset($post->tags) ? implode(', ', $post->tags) : 'League of Legends' }}</span>
</p>
</div>
</article>
@endsection
@push('bottom_scripts')
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
@endpush