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 servewill start the local blog on 127.0.0.1:4000 - Running
jekyll buildwill create a static directory called_sitewhich you cancdinto and push tomasterof this repo. - You are currently in
devwhich is for editing posts in the _posts directory and then building_sitevia the above command. - Git settings include setting the custom domain and hitting save.
- Take a look at
urlandbaseurlto 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
./serveto serve using_config_dev.ymlwhich leaves out Google Analytics in the local server - Run
./force_edit_and_pushfor quick changes
Notes from self on 01/01/2020:
- I'm using NixOS, so I need to include
jekyllandbundixinenvironment.systemPackages - Run
bundix -lin 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];
}