diff --git a/assets/templates/default.html b/assets/templates/default.html
index 519d44d..fe3e04a 100644
--- a/assets/templates/default.html
+++ b/assets/templates/default.html
@@ -16,9 +16,9 @@
td { padding: 0em .5em; vertical-align: top }
footer { font-size: small; text-align: right }
/* permalinks */
- h1 a::after, h2 a::after, h3 a::after, h4 a::after, h5 a::after, h6 a::after { content: "¶"; opacity: 0; margin-left: .5em; }
- h1:hover a::after, h2:hover a::after, h3:hover a::after, h4:hover a::after, h5:hover a::after, h6:hover a::after { opacity: 100; }
- h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { text-decoration: none; }
+ h1 a[href^="#"]::after, h2 a[href^="#"]::after, h3 a[href^="#"]::after, h4 a[href^="#"]::after, h5 a[href^="#"]::after, h6 a[href^="#"]::after { content: "¶"; opacity: 0; margin-left: .5em; }
+ h1:hover a[href^="#"]::after, h2:hover a[href^="#"]::after, h3:hover a[href^="#"]::after, h4:hover a[href^="#"]::after, h5:hover a[href^="#"]::after, h6:hover a[href^="#"]::after { opacity: 100; }
+ h1 a[href^="#"], h2 a[href^="#"], h3 a[href^="#"], h4 a[href^="#"], h5 a[href^="#"], h6 a[href^="#"] { text-decoration: none; }