Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add baked timestamp to data available in templates #40

Closed
jonbullock opened this issue Oct 12, 2013 · 4 comments
Closed

Add baked timestamp to data available in templates #40

jonbullock opened this issue Oct 12, 2013 · 4 comments
Assignees
Milestone

Comments

@jonbullock
Copy link
Member

No description provided.

Riduidel pushed a commit to Riduidel/JBake that referenced this issue Aug 28, 2014
When this property is defined in any config, the value is used as key for an element that is added to each file content map.
This way, the date at which this file was parsed can be used to render template.
@Riduidel
Copy link

Riduidel commented Sep 1, 2014

According to code, there is a build.timestamp property defined in config. I did not use that property for that baked timestamp and should fix that.

@jonbullock
Copy link
Member Author

That config option is used to record when the build was made.

@Riduidel
Copy link

Riduidel commented Sep 4, 2014

On 04/09/2014 14:49, Jonathan Bullock wrote:

That config option is used to record when the build was made.


Reply to this email directly or view it on GitHub
#40 (comment).

OK, so the "timestamp" field defined in config has nothing to do with
the timestamp we want ?
The "new Date()" i used in first version should then be used (and my
subsequent pullrequest rejected).

Nicolas Delsaux

@jonbullock
Copy link
Member Author

I'm thinking of adding a string variable that represents the date/timestamp baking occurred to be used in templates, the format of this string will be controlled via a config option that defines the format the user wants.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants