grant-park.github.io
grant-park.github.io copied to clipboard
personal website
For my future self:
- Look at commit history to infer changes to HTML/CSS. There were issues turning on disqus for commenting, so the posts.html file was edited to hard code the embed provided by disqus on their admin page. To further edit, emulate the directory paths of the files you want to change (look at the structure of minima -- in fact, just git clone it and copy over the directories you want to change) and edit the files.
- Running
jekyll serve
will start the local blog on 127.0.0.1:4000 - Running
jekyll build
will create a static directory called_site
which you cancd
into and push tomaster
of this repo. - You are currently in
dev
which is for editing posts in the _posts directory and then building_site
via the above command. - Git settings include setting the custom domain and hitting save.
- Take a look at
url
andbaseurl
to ensure that routing works correctly. - To add jekyll plugins, add to Gemfile and run
Bundle
- Google Analytics was added to head.html in _includes
- Run
./serve
to serve using_config_dev.yml
which leaves out Google Analytics in the local server - Run
./force_edit_and_push
for quick changes
Notes from self on 01/01/2020:
- I'm using NixOS, so I need to include
jekyll
andbundix
inenvironment.systemPackages
- Run
bundix -l
in dev branch so that the gemfile will be mapped to a gemset.nix file - Create a default.nix containing the code below and then run
nix-shell
with (import <nixpkgs> {});
let
gems = bundlerEnv {
name = "your-package";
inherit ruby;
gemdir = ./.;
};
in stdenv.mkDerivation {
name = "your-package";
buildInputs = [gems ruby];
}