generated from DACSS/course_blog_template_old
-
Notifications
You must be signed in to change notification settings - Fork 19
/
index.Rmd
36 lines (28 loc) · 1.12 KB
/
index.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
title: "Student Submissions"
site: distill::distill_website
listing: posts
---
```{r echo=FALSE, message=FALSE, warning=FALSE}
####################################################
# Keep this code chunk to keep homepage up-to-date #
####################################################
# Reads in .env file
readRenviron(".env")
# List of environment variables
env <- Sys.getenv(c('COURSE_TITLE', 'SEMESTER'))
# Header title
header_title = paste('<section class="index-title">',
'<h1>{{env[1]}}</h1>', # COURSE_TITLE Header
'<h2>{{env[2]}}</h2>', # SEMESTER Header
'</section>', sep = '')
# Dynamically creates header title when knitted
out <- NULL # Set to NULL at first to allow paste() below to work
out <- c(out, knitr::knit_expand(text = header_title))
# Below dynamically created header titles is pasted below
```
`r paste(knitr::knit(text = out), collapse = '\n')`
```{r title-page-plot, echo=FALSE, fig.asp=.25, fig.width=20, message=FALSE, warning=FALSE, layout="l-screen-inset image-hide"}
# Homepage header image
knitr::include_graphics('./images/networks.png')
```