"slugify"ing in nunjucks as jekll no longer allows filters in front matter

This commit is contained in:
perry 2016-02-05 15:35:15 -06:00
parent bd72960a99
commit 616f244698

View File

@ -4,7 +4,7 @@ version: "<$ version.current.name $>"
versionHref: "<$ version.current.href $>" versionHref: "<$ version.current.href $>"
path: "<$ doc.path $>" path: "<$ doc.path $>"
category: platform category: platform
id: "{{<$ doc.name $> | slugify}}" id: "<$ doc.name|lower|replace(' ','-') $>"
title: "<@ if doc.docType == "directive" @><$ doc.name | dashCase $><@ else @><$ doc.name $><@ endif @>" title: "<@ if doc.docType == "directive" @><$ doc.name | dashCase $><@ else @><$ doc.name $><@ endif @>"
header_sub_title: "<$ doc.docType | capital $> in module <$ doc.module $>" header_sub_title: "<$ doc.docType | capital $> in module <$ doc.module $>"
doc: "<$ doc.name $>" doc: "<$ doc.name $>"