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
nix
package manager, runnix-shell
to get a development shell withhugo
installed.
- 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/posts
directory
- Run
hugo server -D
to get a development web server to see the changes - Once happy with the changes, run the
hugo
command to generate thepublic
directory - Copy the contents of the
public
directory to the server hosting your server. For example,rsync -avz public/ samarth@samarth.me:/var/www/htdocs/
.