Skip to content
This repository was archived by the owner on Aug 20, 2019. It is now read-only.

Commit 4053bd0

Browse files
committed
add links to anchors
1 parent 5481ba9 commit 4053bd0

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

_includes/head.html

+6
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,18 @@
8181
<meta name="twitter:image" content="{{ site.sharing_image | prepend: '/img' | prepend: site.url }}" />
8282
{% endif %}
8383

84+
<script src="/anchor.min.js"></script>
85+
8486
<script>
8587

8688
'use strict';
8789

8890
~function() {
8991

92+
document.addEventListener('DOMContentLoaded', function() {
93+
anchors.add();
94+
});
95+
9096
if (!'serviceWorker' in navigator)
9197
return;
9298

anchor.min.js

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/main.scss

+4
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ a, a:link, a:visited {
6969
color: inherit;
7070
}
7171

72+
.anchorjs-link {
73+
text-decoration: none !important
74+
}
75+
7276
iframe {
7377
border: 0;
7478
}

service-worker.js

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ var fontCacheName = 'fonts-gistatic-com';
99
var filesToCache = [
1010

1111
'/css/main.css',
12+
'/anchor.min.js',
1213
'/img/back-caret.svg',
1314
'/img/favicon-144.png',
1415
'/img/favicon-192.png',

0 commit comments

Comments
 (0)