aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2019-09-30 03:30:50 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2019-09-30 03:30:50 +0300
commit888c21a7d9a284f3b77d13b0b1d41da0969c2397 (patch)
tree3afdf2d09bdcf0d99537d08fa418c1650589b6f0
parentREADME: remove the obsolete Windows notes (diff)
downloadsorting-algorithms-888c21a7d9a284f3b77d13b0b1d41da0969c2397.tar.gz
sorting-algorithms-888c21a7d9a284f3b77d13b0b1d41da0969c2397.zip
remove unused stuff: posts, comments, sidebar, etc.
-rw-r--r--README.md2
-rw-r--r--_config.yml6
-rw-r--r--_config_dev.yml1
-rw-r--r--_includes/common/paginator.html23
-rw-r--r--_includes/common/sidebar.html27
-rw-r--r--_layouts/default.html5
-rw-r--r--_layouts/plain.html7
-rw-r--r--_layouts/post.html13
-rw-r--r--index.html2
-rw-r--r--posts/index.html23
10 files changed, 2 insertions, 107 deletions
diff --git a/README.md b/README.md
index ce818c5..c2c5cac 100644
--- a/README.md
+++ b/README.md
@@ -46,8 +46,6 @@ In particular, it
* sets `minified_externals` to `false` so that the properly formatted versions
of external CSS stylesheets and JavaScript files are included instead of the
`min`ified versions,
-* sets `include_comments` to `false` to exclude the Disqus comments section
-from the posts,
* sets `baseurl` to an empty string so that the website can be accessed from
local web server's root directory (i.e. from http://localhost:4000/ instead of
http://localhost:4000/sorting-algorithms/).
diff --git a/_config.yml b/_config.yml
index e78bd06..4be1c30 100644
--- a/_config.yml
+++ b/_config.yml
@@ -1,5 +1,4 @@
plugins:
- - jekyll-paginate
- jekyll-github-metadata
exclude:
@@ -10,12 +9,7 @@ exclude:
- serve.bat
- serve.sh
- README.md
- - posts/
-paginate: 10
-paginate_path: "/posts/page:num/"
-
-include_comments: true
minified_externals: true
bootstrap_version: 3.3.7
diff --git a/_config_dev.yml b/_config_dev.yml
index c6fad0e..febc099 100644
--- a/_config_dev.yml
+++ b/_config_dev.yml
@@ -1,4 +1,3 @@
-include_comments: false
minified_externals: false
baseurl: ""
diff --git a/_includes/common/paginator.html b/_includes/common/paginator.html
deleted file mode 100644
index 55cb690..0000000
--- a/_includes/common/paginator.html
+++ /dev/null
@@ -1,23 +0,0 @@
-{% if site.posts.size != 0 %}
-<ul class="pagination">
- {% if paginator.previous_page %}
- <li><a href="{{ site.baseurl }}{{ paginator.previous_page_path }}"><span class="glyphicon glyphicon-chevron-left"></span>&nbsp;Prev</a></li>
- {% else %}
- <li class="disabled"><a href="#"><span class="glyphicon glyphicon-chevron-left"></span>&nbsp;Prev</a></li>
- {% endif %}
- {% for page_number in (1..paginator.total_pages) %}
- {% if page_number == paginator.page %}
- <li class="active"><a href="#">{{ page_number }}</a></li>
- {% elsif page_number == 1 %}
- <li><a href="{{ site.baseurl }}/posts/">{{ page_number }}</a></li>
- {% else %}
- <li><a href="{{ site.baseurl }}{{ site.paginate_path | replace: ':num', page_number }}">{{ page_number }}</a></li>
- {% endif %}
- {% endfor %}
- {% if paginator.next_page %}
- <li><a href="{{ site.baseurl }}{{ paginator.next_page_path }}">Next&nbsp;<span class="glyphicon glyphicon-chevron-right"></span></a></li>
- {% else %}
- <li class="disabled"><a href="#">Next&nbsp;<span class="glyphicon glyphicon-chevron-right"></span></a></li>
- {% endif %}
-</ul>
-{% endif %}
diff --git a/_includes/common/sidebar.html b/_includes/common/sidebar.html
deleted file mode 100644
index 3300b17..0000000
--- a/_includes/common/sidebar.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<div class="row">
- <div class="col-xs-12 col-sm-6 col-md-12">
- <h2 class="h4">About</h2>
- <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>
- <p>The implemented algorithms have been plotted to study their performance.
-You can examine the plots <a href="{{ site.baseurl }}/">here</a>.</p>
- </div>
- <div class="col-xs-12 col-sm-6 col-md-12">
- <h2 class="h4">Latest posts</h2>
- {% if site.posts.size == 0 %}
- <p>Sorry, there're no posts yet.</p>
- {% else %}
- <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: '%-d %b %Y' }}</span>
- <span class="glyphicon glyphicon-file"></span>&nbsp;{{ post.title }}
- </a>
- {% endfor %}
- </div>
- {% endif %}
- </div>
-</div>
diff --git a/_layouts/default.html b/_layouts/default.html
index f151314..db09984 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -1,10 +1,7 @@
{% include common/header.html %}
<div class="row">
- <div class="col-md-8">
+ <div class="col-md-12">
{{ content }}
</div>
- <div class="col-md-4">
- {% include common/sidebar.html %}
- </div>
</div>
{% include common/footer.html %}
diff --git a/_layouts/plain.html b/_layouts/plain.html
deleted file mode 100644
index db09984..0000000
--- a/_layouts/plain.html
+++ /dev/null
@@ -1,7 +0,0 @@
-{% include common/header.html %}
-<div class="row">
- <div class="col-md-12">
- {{ content }}
- </div>
-</div>
-{% include common/footer.html %}
diff --git a/_layouts/post.html b/_layouts/post.html
deleted file mode 100644
index faed6d4..0000000
--- a/_layouts/post.html
+++ /dev/null
@@ -1,13 +0,0 @@
-{% 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>&nbsp;Posted on {{ page.date | date: '%-d %B %Y' }}</p>
- {{ content }}
- <hr/>
- </div>
- <div class="col-md-4">
- {% include common/sidebar.html %}
- </div>
-</div>
-{% include common/footer.html %}
diff --git a/index.html b/index.html
index 139f98a..428f863 100644
--- a/index.html
+++ b/index.html
@@ -1,6 +1,6 @@
---
title: Main page
-layout: plain
+layout: default
groups:
- navbar
navbar_link: <span class="glyphicon glyphicon-home"></span>&nbsp;Main page
diff --git a/posts/index.html b/posts/index.html
deleted file mode 100644
index 2143d40..0000000
--- a/posts/index.html
+++ /dev/null
@@ -1,23 +0,0 @@
----
-title: Posts
-layout: default
-groups:
- - navbar
-navbar_link: <span class="glyphicon glyphicon-th-list"></span>&nbsp;Posts
-root_page: true
----
-{% if site.posts.size == 0 %}
- <p class="h3">Sorry, no posts have been added yet.</p>
- <p class="text-muted">But I've made quite a few <a href="{{ site.baseurl }}/">plots</a> which you might want to check out.</p>
- <hr/>
-{% else %}
- {% for post in paginator.posts %}
- <h2><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h2>
- <p class="text-muted"><span class="glyphicon glyphicon-time"></span>&nbsp;Posted on {{ post.date | date: '%-d %B %Y' }}</p>
- <p>{{ post.excerpt }}</p>
- <hr/>
- {% endfor %}
- <div class="text-center">
- {% include common/paginator.html %}
- </div>
-{% endif %}