Ascochyta Blight Workshop 2022 website
This conference website repository is based on the Hugo conference-theme developed by Jonhnny Weslley for conferences/events, based on the original conf-boilerplate theme by BrazilJS Foundation.
You can build the site using standalone Hugo, or with the R package blogdown (that handles Hugo setup, site building and serving using R commands and the RStudio interface).
Instructions for getting up and running with either of these options are listed below:
-
Install Hugo
-
Create a new site by running:
hugo new site my-conf cd my-conf git clone https://github.com/jweslley/hugo-conference themes/hugo-conference rm -f config.toml cp themes/hugo-conference/exampleSite/config.yml .
-
It's done. Just start Hugo server to see it live!
hugo server --watch
Follow these steps to get up and running in no time:
# install required packages (you will need to install the 'remotes' package first)
# install.packages('remotes')
remotes::install_github('r-lib/usethis')
remotes::install_github('rstudio/blogdown')
# load required packages
library(usethis)
library(blogdown)
# create a new project and setup git for version control
create_project('path-to-project')
use_git()
use_github()
# create the new site
new_site(theme = "jweslley/hugo-conference")
file.copy("themes/hugo-conference/exampleSite/config.yml", "config.yaml", overwrite=TRUE)
serve_site()
- From RStudio, install blogdown using
install.packages('blogdown')
(or the development version withremotes::install_github('rstudio/blogdown')
) - Create a new project in RStudio (in the File menu), make sure you tick the 'use git for version control' checkbox (alternatively use the functions from
usethis
as described above). - Create the new site with
blogdown::new_site(theme = "jweslley/hugo-conference")
. - Copy the theme config file to the root folder with
file.copy("themes/hugo-conference/exampleSite/config.yml", "config.yaml", overwrite=TRUE)
(note that we changed the file suffix from.yml
to.yaml
so it will be recognised by blogdown/Hugo) - Serve the site with
blogdown:::serve_site()
(or using the Serve Site option under the Blogdown section in the Addins menu in RStudio)
More about project management and version control in R can be found in the following resources:
- Structuring R Projects by Chris von Csefalvay
- Happy Git and GitHub for the useR by Jennifer Bryan
usethis
R package - see documentation and setup instructions at https://usethis.r-lib.org/articles/usethis-setup.html
More about creating websites and blogging with blogdown
can be found in the excellent blogdown: Creating Websites with R Markdown by Yihui Xie, Amber Thomas, Alison Presmanes Hill, as well as the more updated blog post Up & running with blogdown in 2021 by Alison Presmanes Hill (which includes how to host your new site for free on Netlify or on GitHub pages)
All the site information can be found in the config.yaml
file. Just edit it to make changes.
By default, the site have the following sections:
- About - to describe what's the main goal of your event.
- Location - to show where it's going to happen through Google Maps.
- Speakers - to list information about speakers.
- Schedule - to show the agenda.
- Sponsors - to show the brand of your sponsors.
- Partners - to show the brand of your partners.
PS, It's important to change the baseurl
property from config.yaml
file in order to reflect your settings.
Google now requires a Google Maps JavaScript API Key to show maps. You can obtain your key here. Then export your API key as an environment variable and point to this variable in the GoogleMapsKey
param in the config.yaml
file (see more information about this here).
If Hugo won't start serve your website and complains about version conflict, check that you don't have 2 different versions installed (they are installed on C:\Users\current-user\AppData\Roaming\Hugo
on a Windows computer). You can check which version is used by blogdown by running blogdown::hugo_version()
and if there's a conflict, you can specify the correct version in .Rprofile
in the repository (add the following line: options(blogdown.hugo.version = "0.92.0")
, as an example, modify as needed based on the version installed in your system).
MIT, see LICENSE.