Giter VIP home page Giter VIP logo

Comments (10)

gaoyoubo avatar gaoyoubo commented on September 27, 2024

hexo的发布实现是写到markdown文件的mate信息中的,和你什么时候点击发布时间并没有关系。

from hexo-client.

icanfly avatar icanfly commented on September 27, 2024

但现实中我“新建”了一篇文章后,点击“发布”,然后就出现了之前的文章的时间都被改成了当前时间?

from hexo-client.

gaoyoubo avatar gaoyoubo commented on September 27, 2024

能将你的反馈的被修改了时间的文章原文件发给我下吗? 就是markdown原文件。

from hexo-client.

icanfly avatar icanfly commented on September 27, 2024

我大致知道原因了,是我的hexo的scaffolds下的post.md中没有日期的设置,加上日期的脚本架好像可以了。
date: {{ date }}

from hexo-client.

gaoyoubo avatar gaoyoubo commented on September 27, 2024

没太明白是什么原因。能详细讲下吗, 看下我这里能否修复。

from hexo-client.

icanfly avatar icanfly commented on September 27, 2024

image
这个文件里面的脚手架内容没有date这个字段,导致生成的文件里面没有date这个元数据,所以每次发布的时候文章都重新排成当前的日期了,,我之前操作没有问题,是因为我文章元数据都是手写的,会自己把date加上。。。如果你可以修复这个问题也是可以的。

from hexo-client.

icanfly avatar icanfly commented on September 27, 2024

PS:文章的元数据可否开出来,让用户自己可以输入 ,这样的可操控性更强,:-)

from hexo-client.

gaoyoubo avatar gaoyoubo commented on September 27, 2024

image
这个文件里面的脚手架内容没有date这个字段,导致生成的文件里面没有date这个元数据,所以每次发布的时候文章都重新排成当前的日期了,,我之前操作没有问题,是因为我文章元数据都是手写的,会自己把date加上。。。如果你可以修复这个问题也是可以的。

tks,我明白问题所在了。

from hexo-client.

gaoyoubo avatar gaoyoubo commented on September 27, 2024

PS:文章的元数据可否开出来,让用户自己可以输入 ,这样的可操控性更强,:-)

之所以目前没有放出来是想让操作更简单,毕竟绝大部分用户是不需要手动修改日期等元数据的。另外,如果放出来,也没想到更好的页面布局方式。如果想到了合适的处理方式可以考虑放出来。

from hexo-client.

gaoyoubo avatar gaoyoubo commented on September 27, 2024

已经支持front-matter
image

from hexo-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.