| #' Bulma Document Renderer | #' Bulma Document Renderer | ||||
| #' | #' | ||||
| #' TODO Document YAML options here. | |||||
| #' @section YAML options: | |||||
| #' You can pass additional options to the underlying template via the `bulma` | |||||
| #' YAML item. The following options can be specified there. | |||||
| #' \itemize{ | |||||
| #' \item{`hero`: Classes applied to the hero containing the title} | |||||
| #' \item{`hero_button`: Classes applied to the `header_links` buttons} | |||||
| #' } | |||||
| #' | #' | ||||
| #' @inheritDotParams rmarkdown::html_document_base | #' @inheritDotParams rmarkdown::html_document_base | ||||
| #' @export | #' @export |
| $endif$ | $endif$ | ||||
| $if(header-links)$ | $if(header-links)$ | ||||
| $for(header-links)$ | $for(header-links)$ | ||||
| <a class="button is-primary is-inverted is-outlined" href="$header-links.url$">$header-links.name$</a> | |||||
| <a class="button $if(bulma.hero_button)$$for(bulma.hero_button)$$bulma.hero_button$$sep$ $endfor$$else$is-primary is-inverted is-outlined$endif$" href="$header-links.url$">$header-links.name$</a> | |||||
| $endfor$ | $endfor$ | ||||
| $endif$ <!-- header-links --> | $endif$ <!-- header-links --> | ||||
| </div> | </div> |
| extra: | extra: | ||||
| - "Second Affiliation" | - "Second Affiliation" | ||||
| - "Very Cool Guy" | - "Very Cool Guy" | ||||
| date: '`r strftime(Sys.time(), "%F %T")`' | |||||
| date: '`r strftime(Sys.time(), "%A, %B %e, %Y")`' | |||||
| header-links: | header-links: | ||||
| - name: Github | - name: Github | ||||
| url: https://github.com/gerkelab | url: https://github.com/gerkelab | ||||
| - name: Home | - name: Home | ||||
| url: https://gerkelab.com | url: https://gerkelab.com | ||||
| bulma: | bulma: | ||||
| hero: ["info", "bold"] | |||||
| hero: ["dark"] | |||||
| hero_button: ["is-secondary"] | |||||
| output: bulma::bulma_document | output: bulma::bulma_document | ||||
| editor_options: | editor_options: | ||||
| chunk_output_type: console | chunk_output_type: console |