How to add numbers to the Publication list in Hugo academic 0.3.0

One of the major complaints about Hugo academic is that the Publication list is not numbered. It seems that other people have the same complaint.

github.com

I leave a note about forcibly changing the template to number the list. Please note that I am using a very old version of Hugo academic 0.3.0, so it may not work in the current version.

The lines around 50 of themes/academic/layouts/section/publication.html should be revised as follows:

      <div id="container-publications">
          <ol reversed>

          {{ range .Pages.ByDate.Reverse }}

          {{ if .Params.publication_types }}
            {{ $.Scratch.Set "pubtype" (index .Params.publication_types 0) }}
          {{ else }}
            {{ $.Scratch.Set "pubtype" 0 }}
          {{ end }}
            <div class="grid-sizer col-lg-12 isotope-item pubtype-{{ $.Scratch.Get "pubtype" }} year-{{ .Date.Format "2006" }}" style="margin-left: 15px">
          <li>
            {{ if eq $.Params.view 1 }}
              {{ partial "li_list" . }}
            {{ else if eq $.Params.view 3 }}
              {{ partial "li_card" . }}
            {{ else if eq $.Params.view 4 }}
              {{ partial "li_citation" . }}
            {{ else }}
              {{ partial "li_compact" . }}
            {{ end }}
          </li>
        </div>
        {{ end }}
      </ol>