You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering how to create another section similar to the "blog" section. For instance, I was thinking of creating a "blog" section and "daily thoughts" section.
The step I took so far:
1). in navigation.yml,
I added
title: "Daily thoughts"
url: /daily-thoughts/
2). made a folder called "_daily-thoughts"
3). Made my markdown post "daily-thought_1.md" and save that file in "_daily-thoughts"
{% include base_path %}
{% capture written_year %}'None'{% endcapture %}
{% for post in site.daily-thoughts %}
{% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
{% if year != written_year %}
{{ year }}
{% capture written_year %}{{ year }}{% endcapture %}
{% endif %}
{% include archive-single.html %}
{% endfor %}
It seems that I am to get the section created with the title. But my content "daily-thought_1.md" saved in "_daily-thoughts", is not displayed at all. What am I doing wrong? Any guidance would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
I was wondering how to create another section similar to the "blog" section. For instance, I was thinking of creating a "blog" section and "daily thoughts" section.
The step I took so far:
1). in navigation.yml,
I added
url: /daily-thoughts/
2). made a folder called "_daily-thoughts"
3). Made my markdown post "daily-thought_1.md" and save that file in "_daily-thoughts"
4). added daily-thought.html in _pages
layout: archive
permalink: /daily-thoughts/
title: "Daily Thoughts"
author_profile: true
{% include base_path %}
{% capture written_year %}'None'{% endcapture %}
{% for post in site.daily-thoughts %}
{% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
{% if year != written_year %}
{{ year }}
{% capture written_year %}{{ year }}{% endcapture %} {% endif %} {% include archive-single.html %} {% endfor %}It seems that I am to get the section created with the title. But my content "daily-thought_1.md" saved in "_daily-thoughts", is not displayed at all. What am I doing wrong? Any guidance would be greatly appreciated.
The text was updated successfully, but these errors were encountered: