Skip to content

Commit 9f2f00d

Browse files
authored
resolves #51 insert toc before article and position w/ flexbox to avoid reflow on load (PR #52)
1 parent af63291 commit 9f2f00d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/css/main.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
}
2424

2525
aside.toc.sidebar {
26+
order: 1;
2627
flex: 0 0 var(--toc-width);
2728
}
2829
}

src/partials/main.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
{{#if (eq page.layout '404')}}
55
{{> article-404}}
66
{{else}}
7-
{{> article}}
87
{{> toc}}
8+
{{> article}}
99
{{/if}}
1010
</div>
1111
</main>

0 commit comments

Comments
 (0)