Skip to content

SimplGy/jekyll-timeline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jekyll-timeline

This is a small group of html and css includes for Jekyll that lets you create a beautiful timeline. It doesn't have any dependencies or require any plugins so it works great with out-of-the box Jekyll on GitHub Pages. I've tested it on Jekyll 3.3.0 and I'm personally motivated to make sure it stays functional with the version GitHub uses.

Use Cases

This wasn't built to stagger overlapping timeframes, so it works best for use cases that are naturally non-overlapping, such as:

  • Places you and your family have lived
  • Heads of state like presidents and other world leaders
  • Vehicles you've owned
  • Major technology releases by manufacturer
  • Star Trek Seasons, Ships, and Captains
  • Star Wars films

Features

  • Hover for start and end dates, and to see event duration
  • hover timeline background to see which year/month it represents
  • Support for markdown inside timeline events, so you can include links and formatting
  • Click to focus an event (partial solution for overlapping events and those events with long description content)

Example Gallery Live Examples

Minimal Configuration:

Five Columns:

Star Trek TV Series and Movies:

My Resume Timeline:

Share your examples with me by creating an issue with a link to how you've used this. I'd love to extend this to show some of the awesome things people have created.

Running Locally

You can run this repo locally to explore the examples and play around with the options.

To run this project, start it like you would any Jekyll site. eg:

bundle exec jekyll serve -w

It runs in a subfolder to match the deployment location. You can open the page at:

http://localhost:4000/jekyll-timeline/

Getting Started

To use this project on your own site, follow these steps.

  1. Create a Jekyll Site (skip this if you already have one):

  2. Get these two files () and put them in your site's _includes folder.

  3. jekyll-timeline.html

  4. jekyll-timeline-li-event.html

  5. Grab jekyll-timeline.css and include a link tag to it.

  6. Use the timeline on your page:

    {% include jekyll-timeline.html startYear=2010 # This is a date near the oldest event you are interested in showing. The timeline always runs up until now timelineHeight=600 # Adjust this height until it fits your events comfortably col1Title="Minimal Example" col1Events=page.exampleEvents %}

Key Benefits

  • No Jekyll plugins needed (this is why you can use it with GitHub Pages)
  • No JavaScript at all, so it's easy to customize
  • Prints almost pixel perfect (webkit only. Thanks to -webkit-print-color-adjust)

Limitations

  • No JavaScript at all, so UI interactions are limited (but you can easily add the behaviors you want)
  • Timeline is always vertical
  • Timeline always has most recent at the top
  • No overlapping times (you can, but they aren't visually handled. They just occlude one another)
  • Works on a 1mo granulary, so if your timeline spans 100s of years the hash marks may get too dense, and if it only spans a year or so the hash marks are too sparse.

Similar Projects

  • timeline-jekyll-theme is a whole site theme rather than a reusable component. Might be a good fit if you like the vertical bubble style and have sparse events.

Screenshot config

webkit2png http://simple.gy/jekyll-timeline/five-col/ --width=1000 --clipwidth=250 --clipheight=150

About

A visual timeline for your Jekyll sites that works with Github Pages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •