Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

59 lines
1.2KB

  1. ---
  2. title: "Layout Tests"
  3. subtitle: "Testing Bulma Layout Elements"
  4. author:
  5. - name: First Author
  6. url: https://rstudio.com
  7. extra:
  8. - "First Affiliation"
  9. - "@tweeter345"
  10. - name: Second Author
  11. url: https://duckduckgo.com
  12. extra:
  13. - "Second Affiliation"
  14. - "Very Cool Guy"
  15. date: '`r strftime(Sys.time(), "%A, %B %e, %Y")`'
  16. header-links:
  17. - name: Github
  18. url: https://github.com/gerkelab
  19. - name: Home
  20. url: https://gerkelab.com
  21. bulma:
  22. hero: ["dark"]
  23. hero_button: ["is-secondary"]
  24. output: bulma::bulma_document
  25. editor_options:
  26. chunk_output_type: console
  27. ---
  28. ```{r setup, include=FALSE}
  29. knitr::opts_chunk$set(echo = TRUE)
  30. library(bulma)
  31. ```
  32. ## Level
  33. ### Basic
  34. ```r
  35. bulma::bulma_level("Home", "Menu", "Bulma", "Reservations", "Contact")
  36. ```
  37. `r bulma::bulma_level("Home", "Menu", "Bulma", "Reservations", "Contact")`
  38. ### Heading/Number Style
  39. ```r
  40. bulma_level("Tweets" = 3456, Following = 123, Followers = "456K", Likes = 789, style = "header")
  41. ```
  42. `r bulma_level("Tweets" = 3456, Following = 123, Followers = "456K", Likes = 789, style = "header")`
  43. #### Dynamic Level
  44. ```{r}
  45. iris_values <- purrr::map(iris, ~ length(unique(.)))
  46. bulma_level(iris_values, style = "header")
  47. ```