Skip to content

ansonl/ansonl.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2f2f217 · Mar 9, 2025
Jun 10, 2024
May 24, 2024
Mar 4, 2025
Jul 9, 2024
Mar 8, 2025
May 25, 2024
Mar 8, 2025
Oct 14, 2022
Mar 5, 2025
Mar 5, 2025
Mar 9, 2025
Mar 5, 2025
Feb 27, 2018
Aug 8, 2022
Aug 21, 2019
Sep 12, 2017
Sep 30, 2019
Oct 23, 2023
May 11, 2024
May 12, 2024
Oct 9, 2019
Oct 15, 2023
Aug 9, 2017
Jun 10, 2024
Oct 15, 2023
Oct 15, 2023
Oct 15, 2023
Oct 24, 2023
Jul 15, 2018
Aug 8, 2017
May 12, 2024
Nov 23, 2024
May 11, 2024
Nov 23, 2021
Oct 13, 2024
Aug 9, 2017

Repository files navigation

Code . Run . Eat . Sleep ↺


Features you can rip out for your own site.

  • Animated title bar using mattboldt/typed.js.
  • Menu sidebar toggle label color change based on background brightness for visibility using kennethcachia/background-check.
  • lazysizes integration.
    • Markdown to img element for lazysizes regex substitution example below.
    • Liquid include for img element at lazysizes.html. Usage example in below sections.
  • Post Archive page with posts by year.
  • Post Tags page with list of all tags and list of tags with related posts.
    • Tag display in Liquid with matching CSS styling. Clicking tags in post page goes to tab list page.
  • Collection Items entry.html with thumbnail image, redirect redirects and more-link-text customizable action link.

How to get updated theme from Basically Basic Jekyll Theme when using GitHub Pages

If you are using GitHub Pages, jekyll-theme-basically-basic gem is not supported so you can either fork the original mmistakes/jekyll-theme-basically-basic or clone it and add the original repository as a remote repository in Git.

git remote add upstream git@github.com:mmistakes/jekyll-theme-basically-basic.git
git pull upstream master
git mergetool #If needed

Usage of lazysizes Liquid include in a post

{% capture src %}
  {{ '/wp-content/uploads/2017/07/ford_escape_audio_chassis.jpg' | prepend:site.baseurl }}
{% endcapture %}
{% include lazysizes.html alt='test alt' data-src=src caption='a caption [test link](http://example.com)' %}

Convert Markdown images to be lazysizes compatible for posts with lots of images.

Assuming your Markdown images are in format

![titlee]({{ '/wp-content/uploads/2017/07/xxx.jpg' | prepend:site.baseurl }})

Regex

s/!\[(.*)\]\(({{.*}})\)/<img alt="\1" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="\2" class="lazyload" />

Contributing & Bugs

Bug reports and pull requests are welcome.

Credits

Basically Basic Jekyll Theme by mmistakes.

Typed.js by Matt Boldt.

Background Check by Kenneth Cachia.

zenscroll by zengabor.

lazysizes by aFarkas.

Icons made by Madebyoliver from www.flaticon.com is licensed by CC 3.0 BY

License

All original content is © 2022 Anson Liu. Permission is required if republishing any post content without attribution.