nstrayer / tuftesque

A very similar style to the original tufte hugo theme but with a few modifications. Used in my blogdown blog.
MIT License
53 stars 9 forks source link

ERROR and WARNING with Hugo v0.26 #6

Closed nancym closed 6 years ago

nancym commented 7 years ago

I'm using Hugo v0.26 and just tried to build the exampleSite. It said this:

Started building sites ...
ERROR 2017/08/14 15:41:38 Page's Now is deprecated and will be removed in Hugo 0.27. Use now (the template func).
WARNING: calling IsSet with unsupported type "invalid" (<nil>) will always return false.

Thanks for this theme!

igutierrezm commented 7 years ago

I had the same problem. In ~\themes\tuftesque\layouts\partials\footer.html replace line 21 with © {{now.Format "2006"}} (It worked for me, but I do not know if it is the best solution)

nstrayer commented 6 years ago

Ah, I get this too and have managed to ignore it until now. I'll look into this. Thanks!

nstrayer commented 6 years ago

I believe I fixed this using exactly your solution @igutierrezm. See https://github.com/nstrayer/tuftesque/pull/9