Skip to content

Tufte-inspired theme for Part One on litfl.com; built with Blogdown and Hugo.

License

Notifications You must be signed in to change notification settings

cjdbarlow/titfl-hugo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tufte in the Fast Lane

Hugo License: MIT

A theme for Blogdown with Hugo, based on the excellent Hugo Book theme from Alex Shpak.

Note: This has now been abandoned in favour of a bookdown-based approach, which offers more flexibility and fewer dependencies than blogdown. It is left here because it works, and as a reminder that I should read more before I start building. I will probably forget.

Requirements

For the basic theme:

  • Hugo

For R code and glossary:

  • R
  • R Studio
    Not required, but recommended.
  • The following packages:
    • Blogdown

For pdf output:

  • Node JS
  • Puppeteer

Setup

  1. Clone this repo to desired directory
  2. Download R studio and install blogdown (see the blogdown guide)
  3. Navigate to titfl/pdfgen and run npm i puppeteer to install puppeteer and chromium

Edit the site from the contents directory. Note this is not content; in order to prevent the Rmarkdown files being overwritten by Hugo (and an ugly file structure from duplicates) the content directory required by Hugo is rebuilt by R each time the site is generated.


To Do

Soon:

  • Finish PDF output
    • CSS tweaks
    • PDF generation
  • Nicer 404 page
  • Newthought CSS
  • Stickysmooth active nav
  • Change SVGs to fa-font variants

Someday:

  • Search summaries

About

Tufte-inspired theme for Part One on litfl.com; built with Blogdown and Hugo.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • SCSS 39.8%
  • HTML 32.2%
  • CSS 18.7%
  • JavaScript 7.9%
  • R 1.4%