I want to automatically index elements like figures and tables
This change adds page-based counters for figures and tables using Hugo .Scratch. Adds automatic counters for figures and tables
This commit is contained in:
parent
a03bb3f465
commit
7e03bb3c64
6 changed files with 8 additions and 2 deletions
2
layouts/partials/page-variables-deinit.html
Normal file
2
layouts/partials/page-variables-deinit.html
Normal file
|
@ -0,0 +1,2 @@
|
|||
{{ .Page.Scratch.Delete "fig" }}
|
||||
{{ .Page.Scratch.Delete "table" }}
|
2
layouts/partials/page-variables-init.html
Normal file
2
layouts/partials/page-variables-init.html
Normal file
|
@ -0,0 +1,2 @@
|
|||
{{ .Page.Scratch.Set "fig" 1 }}
|
||||
{{ .Page.Scratch.Set "table" 1 }}
|
Loading…
Add table
Add a link
Reference in a new issue