fix rss
This commit is contained in:
13
_config.yml
13
_config.yml
@@ -22,14 +22,9 @@ permalink: /:title
|
|||||||
google_analytics: UA-105586262-2
|
google_analytics: UA-105586262-2
|
||||||
fb_appid: 1806380839422028
|
fb_appid: 1806380839422028
|
||||||
|
|
||||||
collections_dir: _posts
|
|
||||||
collections:
|
collections:
|
||||||
blog:
|
posts:
|
||||||
output: true
|
output: true
|
||||||
permalink: /blog/:title
|
|
||||||
tips:
|
|
||||||
output: true
|
|
||||||
permalink: /tips/:title
|
|
||||||
|
|
||||||
# Markdown settings
|
# Markdown settings
|
||||||
markdown: kramdown
|
markdown: kramdown
|
||||||
@@ -59,12 +54,6 @@ exclude:
|
|||||||
- README.md
|
- README.md
|
||||||
- node_modules
|
- node_modules
|
||||||
|
|
||||||
# jekyll-feed plugin settings
|
|
||||||
feed:
|
|
||||||
collections:
|
|
||||||
- blog
|
|
||||||
- tips
|
|
||||||
|
|
||||||
# Plugins
|
# Plugins
|
||||||
plugins:
|
plugins:
|
||||||
- jekyll-feed
|
- jekyll-feed
|
||||||
|
|||||||
@@ -11,4 +11,4 @@
|
|||||||
url : /about/
|
url : /about/
|
||||||
|
|
||||||
- title : RSS
|
- title : RSS
|
||||||
url : /feed/
|
url : /feed.xml/
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<h4 class="home-title"><span role="img" aria-label="book">📘</span>blog posts</h4>
|
<h4 class="home-title"><span role="img" aria-label="book">📘</span>blog posts</h4>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{% for post in site.blog %}
|
{% for post in site.categories.blog %}
|
||||||
<article class="list-post blog">
|
<article class="list-post blog">
|
||||||
<header class="list-post-header">
|
<header class="list-post-header">
|
||||||
<h2 class="list-post-title">
|
<h2 class="list-post-title">
|
||||||
|
|||||||
@@ -15,9 +15,9 @@
|
|||||||
{% assign url = page.url%}
|
{% assign url = page.url%}
|
||||||
{% for menu in site.data.menus %}
|
{% for menu in site.data.menus %}
|
||||||
{% if url == menu.url %}
|
{% 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 %}
|
{% else %}
|
||||||
<a class="page-link" href="{{ menu.url }}">{{ menu.title }}</a>
|
<a class="page-link" href="{{ menu.url | absolute_url }}">{{ menu.title }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<h4 class="home-title"><span role="img" aria-label="coffee">☕️</span>programming tips</h4>
|
<h4 class="home-title"><span role="img" aria-label="coffee">☕️</span>programming tips</h4>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{% for post in site.tips %}
|
{% for post in site.categories.tips reversed %}
|
||||||
<article class="list-post tips">
|
<article class="list-post tips">
|
||||||
<header class="list-post-header tips">
|
<header class="list-post-header tips">
|
||||||
<h2 class="list-post-title">
|
<h2 class="list-post-title">
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ home: true
|
|||||||
|
|
||||||
<h4 class="home-title"><span role="img" aria-label="icon-book">📘</span>blog posts</h4>
|
<h4 class="home-title"><span role="img" aria-label="icon-book">📘</span>blog posts</h4>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{% for post in site.blog limit:3 %}
|
{% for post in site.categories.blog limit:3 %}
|
||||||
<article class="list-post blog">
|
<article class="list-post blog">
|
||||||
<header class="list-post-header">
|
<header class="list-post-header">
|
||||||
<h4 class="list-post-title">
|
<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>
|
<h4 class="home-title"><span role="img" aria-label="icon-coffee">☕️</span>programming tips</h4>
|
||||||
<div class="content">
|
<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">
|
<article class="list-post tips">
|
||||||
<header class="list-post-header tips">
|
<header class="list-post-header tips">
|
||||||
<h4 class="list-post-title">
|
<h4 class="list-post-title">
|
||||||
|
|||||||
Reference in New Issue
Block a user