From 4c917fc60d4dec2151c83237cacecf604c0a9242 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 6 May 2015 06:44:18 +0300 Subject: initial commit --- _includes/comments.html | 16 ++++++++++++++++ _includes/footer.html | 23 +++++++++++++++++++++++ _includes/header.html | 25 +++++++++++++++++++++++++ _includes/links.html | 11 +++++++++++ _includes/navbar.html | 20 ++++++++++++++++++++ _includes/pagination.html | 30 ++++++++++++++++++++++++++++++ _includes/sidebar.html | 16 ++++++++++++++++ 7 files changed, 141 insertions(+) create mode 100644 _includes/comments.html 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/comments.html b/_includes/comments.html new file mode 100644 index 0000000..1f3e808 --- /dev/null +++ b/_includes/comments.html @@ -0,0 +1,16 @@ +{% if site.include_comments %} +
+ + +{% endif %} + \ No newline at end of file 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..e3a9158 --- /dev/null +++ b/_includes/header.html @@ -0,0 +1,25 @@ + + + + + + + {{ 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..1a1f9a4 --- /dev/null +++ b/_includes/sidebar.html @@ -0,0 +1,16 @@ +

    About the project

    +

    Thoughts on C++ and life. 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