ropensci / dataspice

:hot_pepper: Create lightweight schema.org descriptions of your datasets
https://docs.ropensci.org/dataspice
Other
159 stars 26 forks source link

Display citation and author fields in the html page #117

Open ccamara opened 1 year ago

ccamara commented 1 year ago

Hello,

I'd like to display the creators' info as well as how to cite in the html page. I know the page is created from this template https://github.com/ropensci/dataspice/blob/main/inst/template.html5 . I also know that I can use a custom template and pass it via build_site(template_path = "templates/custom_dataspice_template.html"), so it would be relatively easy to customise the output (thanks for thinking of a templating system!).

But apparently not every column in the csv files is parsed to shortcodes (is that right word for these? {{description}}, {{#keywords}}), and for example, {{author}} or {{citation}} are missing. That makes me realise that I do not understand where do those shortcodes come from/how are they generated, so I cannot modify that template as I'd like to.