Commit 3a79defe authored by Kaushal Modi's avatar Kaushal Modi

Apply headline hashes

parent 1e031a82
......@@ -15,7 +15,7 @@
{{ end }}
<div class="content">
{{ .Content }}
{{ .Content | replaceRE "(<h[2-9] id=\"([^\"]+)\".+)(</h[2-9]+>)" "${1}&nbsp;&nbsp;<a class=\"headline-hash\" href=\"#${2}\">#</a> ${3}" | safeHTML }}
</div>
</div>
......
......@@ -27,6 +27,7 @@
/* body */
/* h1 */
/* h2-h6 */
/* Headline Hashes */
/* Block quotes */
/* Horizontal Rule */
/* Floats */
......@@ -1122,6 +1123,15 @@ h6 {
color: var(--title-heading-color);
}
/* *** Headline Hashes */
.headline-hash,
.headline-hash:hover {
color: var(--theme-color);
}
.headline-hash:hover {
opacity: 0.75;
}
/* Set the fonts of post titles in summaries similar to that of h1 */
/* Post titles in the post summaries on index.html*/
/* and post lists for a particular category. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment