tnabdb
tnabdb

Reputation: 547

How to have Jekyll blog posts not showing the date?

I reedit my posts all the time and the dates don't mean anything so I want to remove them from the posts' titles (not from the titles of the markdown files).

Upvotes: 0

Views: 1426

Answers (2)

maleckicoa
maleckicoa

Reputation: 561

In the _config.yml file remove the the show_date=true For example:

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

Upvotes: 0

Abdullah Barrak
Abdullah Barrak

Reputation: 151

By title I take that you mean the url segments which contain the date + the post title. If so:

you can specify the permalink to Not contain the date on post basis (front matter) like so:

---
title: My new post
permalink: /:title/
---

or if you want this to apply to posts, use it in _config.yml:

permalink: /:title/

There are also other predefined permalinks here, and their components (slugs) can be used in the customization above.

Upvotes: 6

Related Questions