Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalscodes committed Oct 27, 2024
1 parent fba3879 commit ab0d35f
Show file tree
Hide file tree
Showing 6 changed files with 432 additions and 930 deletions.
25 changes: 1 addition & 24 deletions _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@
});
});
</script>

<script>
if (window.netlifyIdentity) {
window.netlifyIdentity.on("init", (user) => {
Expand All @@ -325,26 +324,4 @@
image.classList.add("nightowl-daylight"); // You can customize the class name here
}
});
</script> -->
<script defer>
let darkmode = localStorage.getItem("darkmode");
const themeSwitch = document.getElementById("theme-switch");

const enableDarkmode = () => {
document.body.classList.add("darkmode");
localStorage.setItem("darkmode", "active");
};

const disableDarkmode = () => {
document.body.classList.remove("darkmode");
localStorage.setItem("darkmode", null);
};

if (darkmode === "active") enableDarkmode();

themeSwitch.addEventListener("click", () => {
darkmode = localStorage.getItem("darkmode");
darkmode !== "active" ? enableDarkmode() : disableDarkmode();
});

</script>
</script> -->
2 changes: 1 addition & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/>
<meta name="description" content="{{ site.description }}" />
<meta name="keywords" content="{{ site.keyword }}" />
<!-- <meta name="theme-color" content="{{ site.chrome-tab-theme-color }}" /> -->
<meta name="theme-color" content="{{ site.chrome-tab-theme-color }}" />

<!-- Open Graph -->
<meta
Expand Down
2 changes: 1 addition & 1 deletion _includes/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<form></form>
<input type="text" id="search-input" placeholder="Search...">
<input type="text" id="search-input" placeholder="$ grep...">
</form>
<div id="search-results" class="mini-post-list"></div>
</div>
Expand Down
Loading

0 comments on commit ab0d35f

Please sign in to comment.