-
Notifications
You must be signed in to change notification settings - Fork 0
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
templating for index pages #21
Comments
SemesterM&K has taught the Lab Seminar, GU8906: Craft and Science: Making Objects in the Early Modern World since 2014 with each semester organized around a different theme. Students undertake hands-on work in the laboratory while keeping hybrid lab/field notes, resulting in the pages archived here. They include notes for skill-building exercises as well as their original research towards an annotation (what then became the Research Essays of Secrets of Craft and Nature) typestudentpages
Actions:
Example of deepest directory:
|
We need content (descriptions of what these are) for the following types pages:
e.g., the home page would be whatever landing page, contextual BLAH we want to say @gschare please provide structure for this content for me to fill in |
I am going off of what I did for Columbia Space Initiative, which uses Jekyll, and for the issue tracker archive, which uses pandoc templating. A template for a type of page (e.g. semester, field notes) will look rather like this: There is also the content which will be written mostly by Naomi and substituted into the template to form a complete, statically-generated HTML file. That is technically an HTML file but it will mostly consist of YAML headers specifying what the variables will be substituted with. Here is an example of that which gets inserted into the above template: |
TemplateA template is a single HTML file kept in a special folder in the repo which describes how a class of files should be formatted. It includes variables which, during generation, are filled in with values. Here, the variables are enclosed in For example, the template for a student's index of fieldnotes in a given semester looks something like this: fieldnote.html
YAML metadataTechnically a Markdown file, but the most important thing is the YAML header at the top which details the content for each variable in the template. There is a one-to-one correspondence between these files and the files that get generated at the end. So, we will need one of these "content files" for each of the files we want to generate. For example, Nina Elizondo-Garza's content might look something like this: index.md
Pandoc commandTo generate the file corresponding to the
This will generate a file called CSS/stylesheetsI am still figuring this out. Should be trivial to add it to the template and/or incantation. |
thanks arthur |
Next steps:
|
Templates and all index.md files have been created, as of 8225f73. It remains to add content for index.md files and adjust templates until we like how it looks. |
This is now continued in #25 |
We need a template for what the new navigable index pages should be.
I think we can keep this quite simply, and essentially just have:
Let me know if anything else should be added.
The text was updated successfully, but these errors were encountered: