~shreyasminocha/shreyasminocha.me

my site
1c7426bc — Shreyas Minocha 5 months ago
Update about page
22981603 — Shreyas Minocha 1 year, 10 days ago
Update about and uses pages
aef8aeed — Shreyas Minocha 1 year, 14 days ago
Update about page

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.