hugo/resource
Bjørn Erik Pedersen 7b472e4608
resource: Start Resources :counter first time they're used
This is less surprising and more flexible than the original implementation.

Given:

```toml
[[resources]]
  src = "documents/photo_specs.pdf"
  title = "Photo Specifications"
[[resources]]
  src = "**.pdf"
  name = "pdf-file-:counter"
```

Every `pdf` in the bundle will have an unique counter, but the `photo_specs.pdf` is still allowed to have its specific `title`.

If you change the above example to:

```toml
[[resources]]
  src = "documents/*specs.pdf"
  title = "Photo Specifications #:conter"
[[resources]]
  src = "**.pdf"
  name = "pdf-file-:counter"
```

We are talking about two different groups of documents, each with its own counters starting at 1.

Fixes #4335
2018-01-27 10:22:42 +01:00
..
testdata
image.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
image_cache.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
image_test.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
resource.go resource: Start Resources :counter first time they're used 2018-01-27 10:22:42 +01:00
resource_test.go resource: Start Resources :counter first time they're used 2018-01-27 10:22:42 +01:00
testhelpers_test.go