Repos / hi.imnhan.com / 934a44c7f7
commit 934a44c7f7e14202ef64dd1977ae46ff0a6b3633
Author: Nhân <hi@imnhan.com>
Date:   Mon Feb 13 20:38:54 2023 +0700

    show header links on hover

diff --git a/nhanb-theme/static/css/main.css b/nhanb-theme/static/css/main.css
index 8ead5f5..c5c0623 100644
--- a/nhanb-theme/static/css/main.css
+++ b/nhanb-theme/static/css/main.css
@@ -26,6 +26,16 @@ button {
   padding: 0.2rem;
 }
 
+a.headerlink {
+    margin-left: 0.5rem;
+    text-decoration: none;
+    visibility: hidden;
+}
+
+*:hover > a.headerlink {
+    visibility: visible;
+}
+
 a {
   color: var(--link-color);
   text-decoration-skip-ink: none;
diff --git a/pelicanconf.py b/pelicanconf.py
index 2a65605..4dd936e 100644
--- a/pelicanconf.py
+++ b/pelicanconf.py
@@ -19,6 +19,7 @@
         "markdown.extensions.extra": {},
         "markdown.extensions.meta": {},
         "smarty": {},
+        "toc": {"permalink": "$"},
     },
     "output_format": "html5",
 }