Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do i control post publish dates with hexo?

Tags:

hexo

I'd like to schedule some posts to be published in the future, and migrate some posts from other sites, which were published in the past.

I've tried modifying the unix file creation date for my source files, but that doesn't seem to do the right thing.

like image 354
blueberryfields Avatar asked Oct 30 '25 06:10

blueberryfields


1 Answers

hexo controls the publish date (and other config options) in the source .md files. just add a date tag to the top of the file, for example:

title: page title
tags:
  - aTag
  - anotherTag
id: 418
categories:
  - aCategory
  - anotherCategory
date: 2013-11-06 06:40:12
---

Some text i'd like to have in the body of this post
like image 97
blueberryfields Avatar answered Nov 01 '25 13:11

blueberryfields



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!