This commit is contained in:
piharpi
2019-03-24 20:21:18 +07:00
parent 934c770a4a
commit 34e76721e9
6 changed files with 8 additions and 19 deletions

View File

@@ -1,6 +1,6 @@
<h4 class="home-title"><span role="img" aria-label="book">📘</span>blog posts</h4>
<div class="content">
{% for post in site.blog %}
{% for post in site.categories.blog %}
<article class="list-post blog">
<header class="list-post-header">
<h2 class="list-post-title">

View File

@@ -15,9 +15,9 @@
{% assign url = page.url%}
{% for menu in site.data.menus %}
{% if url == menu.url %}
<a class="page-link active" href="{{ menu.url }}">{{ menu.title }}</a>
<a class="page-link active" href="{{ menu.url | absolute_url }}">{{ menu.title }}</a>
{% else %}
<a class="page-link" href="{{ menu.url }}">{{ menu.title }}</a>
<a class="page-link" href="{{ menu.url | absolute_url }}">{{ menu.title }}</a>
{% endif %}
{% endfor %}
</div>

View File

@@ -1,6 +1,6 @@
<h4 class="home-title"><span role="img" aria-label="coffee">☕️</span>programming tips</h4>
<div class="content">
{% for post in site.tips %}
{% for post in site.categories.tips reversed %}
<article class="list-post tips">
<header class="list-post-header tips">
<h2 class="list-post-title">