Just my little corner of the web.
Some files to keep in mind:
- robots.txt
- feed.xml
docker run -it -p 4000:4000 -v /home/vergeman/dev/vergeman.github.io:/usr/src/app vergeman/jekyll
- Do stuff
- Push to deploy
For github pages, required to create blog in current directory (jekyll new .
)
- Setup initial Dockerfile
#
# Dockerfile gotchas
# have to bind host (default set to localhost)
# also explicit spacing for CMD
#
FROM ruby:3.0
WORKDIR /usr/src/app
EXPOSE 4000
CMD [ "bundle", "exec", "jekyll", "serve", "-H", "0.0.0.0"]
Do an initial build: docker build -t vergeman/jekyll .
to bootstrap from.
- Boostrap initial Gemfile
docker run -it -p 4000:4000 -v /home/vergeman/dev/vergeman.github.io:/usr/src/app vergeman/jekyll bash
bundle init
#...continue below
- Install gems
bundle add jekyll
bundle install
jekyll new .
- Add theme:
Gemfile:
gem "no-style-please"
_config.yml: important
remote_theme: riggraz/no-style-please
Make sure to rebuild Docker container to reinstall gem.
Github pages requires serving from root directory; so install jekyll new
must
be done in root dir.
The current theme no-style-please
hasn't been updated in years and is doesn't
install correctly with latest jekyll. Just shove the theme contents into the
directory and it works.
baseurl: ""
; needs to be current dir for gh pages.- move any theme
.scss
in_sass
dir to/css/main.css
- breaks on github compile.
- can comment
#
initial config - post slugs are
CATEGORIES/YEAR/MONTH/DAY/title.html
- can have a raw
file.html