The blog now includes automatic image handling:
- Each blog post can have a thumbnail image (shown in the list view)
- Each blog post can have a header image (shown at the top of the post)
- Images are automatically sourced from Unsplash's free license collection
To add images to all blog posts:
cd _scripts
bash update_with_venv.sh
This will:
- Set up a Python virtual environment with required dependencies
- Find appropriate free images based on your post content
- Download and save them to the appropriate directories
- Update your blog post frontmatter
- Commit and push the changes to GitHub
See _scripts/README.md
for more details.
This is the code for the Saptak Sen Home Page.
I wanted a clean, simple home page where I could put my writing, speaking, projects, and photos. It had to be fast, mobile-friendly, free to build, and easy to update. This is the result. Forks and pull requests are welcome!
- Use Git to clone this repo
- Make sure you have Jekyll installed
- Just the first time:
bundle install
- To build the site and serve it:
bundle exec jekyll serve
- To test:
http://localhost:4000
See the Jekyll and GitHub Pages documentation for more info.
As an alternative to installing Ruby and Jekyll, if you're a user of Docker and Docker Compose, you can run a Docker image of saptak.github.io that has all the dependencies already setup for you.
On Linux:
git clone
this repodocker-compose up
- Go to
http://localhost:4000
to test
On OS X, using the docker-osx-dev project:
git clone
this repodocker-osx-dev
docker-compose up
- Go to
http://dockerhost:4000
to test
- Built with Jekyll. This website is completely static and I use basic HTML or Markdown for everything.
- Hosted on GitHub Pages. I'm using the GitHub Pages Gem and only Jekyll plugins that are available on GitHub Pages.
- The design is loosely based on Kasper, Pixyll, and Medium.
- I used Basscss, Sass, Font Awesome Icons, Hint.css,and Google Fonts for styling.
- I used jQuery, lazySizes, and responsive-nav.js for behavior.
- I added Disqus as a commenting system.
- I'm using UptimeRobot and Google Analytics for monitoring and metrics.
- Most of the blog posts were imported from my old Blogger account, so there
are a few hacky Ruby scripts in
_scripts
left over from that migration.
This code is released under the MIT License. See LICENSE.txt.