Now is deprecated use now (the template func) #11

Closed
opened 2017-09-13 17:04:15 +01:00 by dch · 3 comments
dch commented 2017-09-13 17:04:15 +01:00 (Migrated from github.com)

On running this with hugo 0.26 I get:

ERROR 2017/09/13 15:49:42 Page's Now is deprecated and will be removed in Hugo 0.27.
Use now (the template func).

This comes from layouts/partials/sidebar/footer.html with the {{ now.Format "2006" }} line.

{{ dateFormat "2006" .Date.UTC }} looks like a suitable replacement, but I have a few other errors blocking getting this updated.

On running this with hugo 0.26 I get: ``` ERROR 2017/09/13 15:49:42 Page's Now is deprecated and will be removed in Hugo 0.27. Use now (the template func). ``` This comes from `layouts/partials/sidebar/footer.html` with the `{{ now.Format "2006" }}` line. `{{ dateFormat "2006" .Date.UTC }}` looks like a suitable replacement, but I have a few other errors blocking getting this updated.
forquare commented 2017-09-13 22:37:23 +01:00 (Migrated from github.com)

Hmm, these messages stopped happening after #1. Can you tell me a bit more about where you are seeing the message and about your environment?

Hmm, these messages stopped happening after #1. Can you tell me a bit more about where you are seeing the message and about your environment?
forquare commented 2017-09-15 06:35:53 +01:00 (Migrated from github.com)

I've built my site with hugo v0.27.1, I'm not getting errors and everything appears to be correct.

I've built my site with [hugo v0.27.1](https://github.com/gohugoio/hugo/releases/tag/v0.27.1), I'm not getting errors and everything appears to be correct.
forquare commented 2017-10-07 11:10:12 +01:00 (Migrated from github.com)

Closing as no additional information given.

Closing as no additional information given.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
forquare/rehyde-x#11
No description provided.