Skip to content

Commit

Permalink
Version-07: Support for Search & Addition of Ads
Browse files Browse the repository at this point in the history
Version-07: Support for Search & Addition of Ads
  • Loading branch information
rafay99-epic committed Oct 31, 2023
2 parents 24ac548 + 2fa9933 commit 00a0b34
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 24 deletions.
10 changes: 8 additions & 2 deletions config/_default/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,18 @@ enableRobotsTXT = true
weight = 6
pre = "<span data-feather='book-open'></span>"

[[menu.main]]
identifier = "Search"
url = "/search"
weight = 7
pre = "<span data-feather='search'></span>"

# Github Link
[[menu.main]]
identifier = "github"
url = "https://github.com/rafay99-epic"
weight = 7
pre = "<span data-feather='github'></span>"
weight = 8
pre = "<span data-feather='github'></span>"

# Drop Down Menu Components
[[menu.dropdown]]
Expand Down
10 changes: 8 additions & 2 deletions config/production/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,18 @@ enableRobotsTXT = true
weight = 6
pre = "<span data-feather='book-open'></span>"

[[menu.main]]
identifier = "Search"
url = "/search"
weight = 7
pre = "<span data-feather='search'></span>"

# Github Link
[[menu.main]]
identifier = "github"
url = "https://github.com/rafay99-epic"
weight = 7
pre = "<span data-feather='github'></span>"
weight = 8
pre = "<span data-feather='github'></span>"

# Drop Down Menu Components
[[menu.dropdown]]
Expand Down
15 changes: 15 additions & 0 deletions content/pages/search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
draft: false
type: "page"
description: "Search Blog Post"
url: /search/
---

<link href="/pagefind/pagefind-ui.css" rel="stylesheet">
<script src="/pagefind/pagefind-ui.js"></script>
<div id="search"></div>
<script>
window.addEventListener('DOMContentLoaded', (event) => {
new PagefindUI({ element: "#search", showSubResults: true });
});
</script>
12 changes: 0 additions & 12 deletions themes/gokarna/layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@
<!-- Awesome Fonts Version 5 -->
<script src="https://kit.fontawesome.com/4151751d46.js" crossorigin="anonymous"></script>

<!-- Rafay99 Account Google Ads -->
<!--- Google Ads -->
<!-- <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2480387803052595" crossorigin="anonymous"></script> -->

<!-- Google tag (gtag.js) ---->
<script async defer src="https://www.googletagmanager.com/gtag/js?id=G-HSKPE7HLQL"></script>
<script defer>
Expand All @@ -68,15 +64,7 @@

gtag('config', 'G-HSKPE7HLQL');
</script>

<!-- Future Insight Google Ads -->
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9499607095405263"
crossorigin="anonymous"></script>

<!--adsterra Ads -->
<!-- <script async="async" data-cfasync="false" src="//pl21136027.toprevenuegate.com/9995e385d4f7649e154699c3ca21d924/invoke.js"></script> -->
<!-- <div id="container-9995e385d4f7649e154699c3ca21d924"></div> -->

<!-- Links for title icons -->
<link rel="apple-touch-icon" sizes="180x180" href="/images/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon/favicon-32x32.png">
Expand Down
5 changes: 1 addition & 4 deletions themes/gokarna/layouts/partials/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,8 @@ <h1>{{ .Title }}</h1>
crossorigin="anonymous"
async>
</script>

<!-- adsterra ad place
<script async="async" data-cfasync="false" src="//pl21136027.toprevenuegate.com/9995e385d4f7649e154699c3ca21d924/invoke.js"></script>
<div id="container-9995e385d4f7649e154699c3ca21d924"></div> -->

<!-- Ads for the website -->
<script async="async" data-cfasync="false" src="//pl21136027.toprevenuegate.com/9995e385d4f7649e154699c3ca21d924/invoke.js"></script>
<div id="container-9995e385d4f7649e154699c3ca21d924"></div>

Expand Down
4 changes: 0 additions & 4 deletions themes/gokarna/layouts/partials/toc.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,3 @@
</nav>
</aside>
{{ end }}

<!-- adsterra ad place -->
<script async="async" data-cfasync="false" src="//pl21136027.toprevenuegate.com/9995e385d4f7649e154699c3ca21d924/invoke.js"></script>
<div id="container-9995e385d4f7649e154699c3ca21d924"></div>

0 comments on commit 00a0b34

Please sign in to comment.