Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jekyll: Display all posts in the same page

Tags:

jekyll

blogs

I have been reading everything at Jekyll Docs, but I couldn't find a way to do this.

By default when generating a web, jekyll displays a list of the links of all your blog posts. Is there a way to display the content of all your blog posts in the same page? (alla blogspot/wordpress/traditional blog...)

like image 901
ConstraintErrors Avatar asked Mar 30 '17 14:03

ConstraintErrors


Video Answer


1 Answers

Found my solution from: This tutorial, which consists of editing index.md and adding the following:

  {% for post in site.posts %}
  <article>
    <h2>
      <a href="{{ post.url }}">
        {{ post.title }}
      </a>
    </h2>
    <time datetime="{{ post.date | date: "%Y-%m-%d" }}">{{ post.date | date_to_long_string }}</time>
    {{ post.content }}
  </article>
{% endfor %}
like image 161
ConstraintErrors Avatar answered Oct 13 '22 23:10

ConstraintErrors