creds2 / website

CREDS Website source code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

---
output: github_document
---

<!-- README.md is generated from README.Rmd. Please edit that file -->

```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
```

# Informal website of CREDS Theme 2

To go onto the main website after testing.

To edit the homepage edit `index.Rmd`.

To create a new post, do:

```{r, eval=FALSE}
blogdown::new_post()
```


# How it was created

Website was created as follows

```{r, engine='bash', eval=FALSE}
curl -u robinlovelace https://api.github.com/orgs/creds2/repos -d '{"name":"creds2.github.io", "description":"CREDS Website", "private": false, "has_issues": true, "has_projects": true, "has_wiki":false }'
curl -u robinlovelace https://api.github.com/orgs/creds2/repos -d '{"name":"website", "description":"CREDS Website source code", "private": false, "has_issues": true, "has_projects": true, "has_wiki":false }'
git init
git remote add origin git@github.com:creds2/website
git status
git add -A
git commit -am 'Initialise website repo'
git push --set-upstream master
git push origin master
```

Then in R:

```{r, eval=FALSE}
devtools::install_github("rstudio/blogdown")
dir.create("site_temp")
blogdown::new_site(dir = "site_temp")
list.files("site_temp/")
system("mv -v site_temp/* .")
```

And to serve:

```{r}
blogdown::build_site()
blogdown::serve_site()
```


About

CREDS Website source code


Languages

Language:HTML 58.5%Language:CSS 36.4%Language:JavaScript 5.1%