Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zwbetz-gh/cupper-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/template-dom-scripts.js')
-rw-r--r--assets/js/template-dom-scripts.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/js/template-dom-scripts.js b/assets/js/template-dom-scripts.js
index 75b2af5..c2f6b65 100644
--- a/assets/js/template-dom-scripts.js
+++ b/assets/js/template-dom-scripts.js
@@ -53,7 +53,7 @@
{{ if not .Site.Params.hideHeaderLinks }}
/* Add "link here" links to <h2> headings */
(function () {
- var headings = document.querySelectorAll('main > h2');
+ var headings = document.querySelectorAll('h2, h3, h4, h5, h6');
Array.prototype.forEach.call(headings, function (heading) {
var id = heading.getAttribute('id');