.Kind (page): .Type (posts) / .Layout ()
Bundle: leaf
[ categories | projects | tags | search ]
Hugo Sandbox

This is an unofficial Hugo sandbox site to try to replicate possible bugs in hugo.

It is updated automatically after each commit to the hugo-sandbox repo. It was last updated on Oct 09, 2018 14:48 UTC.


This page was created/modified in commit e8302f5 "Add "fixed" tags to test cases for fixed bugs" on 2018-01-27.
Markdown source of this page

Resource Counters B

tags: resources fixed


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

Ref


Resources


Page (Debug)

Page VariableValue
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/"
RSSLink ""
Data
KeyTypeValue
Pageshugolib.Pages
NextPageResource Counters A
PrevPageResource Counters C
NextInSectionResource Counters A
PrevInSectionResource Counters C

Page Params (Debug)

KeyTypeValue
author[]string "Kaushal Modi"
datetime.Time 2018-01-26 12:45:00 -0500 -0500
draftbool false
iscjklanguagebool false
lastmodtime.Time 2018-01-27 21:21:47 -0500 -0500
publishdatetime.Time 2018-01-26 12:45:00 -0500 -0500
resources[]map[string]interface {}
KeyTypeValue
namestring "pdf-file-:counter"
paramsmap[string]interface {}
KeyTypeValue
foostring "foo-:counter"
srcstring "**.pdf"
titlestring "PDF File #:counter"
tags[]string "resources" "fixed"
titlestring "Resource Counters B"

Resources (Debug)

Resource VariableValue
Name "pdf-file-1"
Title "PDF File #1"
ResourceType "pdf"
Permalink "https://hugo-sandbox.netlify.com/posts/resources-counters-b/documents/checklist.pdf"
RelPermalink "/posts/resources-counters-b/documents/checklist.pdf"
Params
KeyTypeValue
foostring "foo-:counter"
Resource VariableValue
Name "pdf-file-2"
Title "PDF File #2"
ResourceType "pdf"
Permalink "https://hugo-sandbox.netlify.com/posts/resources-counters-b/documents/guide.pdf"
RelPermalink "/posts/resources-counters-b/documents/guide.pdf"
Params
KeyTypeValue
foostring "foo-:counter"
Resource VariableValue
Name "pdf-file-3"
Title "PDF File #3"
ResourceType "pdf"
Permalink "https://hugo-sandbox.netlify.com/posts/resources-counters-b/documents/photo_specs.pdf"
RelPermalink "/posts/resources-counters-b/documents/photo_specs.pdf"
Params
KeyTypeValue
foostring "foo-:counter"

File Object (Debug)

FileInfo VariableValue
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"

This site is generated using the ox-hugo package for Emacs/Org-mode + hugo-bare-min-theme + Hugo 0.50-DEV (commit d5d50e2f, using Chroma commit d5ca12b) .

[Back to Hugo Sandbox home]