Skip to content

Commit

Permalink
because h1 moved to a different div, reset h2counter with body
Browse files Browse the repository at this point in the history
  • Loading branch information
jwcxz committed Feb 27, 2018
1 parent 063165d commit 40db6a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/style/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ h2, h3, h4, h5, h6 {

/* from: https://gist.github.com/joshbode/491ad0e678d456ea8ddc */
/* automatic heading numbering */
h1 { counter-reset: h2counter; }
body { counter-reset: h2counter; }
h2 { counter-reset: h3counter; }
h3 { counter-reset: h4counter; }
h4 { counter-reset: h5counter; }
Expand Down

0 comments on commit 40db6a2

Please sign in to comment.