From 4e11e6d5364a12650b9a139495bd5a73943ae56a Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 6 May 2015 06:17:59 +0300 Subject: initial commit --- _includes/footer.html | 23 +++++++++++++++++++++++ _includes/header.html | 28 ++++++++++++++++++++++++++++ _includes/links.html | 11 +++++++++++ _includes/navbar.html | 20 ++++++++++++++++++++ _includes/pagination.html | 30 ++++++++++++++++++++++++++++++ _includes/sidebar.html | 16 ++++++++++++++++ 6 files changed, 128 insertions(+) create mode 100644 _includes/footer.html create mode 100644 _includes/header.html create mode 100644 _includes/links.html create mode 100644 _includes/navbar.html create mode 100644 _includes/pagination.html create mode 100644 _includes/sidebar.html (limited to '_includes') diff --git a/_includes/footer.html b/_includes/footer.html new file mode 100644 index 0000000..3bfc5a2 --- /dev/null +++ b/_includes/footer.html @@ -0,0 +1,23 @@ + + +
+
+
+
+
+
+
This project is licensed under the terms of the MIT License. See Licensing for details.
+
+
+
This blog was last updated on: {{ site.time | date_to_long_string }}.
+
+
+
+
+
+
+ + + + + diff --git a/_includes/header.html b/_includes/header.html new file mode 100644 index 0000000..67f0bb3 --- /dev/null +++ b/_includes/header.html @@ -0,0 +1,28 @@ + + + + + + + {{ page.title }} + + + + + + + + + + + + +
+
+ {% include navbar.html %} +
+
+
diff --git a/_includes/links.html b/_includes/links.html new file mode 100644 index 0000000..70e643b --- /dev/null +++ b/_includes/links.html @@ -0,0 +1,11 @@ +{% for node in page_list %} + {% if group == null or group == node.group %} + {% if page.url == node.url %} +
  • {{ node.title }}
  • + {% else %} +
  • {{ node.title }}
  • + {% endif %} + {% endif %} +{% endfor %} +{% assign page_list = nil %} +{% assign group = nil %} diff --git a/_includes/navbar.html b/_includes/navbar.html new file mode 100644 index 0000000..f052baa --- /dev/null +++ b/_includes/navbar.html @@ -0,0 +1,20 @@ + diff --git a/_includes/pagination.html b/_includes/pagination.html new file mode 100644 index 0000000..aa2f034 --- /dev/null +++ b/_includes/pagination.html @@ -0,0 +1,30 @@ +{% if site.posts.size != 0 %} +
      + {% if paginator.previous_page %} + {% if paginator.previous_page == 1 %} +
    •  Prev
    • + {% else %} +
    •  Prev
    • + {% endif %} + {% else %} +
    •  Prev
    • + {% endif %} + {% if paginator.page == 1 %} +
    • 1
    • + {% else %} +
    • 1
    • + {% endif %} + {% for count in (2..paginator.total_pages) %} + {% if count == paginator.page %} +
    • {{ count }}
    • + {% else %} +
    • {{ count }}
    • + {% endif %} + {% endfor %} + {% if paginator.next_page %} +
    • Next 
    • + {% else %} +
    • Next 
    • + {% endif %} +
    +{% endif %} diff --git a/_includes/sidebar.html b/_includes/sidebar.html new file mode 100644 index 0000000..cb5b538 --- /dev/null +++ b/_includes/sidebar.html @@ -0,0 +1,16 @@ +

    About the project

    +

    Getting the hang out of the sorting algorithms. Feel free to contribute or contact me.

    + +

    Latest posts

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

    Sorry, there're no posts yet.

    +{% else %} +
    + {% for post in site.posts limit: 5 %} +  {{ post.date | date_to_string }} {{ post.title }} + {% endfor %} +
    +{% endif %} -- cgit v1.2.3