~shreyasminocha/shreyasminocha.me

my site
bcdbc4fa — Shreyas Minocha 5 months ago
Update meta description
4df522f6 — Shreyas Minocha 5 months ago
Temporarily nuke about page
7cd77a90 — Shreyas Minocha 5 months ago
Move home page content to separate file

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~shreyasminocha/shreyasminocha.me
read/write
git@git.sr.ht:~shreyasminocha/shreyasminocha.me

You can also use your local clone with git send-email.

#shreyasminocha.me

Source code for my personal website. Built using hugo.

#Structure

  • archetypes: files with standard frontmatter for each collection.
  • content: blog posts, about page, other collections.
  • layout
    • _default: templates that specify how content will be rendered to static pages.
    • partials: small re-usable portions portions meant to reduce duplication across layouts.
    • shortcodes: similar to partials but meant for reuse within content.
  • static: static files—images, stylesheets, scripts, fonts etc
  • config.yml: configuration

#Testing

#Running a server for development

hugo serve -p <port> --disableLiveReload --noHTTPCache --buildDrafts

I personally use hotel for managing development servers, so after

hotel add --name shreyasminocha 'hugo serve -p $PORT --disableLiveReload --noHTTPCache --buildDrafts'

...and some configuration, I can access my local dev server at shreyasminocha.localhost.

#Running linters

Install dev dependencies:

npm install

Run tests with:

npm test # Currently just runs `gulp`

Or more specifically, assuming you have gulp installed globally, run it with:

gulp

#Deployments

Deployments are made using Vercel.

#License

Source code is licensed under the MIT license.

Website content (including blog posts) is licensed under Attribution-ShareAlike 4.0 International.