From 888c21a7d9a284f3b77d13b0b1d41da0969c2397 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 30 Sep 2019 03:30:50 +0300 Subject: remove unused stuff: posts, comments, sidebar, etc. --- README.md | 2 -- _config.yml | 6 ------ _config_dev.yml | 1 - _includes/common/paginator.html | 23 ----------------------- _includes/common/sidebar.html | 27 --------------------------- _layouts/default.html | 5 +---- _layouts/plain.html | 7 ------- _layouts/post.html | 13 ------------- index.html | 2 +- posts/index.html | 23 ----------------------- 10 files changed, 2 insertions(+), 107 deletions(-) delete mode 100644 _includes/common/paginator.html delete mode 100644 _includes/common/sidebar.html delete mode 100644 _layouts/plain.html delete mode 100644 _layouts/post.html delete mode 100644 posts/index.html 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 %} - -{% 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 @@ -
-
-

About

-

{{ site.project.description }}. Feel free to contribute or contact me.

- -

The implemented algorithms have been plotted to study their performance. -You can examine the plots here.

-
-
-

Latest posts

- {% if site.posts.size == 0 %} -

Sorry, there're no posts yet.

- {% else %} -
- {% for post in site.posts limit: 5 %} - -  {{ post.date | date: '%-d %b %Y' }} -  {{ post.title }} - - {% endfor %} -
- {% endif %} -
-
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 %}
-
+
{{ content }}
-
- {% include common/sidebar.html %} -
{% 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 %} -
-
- {{ content }} -
-
-{% 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 %} -
-
-

{{ page.title }}

-

 Posted on {{ page.date | date: '%-d %B %Y' }}

- {{ content }} -
-
-
- {% include common/sidebar.html %} -
-
-{% 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:  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:  Posts -root_page: true ---- -{% if site.posts.size == 0 %} -

Sorry, no posts have been added yet.

-

But I've made quite a few plots which you might want to check out.

-
-{% else %} - {% for post in paginator.posts %} -

{{ post.title }}

-

 Posted on {{ post.date | date: '%-d %B %Y' }}

-

{{ post.excerpt }}

-
- {% endfor %} -
- {% include common/paginator.html %} -
-{% endif %} -- cgit v1.2.3