-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add share message and buttons on the top of posts
- Loading branch information
Showing
6 changed files
with
60 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,5 @@ footer: | |
blog: | ||
read_more: "Read More ->" | ||
more_articles: "More Posts" | ||
post: | ||
share: Like it? Share it! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,38 @@ | ||
<!doctype html> | ||
<html lang="{{site.active_lang}}"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<link | ||
href="{{ '/assets/css/dist-style.css' | relative_url }}" | ||
rel="stylesheet" | ||
/> | ||
<link | ||
href="{{ '/assets/css/fonts.css' | relative_url }}" | ||
rel="stylesheet" | ||
/> | ||
{% if site.typewriter_effect %} | ||
<script src="https://unpkg.com/[email protected]/dist/index.umd.js"></script> | ||
{% endif %} {% seo %} {% include custom_head.html %} | ||
</head> | ||
|
||
<body class="bg-white text-gray-700 dark:bg-gray-700 dark:text-slate-100"> | ||
{% if site.typewriter_effect %} | ||
<script> | ||
document.addEventListener("DOMContentLoaded", function () { | ||
new TypeIt("h1", {}).go(); | ||
}); | ||
</script> | ||
{% endif %} {% include navbar.html %} {{ content }} {% include footer.html | ||
%} | ||
<script> | ||
document.querySelectorAll("a").forEach(function (link) { | ||
link.addEventListener("click", function (event) { | ||
event.preventDefault(); // Prevent the default link action temporarily | ||
link.classList.add("gentle-clicked"); | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<link href="{{ '/assets/css/dist-style.css' | relative_url }}" rel="stylesheet" /> | ||
<link href="{{ '/assets/css/fonts.css' | relative_url }}" rel="stylesheet" /> | ||
{% if site.typewriter_effect %} | ||
<script src="https://unpkg.com/[email protected]/dist/index.umd.js"></script> | ||
{% endif %} {% seo %} {% include custom_head.html %} | ||
</head> | ||
|
||
<body class="bg-white text-gray-900 dark:bg-gray-700 dark:text-slate-100"> | ||
{% if site.typewriter_effect %} | ||
<script> | ||
document.addEventListener("DOMContentLoaded", function () { | ||
new TypeIt("h1", {}).go(); | ||
}); | ||
</script> | ||
{% endif %} {% include navbar.html %} {{ content }} {% include footer.html | ||
%} | ||
<script> | ||
document.querySelectorAll("a").forEach(function (link) { | ||
link.addEventListener("click", function (event) { | ||
event.preventDefault(); // Prevent the default link action temporarily | ||
link.classList.add("gentle-clicked"); | ||
|
||
setTimeout(function () { | ||
link.classList.remove("gentle-clicked"); | ||
window.location.href = link.href; // Navigate to the link after the animation | ||
}, 300); // Duration of the gentle bounce animation | ||
}); | ||
setTimeout(function () { | ||
link.classList.remove("gentle-clicked"); | ||
window.location.href = link.href; // Navigate to the link after the animation | ||
}, 300); // Duration of the gentle bounce animation | ||
}); | ||
</script> | ||
</body> | ||
}); | ||
</script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.