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

@@ -22,14 +22,9 @@ permalink: /:title
google_analytics: UA-105586262-2
fb_appid: 1806380839422028
collections_dir: _posts
collections:
blog:
posts:
output: true
permalink: /blog/:title
tips:
output: true
permalink: /tips/:title
# Markdown settings
markdown: kramdown
@@ -59,12 +54,6 @@ exclude:
- README.md
- node_modules
# jekyll-feed plugin settings
feed:
collections:
- blog
- tips
# Plugins
plugins:
- jekyll-feed

View File

@@ -11,4 +11,4 @@
url : /about/
- title : RSS
url : /feed/
url : /feed.xml/

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">

View File

@@ -30,7 +30,7 @@ home: true
<h4 class="home-title"><span role="img" aria-label="icon-book">📘</span>blog posts</h4>
<div class="content">
{% for post in site.blog limit:3 %}
{% for post in site.categories.blog limit:3 %}
<article class="list-post blog">
<header class="list-post-header">
<h4 class="list-post-title">
@@ -49,7 +49,7 @@ home: true
<h4 class="home-title"><span role="img" aria-label="icon-coffee">☕️</span>programming tips</h4>
<div class="content">
{% for post in site.tips reversed limit: 3 %}
{% for post in site.categories.tips reversed limit: 3 %}
<article class="list-post tips">
<header class="list-post-header tips">
<h4 class="list-post-title">