diff --git a/_includes/css-selector.html b/_includes/css-selector.html new file mode 100644 index 0000000..da7e668 --- /dev/null +++ b/_includes/css-selector.html @@ -0,0 +1,54 @@ + + +{% if page.layout == 'home' %} + + + +{% elsif page.layout == 'page' %} + + {% if page.title == 'Categories' %} + + + + + {% elsif page.title == 'Tags' %} + + + + + {% elsif page.title == 'Archives' %} + + + + + {% else %} + + + + + {% endif %} + +{% elsif page.layout == 'category' or page.layout == 'tag' %} + + + + +{% elsif page.layout == 'post' %} + + + + + {% if site.toc and page.toc %} + + + + + {% endif %} + +{% endif %} diff --git a/_includes/head.html b/_includes/head.html index fe6af2a..66be468 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -44,7 +44,6 @@ - @@ -54,56 +53,12 @@ integrity="sha256-LA89z+k9fjgMKQ/kq4OO2Mrf8VltYml/VES+Rg0fh20=" crossorigin="anonymous"> - - - - - {% if page.layout == 'home' %} - - - - {% elsif page.layout == 'page' %} - - {% if page.title == 'Categories' %} - - - - {% elsif page.title == 'Tags' %} - - - - {% elsif page.title == 'Archives' %} - - - - {% else %} - - - - {% endif %} - - {% elsif page.layout == 'category' or page.layout == 'tag' %} - - - - {% elsif page.layout == 'post' %} - - - - {% if site.toc and page.toc %} - - - {% endif %} - - {% endif %} + {% include css-selector.html %} diff --git a/assets/lib/bootstrap-toc-1.0.1/bootstrap-toc.min.css b/assets/css/lib/bootstrap-toc.min.css similarity index 100% rename from assets/lib/bootstrap-toc-1.0.1/bootstrap-toc.min.css rename to assets/css/lib/bootstrap-toc.min.css