Resource Counters B
Description/Summary
:counter is set in title, name and params. Observation Counter increments in name ✅ Counter increments in title ✅ Counter increments in foo 🚫 — Probably :counter does not work in params. Ref Hugo Issue #4334 → discourse discussion → Hugo Issue #4335 Ref
Content
:counter
is set in title
, name
and params
.
Observation
- Counter increments in
name
✅ - Counter increments in
title
✅ - Counter increments in
foo
🚫 — Probably:counter
does not work inparams
.
Ref
- Hugo Issue #4334 → discourse discussion → Hugo Issue #4335
- Ref
Resources
Page (Debug)
Page Variable | Value | |
---|---|---|
Name | "Resource Counters B" | |
Title | "Resource Counters B" | |
ResourceType | "page" | |
Kind | "page" | |
Section | "posts" | |
Draft | false | |
Type | "posts" | |
Layout | "" | |
Permalink | "https://hugo-sandbox.netlify.com/posts/resources-counters-b/" | |
RelPermalink | "/posts/resources-counters-b/" | |
Data |
| |
NextPage | Resource Counters A | |
PrevPage | Resource Counters C | |
NextInSection | Resource Counters A | |
PrevInSection | Resource Counters C |
Page Params (Debug)
maps.Params{"author":[]string{"Kaushal Modi"}, "date":time.Date(2018, time.January, 26, 12, 45, 0, 0, time.Location("")), "draft":false, "iscjklanguage":false, "lastmod":time.Date(2018, time.January, 27, 21, 21, 47, 0, time.Location("")), "publishdate":time.Date(2018, time.January, 26, 12, 45, 0, 0, time.Location("")), "resources":[]map[string]interface {}{map[string]interface {}{"name":"pdf-file-:counter", "params":map[string]interface {}{"foo":"foo-:counter"}, "src":"**.pdf", "title":"PDF File #:counter"}}, "tags":[]string{"resources", "fixed"}, "title":"Resource Counters B"} (type:maps.Params) |
Resources (Debug)
Resource Variable | Value | |
---|---|---|
Name | "pdf-file-1" | |
Title | "PDF File #1" | |
ResourceType | "application" | |
Permalink | "https://hugo-sandbox.netlify.com/posts/resources-counters-b/documents/checklist.pdf" | |
RelPermalink | "/posts/resources-counters-b/documents/checklist.pdf" | |
Params |
|
Resource Variable | Value | |
---|---|---|
Name | "pdf-file-2" | |
Title | "PDF File #2" | |
ResourceType | "application" | |
Permalink | "https://hugo-sandbox.netlify.com/posts/resources-counters-b/documents/guide.pdf" | |
RelPermalink | "/posts/resources-counters-b/documents/guide.pdf" | |
Params |
|
Resource Variable | Value | |
---|---|---|
Name | "pdf-file-3" | |
Title | "PDF File #3" | |
ResourceType | "application" | |
Permalink | "https://hugo-sandbox.netlify.com/posts/resources-counters-b/documents/photo_specs.pdf" | |
RelPermalink | "/posts/resources-counters-b/documents/photo_specs.pdf" | |
Params |
|
File Object (Debug)
FileInfo Variable | Value |
---|---|
UniqueID | "cea77eb46faab6351f68e2bb9e29a6f5" |
BaseFileName | "index" |
TranslationBaseName | "index" |
Lang | "en" |
Section | "posts" |
LogicalName | "index.md" |
Dir | "posts/resources-counters-b/" |
Ext | "md" |
Path | "posts/resources-counters-b/index.md" |