From 7f02962f5502bb581f0b50d534be0bcea0a739b2 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 25 Jun 2016 02:13:47 +0300 Subject: move common assets to common/, more info to config --- _includes/bootstrap_css.html | 5 ----- _includes/bootstrap_js.html | 5 ----- _includes/comments.html | 15 --------------- _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 | 16 ++++++++++++++++ _includes/footer.html | 25 ------------------------- _includes/header.html | 24 ------------------------ _includes/ie_compat.html | 11 ----------- _includes/jquery.html | 5 ----- _includes/navbar.html | 26 -------------------------- _includes/pagination.html | 30 ------------------------------ _includes/posts/comments.html | 15 +++++++++++++++ _includes/sidebar.html | 16 ---------------- 20 files changed, 167 insertions(+), 162 deletions(-) delete mode 100644 _includes/bootstrap_css.html delete mode 100644 _includes/bootstrap_js.html delete mode 100644 _includes/comments.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 create mode 100644 _includes/posts/comments.html delete mode 100644 _includes/sidebar.html (limited to '_includes') 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/comments.html b/_includes/comments.html deleted file mode 100644 index f16a70c..0000000 --- a/_includes/comments.html +++ /dev/null @@ -1,15 +0,0 @@ -{% if site.include_comments %} -
- - -{% 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..9ff7838 --- /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 3794583..0000000 --- a/_includes/header.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - {{ page.title }} - C++ notes - {{ site.personal_info.name }} - - {% include bootstrap_css.html %} - - - - - - {% include ie_compat.html %} - - -