-
Notifications
You must be signed in to change notification settings - Fork 681
program template #113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Open to suggest about better ways we can do this. I don't want to give people too many layers of indirection for building, but the speakers as yaml would probably be better; then we could put the speakers into a speaker page as well as onto their own individual talk pages. |
Since speakers will have bios and headshots that might need to differ between events, I'm imagining a layout like this: and a directory: That way there's good separation when people are editing one type of thing or another. |
No reason we can't have mulitple yaml files - it will all refer just to whatever query we do. For example, this is an example bit of code that pulls from the events data directory:
there's a goofy thing that happens in go templates/Hugo when you try to shove a variable into a scope.
but it won't I think that it would be @bridgetkromhout has mentioned she doesn't like having One True YAML File for all the Things, but we might need that at least for a first pass, based upon my imperfect understanding of querying datafiles in Hugo. |
Okay. Sounds like multiple yaml files is out of scope for the first pass. I'm going to refactor my PR to use just one. |
Are we working too hard here? Could we handle most of this with frontmatter instead of a datafile? You already are creating a markdown file for each talk, which is then doing a lookup to get data. All of the fields that are in the datafile could be frontmatter params - if we create an archetype for the "talk" page type, it would pre-populate the frontmatter as needed. As a reference, consider how "episodes" work in ADO. (reference - https://github.com/arresteddevops/ado-hugo/blob/master/themes%2Fado%2Flayouts%2Fepisode%2Fsingle.html) |
So I realized what I was suggesting was exactly what @bridgetkromhout is doing. One option, which is not delightful, is to have one big
For more information on our attempts in solving this problem, check out this thread on the the Hugo discussion site. |
Per discussion in Slack:
(Basically saying if we don't get this solved by april 15, we will go with option 2 above for now) |
(Per @bridgetkromhout)
|
#134 moves this in a good direction. This is close to being done (the speaker bio portion). In that last PR, things were changed so the bios now live in |
This is done "enough" with #176 documenting that it works. |
@mattstratton - you'd mentioned bikeshedding in an issue around how to make the program - this is my suggestion: #111
Of note:
The text was updated successfully, but these errors were encountered: