aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes/common
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-06-25 02:13:47 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-06-25 02:13:47 +0300
commit7f02962f5502bb581f0b50d534be0bcea0a739b2 (patch)
tree43a1cd08cbb888e674e0333a054da787ce8c1599 /_includes/common
parentREADME update (diff)
downloadblog-7f02962f5502bb581f0b50d534be0bcea0a739b2.tar.gz
blog-7f02962f5502bb581f0b50d534be0bcea0a739b2.zip
move common assets to common/, more info to config
Diffstat (limited to '')
-rw-r--r--_includes/common/bootstrap_css.html (renamed from _includes/bootstrap_css.html)0
-rw-r--r--_includes/common/bootstrap_js.html (renamed from _includes/bootstrap_js.html)0
-rw-r--r--_includes/common/footer.html (renamed from _includes/footer.html)4
-rw-r--r--_includes/common/header.html29
-rw-r--r--_includes/common/ie_compat.html (renamed from _includes/ie_compat.html)0
-rw-r--r--_includes/common/jquery.html (renamed from _includes/jquery.html)0
-rw-r--r--_includes/common/navbar.html (renamed from _includes/navbar.html)0
-rw-r--r--_includes/common/pagination.html (renamed from _includes/pagination.html)0
-rw-r--r--_includes/common/sidebar.html (renamed from _includes/sidebar.html)6
9 files changed, 34 insertions, 5 deletions
diff --git a/_includes/bootstrap_css.html b/_includes/common/bootstrap_css.html
index f47b856..f47b856 100644
--- a/_includes/bootstrap_css.html
+++ b/_includes/common/bootstrap_css.html
diff --git a/_includes/bootstrap_js.html b/_includes/common/bootstrap_js.html
index e724257..e724257 100644
--- a/_includes/bootstrap_js.html
+++ b/_includes/common/bootstrap_js.html
diff --git a/_includes/footer.html b/_includes/common/footer.html
index f3cbb38..9ff7838 100644
--- a/_includes/footer.html
+++ b/_includes/common/footer.html
@@ -19,7 +19,7 @@
</footer>
</div>
</div>
- {% include jquery.html %}
- {% include bootstrap_js.html %}
+ {% include common/jquery.html %}
+ {% include common/bootstrap_js.html %}
</body>
</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 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+
+ <title>{{ page.title }} - {{ site.project.name }} - {{ site.personal_info.name }}</title>
+
+ {% include common/bootstrap_css.html %}
+
+ <link rel="stylesheet" href="{{ site.baseurl }}/css/common/footer.css">
+ <link rel="stylesheet" href="{{ site.baseurl }}/css/common/misc.css">
+
+ {% if page.custom_css %}
+ {% for css in page.custom_css %}
+ <link rel="stylesheet" href="{{ site.baseurl }}/css/{{ css }}"/>
+ {% endfor %}
+ {% endif %}
+
+ {% include common/ie_compat.html %}
+ </head>
+ <body>
+ <div class="top-level-footer-wrapper">
+ <div class="footer-wrapper-collapse">
+ {% include common/navbar.html %}
+ </div>
+ <div class="footer-wrapper-expand">
+ <div class="container">
diff --git a/_includes/ie_compat.html b/_includes/common/ie_compat.html
index 3cef67d..3cef67d 100644
--- a/_includes/ie_compat.html
+++ b/_includes/common/ie_compat.html
diff --git a/_includes/jquery.html b/_includes/common/jquery.html
index aa6d2fd..aa6d2fd 100644
--- a/_includes/jquery.html
+++ b/_includes/common/jquery.html
diff --git a/_includes/navbar.html b/_includes/common/navbar.html
index af4a1c5..af4a1c5 100644
--- a/_includes/navbar.html
+++ b/_includes/common/navbar.html
diff --git a/_includes/pagination.html b/_includes/common/pagination.html
index aa2f034..aa2f034 100644
--- a/_includes/pagination.html
+++ b/_includes/common/pagination.html
diff --git a/_includes/sidebar.html b/_includes/common/sidebar.html
index d00fc7a..4637244 100644
--- a/_includes/sidebar.html
+++ b/_includes/common/sidebar.html
@@ -1,6 +1,6 @@
<h4>About the project</h4>
-<p>Personal C++ notes. Feel free to contribute or contact me.</p>
-<div class="list-group reasonable-width">
+<p>{{ site.project.description }}. Feel free to contribute or contact me.</p>
+<div class="list-group wide-enough">
<a class="list-group-item" href="{{ site.github.repository_url }}"><span class="glyphicon glyphicon-home"></span>&nbsp;GitHub repository</a>
<a class="list-group-item" href="mailto:{{ site.personal_info.email }}"><span class="glyphicon glyphicon-envelope"></span>&nbsp;{{ site.personal_info.email }}</a>
</div>
@@ -8,7 +8,7 @@
{% if site.posts.size == 0 %}
<p>Sorry, there're no posts yet.</p>
{% else %}
- <div class="list-group reasonable-width">
+ <div class="list-group wide-enough">
{% for post in site.posts limit: 5 %}
<a class="list-group-item" href="{{ site.baseurl }}{{ post.url }}"><span class="badge"><span class="glyphicon glyphicon-time"></span>&nbsp;{{ post.date | date_to_string }}</span><span class="glyphicon glyphicon-file"></span>&nbsp;{{ post.title }}</a>
{% endfor %}