0.22-DEV version broke my blog page

Hi all,

Does anyone know why something in the latest version 0.22-DEV somehow changed the way hugo generates my paginated blog summary page?

Here’s the code where things worked flawlessly in the past but recently gives empty html output.

<div class="row">
            {{ range $i, $e :=  .Paginator.Pages }}
            {{ .Render "summary" }}
            {{ if modBool ( add $i 1) 4 }}
        </div><div class="row">
        {{ end }}
        {{ end }}
        <span style="float:right;">{{ template "_internal/pagination.html" . }}</span>

And summary.html partial for your reference:

<div class="col-sm-3 text-center box-item">
    <a href="{{ .Permalink }}" class="blog-link">
        {{ $url := printf "img/blog/%s" .Params.thumbnail }}
        <img src="{{ $url | absURL }}" class="img-responsive center-block" alt="{{ .Title }}">
        <time class="blog-time">
            {{ $data := index .Site.Data .Site.Language.Lang }}
            {{ .Date.Day }} {{ index $data.month (printf "%d" .Date.Month) }}, {{ .Date.Year }}
    <a href="{{ .Permalink }}" class="blog-link">
        <div class="blog-title">
            {{ .Title }}

My travis-ci build get hugo executable by go get github.com/spf13/hugo which leaves me no way to specify a version number. The build is run daily and it’s only rendered an empty blog page in the last two days so my first thought is something in the new hugo version is the culprit, but I could be wrong though.

It would be very appreciated if someone can shed some lights on this and if there’s a way to let me specify a version of stable version of hugo, it would be the best.

Thanks a lot for the great work here anyway.

it depends probably how you are using travis for deployment. But here are the lines I’m using to install a specific release of hugo:

  - wget -O /tmp/hugo.deb https://github.com/spf13/hugo/releases/download/v0.21/hugo_0.21_Linux-64bit.deb
  - sudo dpkg -i /tmp/hugo.deb

and the whole file, for context.

  • You should check your log for errors/warnings.
  • If that does not help you should post a link to the complete project.

Thank you for your responses.

I honestly didn’t see any errors/warnings during build. The version where it started to not generate paginated pages is Hugo Static Site Generator v0.22-DEV linux/amd64 BuildDate: 2017-06-08T17:07:48Z. From that point on, it always generates 0 paginator pages created instead of 7 paginator pages created like it was.

My page is on github at: https://github.com/leeu1911/dalafarm if you have time to take a look (thank you if you do). The blog template is under themes/e-commerce/section/blog as expected. This is the page that got empty with new build.

In the meantime, I’ll specify a particular hugo version per mgmart’s suggestion.

Hey @bep, thanks for releasing the new version so quickly. I can confirm the new version 0.22.1 fix my issue described in this thread now.