Browse Source

Update page variable list for custom taxonomies

I love the new support for custom taxonomies! I got a little thrown off when updating my site, though, as the docs didn't specify how the page would expose the taxonomies to the template. Wasn't too hard to figure it out, but I figured I'd save the next person who tries it the effort :)
index-subcmd
Joe Clay GitHub 6 years ago
parent
commit
005e1f00b6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      docs/content/documentation/templates/pages-sections.md

+ 1
- 2
docs/content/documentation/templates/pages-sections.md View File

@@ -25,8 +25,7 @@ draft: Bool;
components: Array<String>; components: Array<String>;
permalink: String; permalink: String;
summary: String?; summary: String?;
tags: Array<String>;
category: String?;
taxonomies: HashMap<String, Array<String>>;
extra: HashMap<String, Any>; extra: HashMap<String, Any>;
// Naive word count, will not work for languages without whitespace // Naive word count, will not work for languages without whitespace
word_count: Number; word_count: Number;


Loading…
Cancel
Save