insert toc before article and swap position w/ flexbox to avoid reflow on load
authorDan Allen <dan@opendevise.com>
Tue, 22 Dec 2020 21:18:06 +0000 (14:18 -0700)
committerDan Allen <dan@opendevise.com>
Tue, 22 Dec 2020 21:18:06 +0000 (14:18 -0700)
src/css/main.css
src/partials/main.hbs

index 40dd045..baf3424 100644 (file)
@@ -17,6 +17,7 @@
 
   main > .content {
     display: flex;
+    flex-direction: row-reverse;
   }
 
   aside.toc.embedded {
index f29cfc3..d3e2411 100644 (file)
@@ -4,8 +4,8 @@
 {{#if (eq page.layout '404')}}
 {{> article-404}}
 {{else}}
-{{> article}}
 {{> toc}}
+{{> article}}
 {{/if}}
   </div>
 </main>