Skip to content

Conversation

@Slavetomints
Copy link

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Improvement (refactoring and improving code)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Description

TLDR:
Edits _layouts/post.html to not show the image specified in the front matter in the post itself if page.image.post is false. Also added documentation for the image field in _posts/2019-08-08-write-a-new-post.md.

Changes Made:

_layouts/post.html on line 39

{% if page.image %} became {% if page.image and page.image.post != false %}

_posts/2019-08-08-write-a-new-post.md on line 98

Added the following:

## Image

To add an image to the post so that it shows on the preview, embeds, and beginning of the post itself, you can specify the `image` field in the _Front Matter_ as follows:

``​`yaml
---
image: 
  path: /path/to/image.jpeg
  alt: this is some alt text
---
``​`

You can also use the `post` subfield if you only want the image to show up in the preview and embeds, and *not* in the post.

``​`yaml
---
image: 
  path: /path/to/image.jpeg
  alt: this is some alt text
  post: false
---
`​``

Additional context

N/A

@IzzyBoop
Copy link

+1

@Slavetomints Slavetomints force-pushed the feature/dont-show-image branch from 49784b8 to 3fee0d7 Compare October 16, 2025 17:05
@Slavetomints Slavetomints changed the title Feature - dont show image in post feat: dont show image in post Oct 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants