smol icon indicating copy to clipboard operation
smol copied to clipboard

Wrong count of total number of pages

Open etanot opened this issue 4 years ago • 0 comments

Type: Bug report

Description

When we create a new site without any post, count of total number of page is 0, which should be 1, see below screenshot:

hugo-smol-theme

Steps to reproduce

  • Run following commands:
    $ hugo new site quickstart
    $ cd quickstart
    $ git init .
    $ git submodule add https://github.com/colorchestra/smol/ themes/smol
    $ echo "theme = \"smol\"" >> config.toml
    $ hugo server
    
  • Now open address specified by hugo.
  • Look for sentence "1 of 0".

Actual behavior

Count of total number of pages is 0.

Expected behavior

Count of total number of pages should be 1.

Additional

As soon as first post deployed, this issue is fixed.

etanot avatar Sep 14 '21 16:09 etanot