Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Distill
Destry wrote #305171:
Managed to get these figured out with a little help from the Jekyll community. It was far easier than I was fighting with. You may see the explanations in the two issues per links above.
The one for authors/affils even shows a bonus alternative method where a new YAML data file is used to centralize data for all contributors on the project:
---
jim_jones:
who: "Jim Jones"
affiliation: "Jim Jones & Bros."
affiliation_url: "url"
jane_doe:
who: "Jane Doe"
affiliation: "JD Shop"
affiliation_url: "url"
etc:
Then in the local .md file you simply call the relevant authors with an adjusted front matter variable:
---
collaborators: [jim_jones, don_dealio, et_cetera, ...]
Managers can maintain the data file. Authors can add their juice to the collaborators variable in the local .md file in a way that’s even less likely for them to screw up. ;)
And I should be able to use the centralize data to create a wrapping list of contributor names on the index page too, though I’ve not figured the markup for that just yet. But anyway.
Offline