gcushen/hugo-academic
Introduction:
A little bit about blogdown and the Academic theme here…
It will also be “quoted” throughout. He gives us some motivation for using blogdown and hugo-academic.
gcushen/hugo-academic
This will create a large, overwhelming (if I may) architecture for your website of about 500 files/directories. Let’s look at only the top layer.
I’ll be using ::
syntax too, so you’ll know what functions come from what packages.
../academic_website
├── academic_website.Rproj
├── config
├── config.toml
├── content
├── index.Rmd
├── public
├── resources
├── static
└── themes
Here’s Dan telling us about it.
# Configuration of Academic
# Documentation: https://sourcethemes.com/academic/
#
# This file is formatted using TOML syntax - learn more at https://learnxinyminutes.com/docs/toml/
# Each configuration section is defined by a name in square brackets (e.g. `[outputs]`).
# Title of your site
title = "Gina Reynolds" <- Change this part!
../academic_website/config
└── _default
├── languages.toml
├── menus.toml
└── params.toml
This section:
############################
## Theme
############################
# Choose a theme.
# Latest themes (may require updating): https://sourcethemes.com/academic/themes/
# Browse built-in themes in `themes/academic/data/themes/`
# Browse user installed themes in `data/themes/`
theme = "minimal"
Demo.md looks like this:
+++
# A Demo section created with the Blank widget.
# Any elements can be added in the body: https://sourcethemes.com/academic/docs/writing-markdown-latex/
# Add more sections by duplicating this file and customizing to your requirements.
widget = "blank" # See https://sourcethemes.com/academic/docs/page-builder/
headless = true # This file represents a page section.
active = false # Activate this widget? true/false
weight = 15 # Order that this section will appear.
Most of the files you need to edit are here:
../academic_website/content/home
├── about.md
├── accomplishments.md
├── contact.md
├── demo.md
├── experience.md
├── featured.md
├── gallery
├── hero.md
├── index.md
├── people.md
├── posts.md
├── projects.md
├── publications.md
├── skills.md
├── slider.md
├── tags.md
└── talks.md
But you have to go one layer down to change the setting for gallery, in the index.md file.
../academic_website/content/home/gallery
├── gallery
│ ├── theme-1950s.png
│ ├── theme-apogee.png
│ ├── theme-coffee-playfair.png
│ ├── theme-dark.png
│ ├── theme-default.png
│ ├── theme-forest.png
│ ├── theme-ocean.png
│ └── theme-strawberry.png
└── index.md
The section looks like this:
############################
## Contact details
##
## These details power the Contact widget (if enabled).
## Additionally, for organizations, these details may be used to enrich search engine results.
############################
# Enter contact details (optional). To hide a field, clear it to "".
You may see them dynamically updating too.
To see how your updates look on your website, save the file in Rstudio, and then run the “blogdown:::serve_site()” command.
Each publication has a dedicated folder. To include your first publication, navigate to the “content/publication/journal-article” folder, and open up the “index” file.
just add it to your publication’s folder and call it “featured.jpg”. This might be a figure from you paper.