Skip to content

Commit

Permalink
Merge pull request #4 from mheland/TOC-header
Browse files Browse the repository at this point in the history
Header on TOC
mheland authored Jul 20, 2023
2 parents 5cde77e + 45cbdcc commit 4e2c55d
Showing 4 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion assets/built/tocbot.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/built/tocbot.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion assets/css/tocbot.css
Original file line number Diff line number Diff line change
@@ -87,6 +87,12 @@ a.toc-link {
Here is an update!
*/


.tocheader {
background-color: lightslategray;
color: whitesmoke;
padding: 3px;
border-radius: 2px;
text-align: center;
}


10 changes: 6 additions & 4 deletions custom-post-with-TOC.hbs
Original file line number Diff line number Diff line change
@@ -55,9 +55,11 @@
</div>
</article>
</div>
<nav class="column is-block is-hidden-touch toc js-toc toc-right">

<div class="column is-block toc">
<div class="tocheader is-montserrat">Table of contents</div>
<nav class="column is-block is-hidden-touch toc js-toc toc-right">
</nav>
</div>
</div>
</section>

@@ -73,8 +75,8 @@

<!-- TOCBOT BEGIN -->

<script src="{{asset 'js/tocbot.min.js'}}"></script>
<link rel="stylesheet" href="{{asset 'css/tocbot.css'}}">
<script src="{{asset 'built/tocbot.min.js'}}"></script>
<link rel="stylesheet" href="{{asset 'built/tocbot.css'}}">


<script>

0 comments on commit 4e2c55d

Please sign in to comment.