Skip to content

bhardwaj-lab/bhardwaj-lab.github.io

Repository files navigation

Install from scratch on a mac

  1. Install homebrew (needs sudo)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  1. Install hugo using homebrew
brew install hugo
  1. Install nodejs and npm for mac. This already bring yarn as well.

  2. Get Yarn binary in your path via corepack. Then start the project via yarn.

sudo corepack enable
yarn start

To generate the site HTML:

Build with NPM

npm run build

Build with Yarn

yarn build

npm run start will run two commands parallel:
npx tailwindcss -i ./assets/css/main.css -o ./assets/css/style.css --watch

Has paginated Categories and Tags. Markdown files will automatically convert images put into /assets folder to .webp images.

Image shortcodes for webp as well.

{{< imgc src="img-name.jpg" alt="Place alt text here." >}}

Form

To use the form, visit FormSubmit.Co. Locate the contact form in "content/contact.md", and update the form action with the email address you want on this line: action="https://formsubmit.co/your@email.com" method="POST"

Credits

4044ever - Original Theme https://github.com/4044ever/Hugo-Tailwind-3.0.git

Jan Heise - Alpine.js Navbar https://github.com/jan-heise/responsive-navbar-with-dropdown

Releases

No releases published

Packages

No packages published