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

.Now will be deprecated with Hugo v0.20 #30

Closed
digitalcraftsman opened this issue Apr 8, 2017 · 5 comments
Closed

.Now will be deprecated with Hugo v0.20 #30

digitalcraftsman opened this issue Apr 8, 2017 · 5 comments

Comments

@digitalcraftsman
Copy link

digitalcraftsman commented Apr 8, 2017

.Now will be deprecated replaced with the now template function in Hugo v0.20 which eventually will be released on Monday. It's likely that the deprecation will cause builds to fail.

@parsiya
Copy link
Owner

parsiya commented Apr 12, 2017

Thanks for the note.

This is a reminder to myself I think I only have one use and that is in the footer:

<footer role="contentinfo">
  <p>Copyright &copy; {{ .Now.Format "2006" }} {{ .Site.Params.author }} - <a href="{{ "/license/" | absURL }}">License</a> -
  <span class="credit">Powered by <a target="_blank" href="https://gohugo.io">Hugo</a> and <a target="_blank" href="https://github.com/parsiya/hugo-octopress/">Hugo-Octopress</a> theme.
</p>

@parsiya
Copy link
Owner

parsiya commented May 21, 2017

Fix was pretty simple. For future reference, the new function is here: https://hugodocs.info/functions/now/

@anthonyfok
Copy link

Fix was pretty simple. For future reference, the new function is here: https://hugodocs.info/functions/now/

Or, rather, here: https://gohugo.io/templates/functions/#now

@parsiya
Copy link
Owner

parsiya commented Jun 26, 2017

Thank you for the link to the new documentation. I did not know about the merge

@anthonyfok
Copy link

You are very welcome! The link that I listed is actually to the existing (or old) documentation, and hugodocs.info was a temporary website that held the proof-of-concept of the newer documentation, and @rdwatters is busy merging it back onto gohugo.io. Yes, I am looking forward to the newer documentation with a new look too! :-)

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

No branches or pull requests

3 participants