mmistakes / minimal-mistakes

:triangular_ruler: Jekyll theme for building a personal site, blog, project documentation, or portfolio.
https://mmistakes.github.io/minimal-mistakes/
MIT License
12.46k stars 25.69k forks source link

Issue with post layout #1596

Closed pgyogesh closed 6 years ago

pgyogesh commented 6 years ago

Environment informations


Expected behavior

Post Layout like below: https://mmistakes.github.io/minimal-mistakes/jekyll/post-exclude-search/

Steps to reproduce the behavior

Visit:

http://pgyogesh.com/blog/greenplum/python/parallel-restore-using-python/

My Repo: https://github.com/pgyogesh/blog

hkalant commented 6 years ago

@pgyogesh The layout in your posts' front-matter should be layout: single, not layout: post.

Better yet, you can define the layout once in config.yml as following:

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

So you don't have to include it in every single post.

mmistakes commented 6 years ago

Closing as the solution is exactly what @pgyogesh proposed above. Set layout: single instead of post... either by manually changing it in all your _posts/ or removing layout from them and setting it once with a front matter default in _config.yml.