Files
.github
_data
_includes
_layouts
_sass
assets
docs
_data
_docs
01-quick-start-guide.md
02-structure.md
03-installation.md
04-upgrading.md
05-configuration.md
06-overriding-theme-defaults.md
07-navigation.md
08-ui-text.md
09-authors.md
10-layouts.md
11-posts.md
12-pages.md
13-collections.md
14-helpers.md
15-utility-classes.md
16-stylesheets.md
17-javascript.md
18-history.md
19-contributing.md
20-docs-2-2.md
21-license.md
_drafts
_layouts
_pages
_pets
_portfolio
_posts
_recipes
assets
Gemfile
_config.dev.yml
_config.yml
screenshot-layouts.png
screenshot.png
test
.editorconfig
.gitattributes
.gitignore
.travis.yml
CHANGELOG.md
Gemfile
LICENSE
README.md
Rakefile
_config.yml
banner.js
index.html
minimal-mistakes-jekyll.gemspec
package-lock.json
package.json
screenshot-layouts.png
screenshot.png
staticman.yml
website/docs/_docs/11-posts.md
2018-03-20 16:01:21 -04:00

1.3 KiB

title, permalink, excerpt, last_modified_at
title permalink excerpt last_modified_at
Working with Posts /docs/posts/ Suggestions and Front Matter defaults for working with posts. 2018-03-20T15:59:57-04:00

Posts are stored in the _posts directory and named according to the YEAR-MONTH-DAY-title.MARKUP format as per the usual.

Where YEAR is a four-digit number, MONTH and DAY are both two-digit numbers, and MARKUP is the file extension representing the format used in the file. For example, the following are examples of valid post filenames:

2016-07-20-writing-jekyll-posts.md
2015-01-03-static-site-generators.markdown

Recommended Front Matter Defaults:

defaults:
  # _posts
  - scope:
      path: ""
      type: posts
    values:
      layout: single
      author_profile: true
      read_time: true
      comments: true
      share: true
      related: true

Adding the above to _config.yml will assign the single layout and enable: author profile, reading time, comments, [social sharing links]({{ "/docs/layouts/#social-sharing-links" | relative_url }}), and related posts, for all posts.

ProTip: Remember to write unique excerpt descriptions for each post for improved SEO and archive listings. {: .notice--info}