Nós utilizamos Cookies para aprimorar sua experiência em nosso site.
By clicking the Accept button, you agree to us doing so. Mais informações sobre nossa política de cookies
Nós utilizamos Cookies para aprimorar sua experiência em nosso site.
By clicking the Accept button, you agree to us doing so. Mais informações sobre nossa política de cookies
Posts
If you want to start a blog, create a _posts
directory to store your blog posts as per normal Jekyll usage, with layout: post
.
Create a new file in the _posts
directory with the filename format yyyy-mm-dd-blog-post-name.md
where yyyy is the year, mm is the month and dd is the day.
In the front matter, use the layout: post
. You can also use the same settings as when creating a page to configure the hero.
layout: post
title: The Blog Post Title
subtitle: The blog post subtitle
hero_image: /path/to/image.jpg
hero_darken: true
Next, create a blog
directory with an index.html file that has layout: blog
.
Set paginate
and paginate_path
in your site’s _config.yaml
to configure the posts per page and blog pagination path.
paginate: 5
paginate_path: "/blog/page:num"
It will display an image in the blog page if you set image: /path/to/image.jpg
in your post’s or page’s front matter, or in the defaults in your site’s _config.yml
.