Skip to content

Commit

Permalink
removed ads
Browse files Browse the repository at this point in the history
  • Loading branch information
NOXITB committed Dec 31, 2023
1 parent 558d2bb commit 98317ee
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 140 deletions.
26 changes: 0 additions & 26 deletions src/components/AdComponent.astro

This file was deleted.

26 changes: 0 additions & 26 deletions src/pages/about.astro
Original file line number Diff line number Diff line change
Expand Up @@ -32,32 +32,6 @@ import Link from "../components/ui/link.astro";
<Link href="/contact" style="primary">Get in touch</Link>
</div>
</div>
<div class="mt-4 flex justify-center">
<div class="hidden lg:block"> <!-- Hide on small devices -->
<script type="text/javascript">
atOptions = {
'key' : 'f80875e48da1c3cf0653a7d4e744cfe8',
'format' : 'iframe',
'height' : 90,
'width' : 728,
'params' : {}
};
document.write('<scr' + 'ipt type="text/javascript" src="//www.profitablecreativeformat.com/f80875e48da1c3cf0653a7d4e744cfe8/invoke.js"></scr' + 'ipt>');
</script>
</div>
<div class="lg:hidden"> <!-- Hide on large devices -->
<script type="text/javascript">
atOptions = {
'key' : 'c30c5cd14eb92657737ffd2556369bb6',
'format' : 'iframe',
'height' : 50,
'width' : 320,
'params' : {}
};
document.write('<scr' + 'ipt type="text/javascript" src="//www.profitablecreativeformat.com/c30c5cd14eb92657737ffd2556369bb6/invoke.js"></scr' + 'ipt>');
</script>
</div>
</div>

</Container>
</Layout>
31 changes: 2 additions & 29 deletions src/pages/allblogs.astro
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import Cat from "../components/cat.astro";
<div class="mb-6"> <!-- Add margin to separate the SearchWidget from posts -->
<SearchWidget />
</div>

<!-- Categories for small/mobile devices -->
<div class="sm:hidden p-4 mt-4 ml-auto w-full max-w-xs"> {/* Hide on screens larger than sm (mobile) */}
<h2 class="text-xl font-semibold">Categories</h2>
Expand All @@ -32,39 +32,12 @@ import Cat from "../components/cat.astro";
))}
</div>
</div>

<div class="grid gap-10 lg:gap-10 md:grid-cols-2">
{latestPosts.map((post) => (
<Postlist post={post} aspect="landscape" preloadImage={true} />
))}
</div>
<div class="mt-4 flex justify-center">
<div class="hidden lg:block"> <!-- Hide on small devices -->
<script type="text/javascript">
atOptions = {
'key' : 'f80875e48da1c3cf0653a7d4e744cfe8',
'format' : 'iframe',
'height' : 90,
'width' : 728,
'params' : {}
};
document.write('<scr' + 'ipt type="text/javascript" src="//www.profitablecreativeformat.com/f80875e48da1c3cf0653a7d4e744cfe8/invoke.js"></scr' + 'ipt>');
</script>
</div>
<div class="lg:hidden"> <!-- Hide on large devices -->
<script type="text/javascript">
atOptions = {
'key' : 'c30c5cd14eb92657737ffd2556369bb6',
'format' : 'iframe',
'height' : 50,
'width' : 320,
'params' : {}
};
document.write('<scr' + 'ipt type="text/javascript" src="//www.profitablecreativeformat.com/c30c5cd14eb92657737ffd2556369bb6/invoke.js"></scr' + 'ipt>');
</script>
</div>
</div>

</main>
</Container>
</Layout>
10 changes: 4 additions & 6 deletions src/pages/blog/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { categories } from "../../data/category";
import Layout from "../../layouts/Layout.astro";
import { getFormattedDate } from "../../utils/all";
import { CollectionEntry, getCollection } from "astro:content";
import AdComponent from "../../components/AdComponent.astro";
import type { Author } from "../../data/authors";
Expand Down Expand Up @@ -111,8 +111,6 @@ const category = categories.find(
</div>


<AdComponent />




Expand All @@ -129,10 +127,10 @@ const category = categories.find(
<span class="text-sm text-gray-500">#{tag}</span>
))
}

</div>
</div>



<h2 class="mt-8 mb-4 text-xl font-semibold">Comments</h2>
Expand All @@ -151,7 +149,7 @@ const category = categories.find(
crossorigin="anonymous"
async>
</script>
<AdComponent />


<div class="flex justify-center mt-7 mb-7">
<a
Expand Down
27 changes: 1 addition & 26 deletions src/pages/category/[category].astro
Original file line number Diff line number Diff line change
Expand Up @@ -45,32 +45,7 @@ export function getStaticPaths() {
<Postlist post={post} aspect="landscape" preloadImage={true} />
))}
</div>
<div class="mt-4 flex justify-center">
<div class="hidden lg:block"> <!-- Hide on small devices -->
<script type="text/javascript">
atOptions = {
'key' : 'f80875e48da1c3cf0653a7d4e744cfe8',
'format' : 'iframe',
'height' : 90,
'width' : 728,
'params' : {}
};
document.write('<scr' + 'ipt type="text/javascript" src="//www.profitablecreativeformat.com/f80875e48da1c3cf0653a7d4e744cfe8/invoke.js"></scr' + 'ipt>');
</script>
</div>
<div class="lg:hidden"> <!-- Hide on large devices -->
<script type="text/javascript">
atOptions = {
'key' : 'c30c5cd14eb92657737ffd2556369bb6',
'format' : 'iframe',
'height' : 50,
'width' : 320,
'params' : {}
};
document.write('<scr' + 'ipt type="text/javascript" src="//www.profitablecreativeformat.com/c30c5cd14eb92657737ffd2556369bb6/invoke.js"></scr' + 'ipt>');
</script>
</div>
</div>


</main>
</Container>
Expand Down
29 changes: 2 additions & 27 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Layout from "../layouts/Layout.astro";
import { latestPosts } from "../utils/content";
import { categories } from "../data/category"; // Import your categories data
import Cat from "../components/cat.astro";
import AdComponent from "@components/AdComponent.astro";
---
<Layout title="Noxcodes Blog Website">
<Container class="flex">
Expand Down Expand Up @@ -64,32 +64,7 @@ import AdComponent from "@components/AdComponent.astro";

</Container>

<div class="mt-4 mb-4 flex justify-center">
<div class="hidden lg:block"> <!-- Hide on small devices -->
<script type="text/javascript">
atOptions = {
'key' : 'f80875e48da1c3cf0653a7d4e744cfe8',
'format' : 'iframe',
'height' : 90,
'width' : 728,
'params' : {}
};
document.write('<scr' + 'ipt type="text/javascript" src="//www.profitablecreativeformat.com/f80875e48da1c3cf0653a7d4e744cfe8/invoke.js"></scr' + 'ipt>');
</script>
</div>
<div class="lg:hidden"> <!-- Hide on large devices -->
<script type="text/javascript">
atOptions = {
'key' : 'c30c5cd14eb92657737ffd2556369bb6',
'format' : 'iframe',
'height' : 50,
'width' : 320,
'params' : {}
};
document.write('<scr' + 'ipt type="text/javascript" src="//www.profitablecreativeformat.com/c30c5cd14eb92657737ffd2556369bb6/invoke.js"></scr' + 'ipt>');
</script>
</div>
</div>



</Layout>

0 comments on commit 98317ee

Please sign in to comment.