Variable page titles? (without using variables) :O)


#1

Hi, all. Does anyone know of any trick whatsoever to mimic using a variable for different outputs, by using the page title metadata? That is, to achieve the following if it were supported?

title: Installing {{site.data.kwd.prod}}

where different builds would have different data dirs/files

data_dir: data_product-a

and

data_dir: data_product-b

I know you can’t use variables in the yaml, but I’d really like to keep the title in the yaml rather than making it a head 1 so that I can use the title in the table of contents and elsewhere. Or, if I do have to make it a head 1… anyone know of a plugin that scans all the pages/posts head 1s and saves it to a hash with page.url=>page.first-heading-of-page :smiley: