class: title-slide, center, bottom background-image: url(img/gopher-hero.svg) background-position: 50% 20% background-size: 25% background-color: #ffffff # Introduce Yourself Online ## A workshop @ rstudio::global(2021) ### Dr. Alison Presmanes Hill --- class: inverse, center, middle # Why Hugo? --- class: center, middle # Why Hugo? -- Markdown first -- Content organization (subfolders!) -- Layouts -- Multilingual sites -- Powerful taxonomies -- Magical [list templates](https://gohugo.io/templates/lists/) --- class: inverse, center, middle ## What *is* Hugo? -- `themes/hugo-apero/layouts/` --- class: middle ```html <header class="post-header"> <h1 class="f1 lh-solid measure-narrow mb3 fw4">{{ .Title }}</h1> {{ if .Params.subtitle }} <h4 class="f4 mt0 mb4 lh-title measure"> {{ .Params.subtitle }} </h4> {{ end }} </header> ``` --  --- class: bottom, center background-image: url(img/mustache.jpg) background-size: 25% background-color: #ffffff ## Hugo = a double curly brace templating system ## `{{ <hugo code goes here> }}` --- class: middle # Use your YAMLs π AKA "frontmatter" .pull-left[ ```yaml --- title: "Using panelsets" subtitle: "How to add panelsets..." --- ``` ] -- .pull-right[ ```go {{ .Title }} {{ .Params.subtitle }} ``` ] --- class: middle # Hugo Page Bundles ``` . βββ content/ β βββ privacy/index.md # => a leaf bundle β βββ faves/ # => a branch bundle β βββ _index.md # => AHA! β βββ roses/index.md # => a leaf bundle β βββ kittens/index.md # => another leaf bundle β βββ kettles/index.md # => yet another leaf bundle ``` --- class: middle # Hugo list vs single templates .pull-left[  ] -- .pull-right[  ] --- class: middle # Hugo list vs single templates ``` . βββ content/ β βββ privacy/index.md # => single page β βββ faves/ β βββ _index.md # => **list all faves**! β βββ roses/index.md # => single page β βββ kittens/index.md # => single page β βββ kettles/index.md # => single page ``` --- class: activity, center, middle # β± ## To configure your new Hugo site! π 10 minutes