From 860ae3c81409ba0e49c224bc1431e1835d500196 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 25 Jun 2016 03:20:21 +0300 Subject: move common assets to common/, more info to config --- _config.yml | 3 +++ _includes/bootstrap_css.html | 5 ----- _includes/bootstrap_js.html | 5 ----- _includes/common/bootstrap_css.html | 5 +++++ _includes/common/bootstrap_js.html | 5 +++++ _includes/common/footer.html | 25 +++++++++++++++++++++++++ _includes/common/header.html | 29 +++++++++++++++++++++++++++++ _includes/common/ie_compat.html | 11 +++++++++++ _includes/common/jquery.html | 5 +++++ _includes/common/navbar.html | 26 ++++++++++++++++++++++++++ _includes/common/pagination.html | 30 ++++++++++++++++++++++++++++++ _includes/common/sidebar.html | 18 ++++++++++++++++++ _includes/footer.html | 25 ------------------------- _includes/header.html | 30 ------------------------------ _includes/ie_compat.html | 11 ----------- _includes/jquery.html | 5 ----- _includes/navbar.html | 26 -------------------------- _includes/pagination.html | 30 ------------------------------ _includes/sidebar.html | 18 ------------------ _layouts/main.html | 6 +++--- _layouts/plots.html | 4 ++-- _layouts/post.html | 8 ++++---- css/common/footer.css | 23 +++++++++++++++++++++++ css/common/misc.css | 3 +++ css/footer.css | 23 ----------------------- css/misc.css | 3 --- index.html | 2 +- plots.html | 3 ++- 28 files changed, 195 insertions(+), 192 deletions(-) delete mode 100644 _includes/bootstrap_css.html delete mode 100644 _includes/bootstrap_js.html create mode 100644 _includes/common/bootstrap_css.html create mode 100644 _includes/common/bootstrap_js.html create mode 100644 _includes/common/footer.html create mode 100644 _includes/common/header.html create mode 100644 _includes/common/ie_compat.html create mode 100644 _includes/common/jquery.html create mode 100644 _includes/common/navbar.html create mode 100644 _includes/common/pagination.html create mode 100644 _includes/common/sidebar.html delete mode 100644 _includes/footer.html delete mode 100644 _includes/header.html delete mode 100644 _includes/ie_compat.html delete mode 100644 _includes/jquery.html delete mode 100644 _includes/navbar.html delete mode 100644 _includes/pagination.html delete mode 100644 _includes/sidebar.html create mode 100644 css/common/footer.css create mode 100644 css/common/misc.css delete mode 100644 css/footer.css delete mode 100644 css/misc.css diff --git a/_config.yml b/_config.yml index b2ad1f9..c4740ad 100644 --- a/_config.yml +++ b/_config.yml @@ -19,6 +19,9 @@ jquery_version: 1.11.3 html5shiv_version: 3.7.2 respond_version: 1.4.2 +project: + name: Sorting algorithms + description: Getting the hang out of the (sorting) algorithms baseurl: /sorting-algorithms repository: egor-tensin/sorting-algorithms personal_info: diff --git a/_includes/bootstrap_css.html b/_includes/bootstrap_css.html deleted file mode 100644 index f47b856..0000000 --- a/_includes/bootstrap_css.html +++ /dev/null @@ -1,5 +0,0 @@ -{% if site.minified_externals %} - -{% else %} - -{% endif %} diff --git a/_includes/bootstrap_js.html b/_includes/bootstrap_js.html deleted file mode 100644 index e724257..0000000 --- a/_includes/bootstrap_js.html +++ /dev/null @@ -1,5 +0,0 @@ -{% if site.minified_externals %} - -{% else %} - -{% endif %} diff --git a/_includes/common/bootstrap_css.html b/_includes/common/bootstrap_css.html new file mode 100644 index 0000000..f47b856 --- /dev/null +++ b/_includes/common/bootstrap_css.html @@ -0,0 +1,5 @@ +{% if site.minified_externals %} + +{% else %} + +{% endif %} diff --git a/_includes/common/bootstrap_js.html b/_includes/common/bootstrap_js.html new file mode 100644 index 0000000..e724257 --- /dev/null +++ b/_includes/common/bootstrap_js.html @@ -0,0 +1,5 @@ +{% if site.minified_externals %} + +{% else %} + +{% endif %} diff --git a/_includes/common/footer.html b/_includes/common/footer.html new file mode 100644 index 0000000..0273971 --- /dev/null +++ b/_includes/common/footer.html @@ -0,0 +1,25 @@ + + + + + {% include common/jquery.html %} + {% include common/bootstrap_js.html %} + + diff --git a/_includes/common/header.html b/_includes/common/header.html new file mode 100644 index 0000000..c21b442 --- /dev/null +++ b/_includes/common/header.html @@ -0,0 +1,29 @@ + + + + + + + + {{ page.title }} - {{ site.project.name }} - {{ site.personal_info.name }} + + {% include common/bootstrap_css.html %} + + + + + {% if page.custom_css %} + {% for css in page.custom_css %} + + {% endfor %} + {% endif %} + + {% include common/ie_compat.html %} + + + - {% include jquery.html %} - {% include bootstrap_js.html %} - - diff --git a/_includes/header.html b/_includes/header.html deleted file mode 100644 index 29a2729..0000000 --- a/_includes/header.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - {{ page.title }} - Sorting algorithms - {{ site.personal_info.name }} - - {% include bootstrap_css.html %} - - - - - - {% if page.custom_css %} - {% for css in page.custom_css %} - - {% endfor %} - {% endif %} - - {% include ie_compat.html %} - - -