aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorla-ninpre <leobrekalini@gmail.com>2021-05-23 19:55:39 +0300
committerla-ninpre <leobrekalini@gmail.com>2021-05-23 19:55:39 +0300
commit5ed1e6e32918a6e98e6854017248e3e88e95f87c (patch)
tree6acc08a1dc8772eceefb5b419067b8a9c9f63199
parent3648521e599ee27985d29bad379f40b2a66689cc (diff)
downloadaaoth.xyz-5ed1e6e32918a6e98e6854017248e3e88e95f87c.tar.gz
aaoth.xyz-5ed1e6e32918a6e98e6854017248e3e88e95f87c.zip
add latest post to the home page
and add tags to post-preview.html
-rw-r--r--_includes/post-preview.html7
-rw-r--r--_layouts/about-page.html42
2 files changed, 30 insertions, 19 deletions
diff --git a/_includes/post-preview.html b/_includes/post-preview.html
index d86c92c..53ed59d 100644
--- a/_includes/post-preview.html
+++ b/_includes/post-preview.html
@@ -6,5 +6,10 @@
<p>
<a href="{{ post.url }}">read more...</a>
</p>
- <small><p>{{ post.date | date_to_string }}</p></small>
+ <small>
+ <p>{{ post.date | date_to_string }} |
+ {% for tag in post.tags %}<a href="/tags/{{tag}}">{{tag}} </a>
+ {% endfor %}
+ </p>
+ </small>
</div>
diff --git a/_layouts/about-page.html b/_layouts/about-page.html
index 205bce6..66bad0a 100644
--- a/_layouts/about-page.html
+++ b/_layouts/about-page.html
@@ -4,27 +4,33 @@ layout: default
<div class="about">
<div class="about-sidebar">
- <img id="avatar" alt="aaoth-photo" src="/assets/img/aaoth-photo.jpeg">
- <div class="about-links">
- <p>other links:</p>
- <ul>
- {% assign sorted_links = site.data.links | sort: "type" %}
- {% for link in sorted_links %}
- <li>
- <a href="{{ link.link }}">
- <img
- class= "link-icon"
- alt="{{ link.type }}"
- src="/assets/img/{{ link.type }}-icon.png">
- <div class="link-text">{{ link.name }}</div>
- </a>
- </li>
- {% endfor %}
- </ul>
- </div>
+ <img id="avatar" alt="aaoth-photo" src="/assets/img/aaoth-photo.jpeg">
+ <div class="about-links">
+ <p>other links:</p>
+ <ul>
+ {% assign sorted_links = site.data.links | sort: "type" %}
+ {% for link in sorted_links %}
+ <li>
+ <a href="{{ link.link }}">
+ <img
+ class= "link-icon"
+ alt="{{ link.type }}"
+ src="/assets/img/{{ link.type }}-icon.png">
+ <div class="link-text">{{ link.name }}</div>
+ </a>
+ </li>
+ {% endfor %}
+ </ul>
+ </div>
</div>
<div class="about-info">
{{ content }}
+ <div class="latest-post">
+ <h2>latest post</h2>
+ {% assign post = site.posts[0] %}
+ {% include post-preview.html %}
+ </div>
</div>
</div>
+