mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Add automatic anchor symbols using anchorjs
This commit is contained in:
6
_includes/anchorjs.html
Normal file
6
_includes/anchorjs.html
Normal file
@@ -0,0 +1,6 @@
|
||||
<script type="text/javascript">
|
||||
anchors.options = {
|
||||
placement: 'left',
|
||||
};
|
||||
anchors.add('article h2, article h3, article h4, article h5, article h6');
|
||||
</script>
|
||||
@@ -22,4 +22,7 @@
|
||||
|
||||
<!-- RSS -->
|
||||
<link rel="alternate" type="application/atom+xml" title="{{ site.title }}" href="{{ site.baseurl }}/atom.xml">
|
||||
|
||||
<!-- JS -->
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/2.0.0/anchor.min.js"></script>
|
||||
</head>
|
||||
|
||||
Reference in New Issue
Block a user