aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-06-25 03:20:21 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-06-25 03:20:21 +0300
commit860ae3c81409ba0e49c224bc1431e1835d500196 (patch)
tree34d864b6e425e84b85c1c203d7d01f039b655a3e
parentREADME update (diff)
downloadsorting-algorithms-860ae3c81409ba0e49c224bc1431e1835d500196.tar.gz
sorting-algorithms-860ae3c81409ba0e49c224bc1431e1835d500196.zip
move common assets to common/, more info to config
-rw-r--r--_config.yml3
-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)6
-rw-r--r--_includes/common/header.html (renamed from _includes/header.html)13
-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
-rw-r--r--_layouts/main.html6
-rw-r--r--_layouts/plots.html4
-rw-r--r--_layouts/post.html8
-rw-r--r--css/common/footer.css (renamed from css/footer.css)0
-rw-r--r--css/common/misc.css (renamed from css/misc.css)2
-rw-r--r--index.html2
-rw-r--r--plots.html3
17 files changed, 28 insertions, 25 deletions
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/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..0273971 100644
--- a/_includes/footer.html
+++ b/_includes/common/footer.html
@@ -6,7 +6,7 @@
<div style="display: table; width: 100%;">
<div style="display: table-row;">
<div style="display: table-cell;">
- <div class="text-center text-muted"><small>This project is licensed under the terms of the MIT License. See <a href="{{ site.github.repository_url }}#license">License</a> for details.</small></div>
+ <div class="text-center text-muted"><small>This project is licensed under the terms of the MIT License. See <a href="{{ site.github.repository_url }}/blob/gh-pages/README.md#license">License</a> for details.</small></div>
</div>
</div>
<div style="display: table-row;">
@@ -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/header.html b/_includes/common/header.html
index 29a2729..c21b442 100644
--- a/_includes/header.html
+++ b/_includes/common/header.html
@@ -5,13 +5,12 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
- <title>{{ page.title }} - Sorting algorithms - {{ site.personal_info.name }}</title>
+ <title>{{ page.title }} - {{ site.project.name }} - {{ site.personal_info.name }}</title>
- {% include bootstrap_css.html %}
+ {% include common/bootstrap_css.html %}
- <link rel="stylesheet" href="{{ site.baseurl }}/css/footer.css">
- <link rel="stylesheet" href="{{ site.baseurl }}/css/misc.css">
- <link rel="stylesheet" href="{{ site.baseurl }}/css/syntax.css">
+ <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 %}
@@ -19,12 +18,12 @@
{% endfor %}
{% endif %}
- {% include ie_compat.html %}
+ {% include common/ie_compat.html %}
</head>
<body>
<div class="top-level-footer-wrapper">
<div class="footer-wrapper-collapse">
- {% include navbar.html %}
+ {% 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 b318997..e6041c3 100644
--- a/_includes/sidebar.html
+++ b/_includes/common/sidebar.html
@@ -1,6 +1,6 @@
<h4>About the project</h4>
-<p>Getting the hang out of the sorting algorithms. 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>
@@ -10,7 +10,7 @@ You can examine the plots <a href="{{ site.baseurl }}/plots.html">here</a>.</p>
{% 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 %}
diff --git a/_layouts/main.html b/_layouts/main.html
index 920cbd9..f151314 100644
--- a/_layouts/main.html
+++ b/_layouts/main.html
@@ -1,10 +1,10 @@
-{% include header.html %}
+{% include common/header.html %}
<div class="row">
<div class="col-md-8">
{{ content }}
</div>
<div class="col-md-4">
- {% include sidebar.html %}
+ {% include common/sidebar.html %}
</div>
</div>
-{% include footer.html %}
+{% include common/footer.html %}
diff --git a/_layouts/plots.html b/_layouts/plots.html
index 9a6a620..db09984 100644
--- a/_layouts/plots.html
+++ b/_layouts/plots.html
@@ -1,7 +1,7 @@
-{% include header.html %}
+{% include common/header.html %}
<div class="row">
<div class="col-md-12">
{{ content }}
</div>
</div>
-{% include footer.html %}
+{% include common/footer.html %}
diff --git a/_layouts/post.html b/_layouts/post.html
index 4b05318..9d91204 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -1,14 +1,14 @@
-{% include header.html %}
+{% include common/header.html %}
<div class="row">
<div class="col-md-8">
<h1>{{ page.title }}</h1>
<p class="text-muted"><span class="glyphicon glyphicon-time"></span> Posted on {{ page.date | date_to_long_string }}</p>
{{ content }}
<hr/>
- {% include comments.html %}
+ {% include posts/comments.html %}
</div>
<div class="col-md-4">
- {% include sidebar.html %}
+ {% include common/sidebar.html %}
</div>
</div>
-{% include footer.html %}
+{% include common/footer.html %}
diff --git a/css/footer.css b/css/common/footer.css
index 417b3d9..417b3d9 100644
--- a/css/footer.css
+++ b/css/common/footer.css
diff --git a/css/misc.css b/css/common/misc.css
index 06c6675..49072c4 100644
--- a/css/misc.css
+++ b/css/common/misc.css
@@ -1,3 +1,3 @@
-.reasonable-width {
+.wide-enough {
max-width: 400px;
}
diff --git a/index.html b/index.html
index d7b1b05..9066aa6 100644
--- a/index.html
+++ b/index.html
@@ -26,6 +26,6 @@ navbar_link: <span class="glyphicon glyphicon-home"></span>&nbsp;Main page
<hr/>
{% endfor %}
<div class="text-center">
- {% include pagination.html %}
+ {% include common/pagination.html %}
</div>
{% endif %}
diff --git a/plots.html b/plots.html
index f185f4f..8bb40aa 100644
--- a/plots.html
+++ b/plots.html
@@ -4,7 +4,8 @@ layout: plots
groups:
- navbar
navbar_link: <span class="glyphicon glyphicon-th-large"></span>&nbsp;Plots
-custom_css: plots.css
+custom_css:
+ - plots.css
input_order:
- ascending
- random