aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2018-04-18 02:45:55 +0300
committerValentin Popov <info@valentineus.link>2018-04-18 02:45:55 +0300
commitce5db590cac665abf73d32dfcd47da006e9920d0 (patch)
tree74137268644fe784df56eb301a3246d5b82c2d23
parent38d5e30c3a0d0731bd50dab73b7137f32c05373c (diff)
downloadpopov.link-ce5db590cac665abf73d32dfcd47da006e9920d0.tar.xz
popov.link-ce5db590cac665abf73d32dfcd47da006e9920d0.zip
Home page
-rw-r--r--_pages/blog.html26
-rw-r--r--_pages/index.html28
2 files changed, 15 insertions, 39 deletions
diff --git a/_pages/blog.html b/_pages/blog.html
deleted file mode 100644
index 5f32994..0000000
--- a/_pages/blog.html
+++ /dev/null
@@ -1,26 +0,0 @@
----
-permalink: "posts.html"
-layout: default
-title: "Posts"
-show: true
----
-
-<section class="container list">
- <h1 class="title">{{ page.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify }}</h1>
-
- <ul>
- {% for item in site.posts %}
- <li>
- <span>
- <time datetime="{{ item.date | date_to_xmlschema }}">
- {{ item.date | date_to_long_string }}
- </time>
- </span>
-
- <a href="{{ item.url | relative_url | uri_escape }}">
- {{ item.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify }}
- </a>
- </li>
- {% endfor%}
- </ul>
-</section>
diff --git a/_pages/index.html b/_pages/index.html
index c610388..bfc4958 100644
--- a/_pages/index.html
+++ b/_pages/index.html
@@ -1,18 +1,20 @@
---
permalink: "index.html"
-layout: default
+layout: page
---
-<section class="container centered">
- <div class="about">
- <h1>{{ site.author.name | strip_newlines | strip_html | strip | normalize_whitespace | smartify }}</h1>
- <h2>{{ site.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify }}</h2>
- <ul>
- {% for item in site.social_links %}
- {% assign title = item[0] | strip_newlines | strip_html | strip | normalize_whitespace | smartify %}
- {% assign link = item[1] | strip_newlines | strip_html | strip | uri_escape %}
- <li><a href="{{ link }}" target="_blank">{{ title }}</a></li>
- {% endfor %}
- </ul>
+{% for post in site.posts %}
+ <div class="header">
+ <h2 class="header-title">
+ <a href="{{ post.url | relative_url | uri_escape }}">
+ {{ post.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify }}
+ </a>
+ </h2>
+ {% if post.description %}
+ <p class="header-annotation">
+ {{ post.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify }}
+ </p>
+ {% endif %}
+ <time>{{ post.date | date_to_long_string }}</time>
</div>
-</section>
+{% endfor %}