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 --- _config.yml | 3 +++ _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 ------------ _layouts/main.html | 6 ++--- _layouts/post.html | 8 +++--- ...std-call-once-bug-in-visual-studio-2012-2013.md | 4 ++- css/common/footer.css | 23 +++++++++++++++++ css/common/misc.css | 6 +++++ css/footer.css | 23 ----------------- css/misc.css | 9 ------- index.html | 2 +- 29 files changed, 210 insertions(+), 203 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 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 f6794b5..f5ab9d6 100644 --- a/_config.yml +++ b/_config.yml @@ -20,6 +20,9 @@ jquery_version: 1.11.3 html5shiv_version: 3.7.2 respond_version: 1.4.2 +project: + name: C++ notes + description: Personal C++ notes baseurl: /cpp-notes repository: egor-tensin/cpp-notes 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/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 %} - - -