You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From #21, each index page has been generated from a template. The info in the templates needs to be updated for each page
Template
A 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:
Technically 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
---
title: "Nina Elizondo-Garza Fieldnotes"
template: fieldnote
semester: "fa17"
fullsemester: "Fall 2017"
student: "Nina Elizondo-Garza"
intro: "Nina is a person. She was born at a very young age."
pages:
- title: "Historical Culinary Reconstruction"
link: "fa17_fld_elizondo-garza_nina_hcr.html"
desc: ""
- title: "Verdigris Experiment"
link: "fa17_fld_elizondo-garza_nina_verdigris-experiment.html"
desc: ""
- title: "An Exploration of Bread Making"
link: "fa17_fld_elizondo-garza_nina_an-exploration-of-bread-making.html"
desc: ""
- title: "From Madder Root to Madder Lake"
link: "fa17_fld_elizondo-garza_nina_from-madder-root-to-madder-lake.html"
desc: ""
- title: "Azurite"
link: "fa17_fld_elizondo-garza_nina_azurite.html"
desc: ""
- title: "Flour Stucco and Paste Glue"
link: "../dongchung_tenzin/fa17_fld_dongchung_tenzin_stucco.html"
desc: ""
- title: "Annotation Plans"
link: "../../ann/stucco_elizono-garza/fa17_ann_stucco_elizondo-garza_annotation-plans.html"
desc: ""
- title: "Stucco Annotation Fieldnotes"
link: "../../ann/stucco_elizono-garza/fa17_ann_stucco_elizondo-garza-stucco-fol-29r-1.html"
desc: ""
- title: "Stucco Annotation - Painting Stucco"
link: "../../ann/stucco_elizono-garza/fa17_ann_stucco_elizondo-garza_stucco-annotation-painting-stucco.html"
desc: ""
---
Pandoc command
To generate the file corresponding to the index.md for Nina above, use this:
From #21, each index page has been generated from a template. The info in the templates needs to be updated for each page
Template
A 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 metadata
Technically 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 command
To generate the file corresponding to the
index.md
for Nina above, use this:This will generate a file called
index.html
which looks just likefieldnote.html
, but the variables will be filled in with the content fromindex.md
.CSS/stylesheets
I am still figuring this out. Should be trivial to add it to the template and/or incantation.
Originally posted by @gschare in #21 (comment)
The text was updated successfully, but these errors were encountered: