Skip to content

Instantly share code, notes, and snippets.

@vibhoraggarwal
Last active February 18, 2023 03:22
Show Gist options
  • Save vibhoraggarwal/20c02e60d5d806579d2969702a188e94 to your computer and use it in GitHub Desktop.
Save vibhoraggarwal/20c02e60d5d806579d2969702a188e94 to your computer and use it in GitHub Desktop.
Tips collected from various hugo sessions

Exporting pdfs from Markdown slides

For example if slide is running for example/index.md:

  • Change https://vibhoraggarwal.github.io/slides/example/#/ to https://vibhoraggarwal.github.io/slides/example/?print-pdf#/
  • Use CTRL+P

Updating the website

  • Download hugo-extended v0.84.4
  • Clone academic-kickstart from the forked repository using:
$ git clone https://github.com/vibhoraggarwal/academic-kickstart.git
$ git submodule update --init --recursive
$ hugo
$ cd public
$ git add . && git commit 
$ git push
$ hugo server --bind=<IP-address> for local devices to access the website
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment