Hugo 0.18 Release Scheduled for Mon 19th December, please help test, test, test!


#21

#22

Built my site with latest master on notebook with HDD:

$ hugo version

Hugo Static Site Generator v0.18-DEV BuildDate: 2016-12-06T09:17:59+02:00

$ hugo

Started building sites …
Built site for language en:
0 of 312 drafts rendered
0 future content
0 expired content
681 regular pages created
66 other pages created
9 non-page files copied
3 paginator pages created
61 tags created
total in 19586 ms

Previous results:
$ hugo version

Hugo Static Site Generator v0.18-DEV BuildDate: 2016-11-02T06:52:26+02:00

$ hugo

Started building sites …
Built site for language en:
0 of 312 drafts rendered
0 future content
0 expired content
681 pages created
9 non-page files copied
3 paginator pages created
61 tags created
total in 44431 ms

With latest master RSS have been built in spite of it was turned off in config:

disableRSS: true


#23

#24

This looks like a bug – incorrect URL for sections added to menus. Where I have /articles/_index.md:

---
title: Archive
menu: main
---

and I render the menu:

{{ range .Site.Menus.main }}
<a href="{{ .URL }}">{{ .Name }}</a>
{{ end }}

The value of .URL for this section is / – the root, where it should be /articles/.


#25

That looks like a bug … but I thought I had tests for this …

A workaround would be to set the URL directly in the menu definition, I guess.


#26

Still on track for 12/19 or do you need anything else checked out?


#27

ON[quote=“michael_henderson, post:26, topic:4726, full:true”]
Still on track for 12/19 or do you need anything else checked out?
[/quote]
On track, but thanks for asking.


#28

The latest build for 0.18 isn’t happy with an archetype that has an empty date value. Version 0.17 seemed to ignore it.

$ ls -l archetypes/post.md 
-rw-r--r--  1 mdhender  staff  35 Nov 28 19:46 archetypes/post.md

$ hugo version
Hugo Static Site Generator v0.18-DEV-E4EBE0D5 BuildDate: 2016-12-14T15:01:51-06:00

$ cat archetypes/post.md 
+++
date = ""
title = "okay"

+++

$ hugo new post/give-me-percents.md
ERROR: 2016/12/14 22:25:38 content.go:61: Error processing archetype file /.../archetypes/post.md: Could not parse Date/Time format: Unable to parse date: 

Error: Could not parse Date/Time format: Unable to parse date: 

$ 

And 0.17 seems to just shrug it off:

## using v0.17 from brew ##
 
$ /usr/local/bin/hugo version
Hugo Static Site Generator v0.17 BuildDate: 2016-10-07T09:42:05-05:00

$ /usr/local/bin/hugo new post/version-17.md
/.../content/post/version-17.md created

$ cat content/post/version-17.md 
---
date: 2016-12-14T22:33:58-06:00
title: version 17
---

$ /usr/local/bin/hugo -v -v -v new post/version-17-verbose.md
INFO: 2016/12/14 22:37:29 hugo.go:405: Using config file: /...r/config.toml
INFO: 2016/12/14 22:37:29 content.go:38: attempting to create  post/version-17-verbose.md of post
INFO: 2016/12/14 22:37:29 content.go:177: curpath: /.../archetypes/post.md
INFO: 2016/12/14 22:37:29 page.go:1091: creating /.../content/post/version-17-verbose.md
/...r/content/post/version-17-verbose.md created

$

#29

https://github.com/spf13/hugo/commit/ef03c6f95412494902aef40335d8666136fad558


#30

You can have a look at this and see if it makes sense:

https://github.com/spf13/hugo/pull/2792

I’m pulling this in for 0.18 if no big protests – this behavior was broken and I don’t see how this breaks it further …


#31

I merged this:

https://github.com/spf13/hugo/commit/a3a67163f93b4fc16c2cc0343ffb532631ec4c8b

Should be fine … but shout if not …


#32

I’m just a bit confused. Keep or toss date = "" for 0.18?

Either way, it’s working after a pull:

$ hugo version
Hugo Static Site Generator v0.18-DEV-79B2725A BuildDate: 2016-12-15T15:37:02-06:00

$ hugo server
Started building sites ...
Built site for language en:
0 draft content
0 future content
0 expired content
4 regular pages created
12 other pages created
0 non-page files copied
0 paginator pages created
0 topics created
9 tags created
total in 24 ms

$ cat archetypes/post.md 
+++
date = ""
title = "okay"

+++

$ hugo -v -v -v new post/do-percent-two.md
INFO: 2016/12/15 15:39:19 hugo.go:349: Using config file: /.../config.toml
INFO: 2016/12/15 15:39:19 content.go:38: attempting to create  post/do-percent-two.md of post
INFO: 2016/12/15 15:39:19 content.go:181: curpath: /.../archetypes/post.md
INFO: 2016/12/15 15:39:19 page.go:1379: creating /.../content/post/do-percent-two.md
/.../content/post/do-percent-two.md created

$ cat content/post/do-percent-two.md 
---
date: 2016-12-15T15:39:19-06:00
title: okay
---


#33

We cannot keep it as it is a datatype mismatch – what did you expect? We have to set a date.