-
Notifications
You must be signed in to change notification settings - Fork 49
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
Comments
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 © {{ .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> |
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 |
Thank you for the link to the new documentation. I did not know about the merge |
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! :-) |
.Now
will be deprecated replaced with thenow
template function in Hugo v0.20 which eventually will be released on Monday. It's likely that the deprecation will cause builds to fail.The text was updated successfully, but these errors were encountered: