Samarth’s personal website built using the Hugo static site generator and org-mode.
- Clone the repo
- Initialize the theme submodule via
git submodule init - Update the theme submodule via
git submodule update --recursive --remote - If you’re using the
nixpackage manager, runnix-shellto get a development shell withhugoinstalled.
- Add a new section to the org-mode file at
content-org/posts.org - Add a TODO, tag, and properties to the section
- Once finished writing, mark the section as DONE
- Export the section in Emacs using ox-hugo which will create a new Markdown file in the
content/postsdirectory
- Run
hugo server -Dto get a development web server to see the changes - Once happy with the changes, run the
hugocommand to generate thepublicdirectory - Copy the contents of the
publicdirectory to the server hosting your server. For example,rsync -avz public/ samarth@samarth.me:/var/www/htdocs/.