diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2019-09-30 03:30:50 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2019-09-30 03:30:50 +0300 |
commit | 888c21a7d9a284f3b77d13b0b1d41da0969c2397 (patch) | |
tree | 3afdf2d09bdcf0d99537d08fa418c1650589b6f0 | |
parent | README: remove the obsolete Windows notes (diff) | |
download | sorting-algorithms-888c21a7d9a284f3b77d13b0b1d41da0969c2397.tar.gz sorting-algorithms-888c21a7d9a284f3b77d13b0b1d41da0969c2397.zip |
remove unused stuff: posts, comments, sidebar, etc.
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | _config.yml | 6 | ||||
-rw-r--r-- | _config_dev.yml | 1 | ||||
-rw-r--r-- | _includes/common/paginator.html | 23 | ||||
-rw-r--r-- | _includes/common/sidebar.html | 27 | ||||
-rw-r--r-- | _layouts/default.html | 5 | ||||
-rw-r--r-- | _layouts/plain.html | 7 | ||||
-rw-r--r-- | _layouts/post.html | 13 | ||||
-rw-r--r-- | index.html | 2 | ||||
-rw-r--r-- | posts/index.html | 23 |
10 files changed, 2 insertions, 107 deletions
@@ -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> Prev</a></li> - {% else %} - <li class="disabled"><a href="#"><span class="glyphicon glyphicon-chevron-left"></span> 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 <span class="glyphicon glyphicon-chevron-right"></span></a></li> - {% else %} - <li class="disabled"><a href="#">Next <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> GitHub repository</a> - <a class="list-group-item" href="mailto:{{ site.personal_info.email }}"><span class="glyphicon glyphicon-envelope"></span> {{ 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> {{ post.date | date: '%-d %b %Y' }}</span> - <span class="glyphicon glyphicon-file"></span> {{ 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> 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 %} @@ -1,6 +1,6 @@ --- title: Main page -layout: plain +layout: default groups: - navbar navbar_link: <span class="glyphicon glyphicon-home"></span> 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> 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> 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 %} |