This repo contains the website for the transparent statistics in HCI group at transparentstatistics.org.
The website is created and served using blogdown. I recommend using RStudio to create and edit content. You can then use blogdown::serve_site()
in R to preview the website locally. See the blogdown documentation for more information.
The directories of interest are probably:
-
content/: The directory containing most of the dynamic content. I recommend writing content as
.Rmd
files, which will be compiled into HTML when the website is built. Do not edit HTML files directly in this folder. -
content/_index.Rmd: The source file for the home page.
-
content/blog/*.Rmd: The source files for blog posts.
-
static/: The directory containing static content.
-
public/: The directory output directory, into which the contents of
content/
(after being compiled) and the contents ofstatic/
are copited when the website is built. Do not edit directly.
- Clone this repository locally.
- Open the Rproj project in RStudio. You may need to run
install.packages('blogdown')
the first time. - Open the Rmd file in
content/
orcontent/blog/
- Save. And Click the "Knit" above the editor.
- Click
Build Website
in theBuild
tab on the right. - Commit the changes to git and push to github.
- You may need to do a PR and merge if you've forked the repo.
- Clone this repository locally.
- Open the Rproj project in RStudio. You may need to run
install.packages('blogdown')
the first time. - Add a new Rmd file to
content/
orcontent/blog/
- For a blog post, make sure to copy the date format in the filename.
- Copy the header content from one of the existing files, and add your content.
- Save. And Click the "Knit" above the editor.
- Click
Build Website
in theBuild
tab on the right. - Commit the changes to git and push to github.
- You may need to do a PR and merge if you've forked the repo.
See config.toml
For further customization, see themes/hugo-lithium/layouts/partials/nav.html
The deployed version of the website is built automatically by Netlify based on the master
branch of this repository on Github. Therefore, please do not push things to master that you haven't tested :).