Add Gruvbox share theme + blog system for Trilium (anonymized)
Blog generator, publish manager, share scripts, theme CSS, highlight.js bundles, font, favicon, templates and generated-reference outputs, plus an English installation guide.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<script>
|
||||
(function () {
|
||||
document.addEventListener("click", function (e) {
|
||||
if (e.defaultPrevented) return;
|
||||
var card = e.target.closest(".blog-post");
|
||||
if (!card) return;
|
||||
if (e.target.closest("a")) return;
|
||||
var link = card.querySelector(".blog-post-title a");
|
||||
if (!link) return;
|
||||
e.preventDefault();
|
||||
window.location.href = link.getAttribute("href");
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
Reference in New Issue
Block a user