Skip to content
main
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

README.md

Jekyll CO₂

Written by William Denton.

This is a plugin for the static web site generator Jekyll to show the change in atmospheric CO₂ at the Mauna Loa observatory in Hawaii. It was inspired by CO2Now. The data comes from the NOAA's Earth System Research Laboratory.

It is now text only, with no sparkline graphics. In a browser it looks like this:

Screenshot

How to install

Download co2.rb and put it in your _plugins directory. That's all!

The CSV file downloaded is stored in your _data directory. If you don't have one, it will be created.

Configuration

By default the plugin will show CO₂ data from 50 years ago and compare it to today.

Optionally, you can add a variable in your _config.yml, like this:

co2:
  years: 10

If years is 10, for example, it will show CO₂ from 10 years ago compared to today.

If years is 0, it will show CO₂ from March 1958 (the earliest data available from Mauna Loa) compared to today.

How to use

The plugin creates an include file: _includes/co2.html. Include it in a web page like this:

{% include co2.html %}

Look at the file (or the code) to see exactly how it's structured.

You could style it with CSS like this:

#co2 {
}

#co2 #co2_inside {
  border: thin solid red;
  padding: 5px;
}

#co2 > .highlight {
  color: red;
}

#co2 .co2_source {
  font-size: smaller;
}

License

GPL v3. See LICENSE.

About

Jekyll plugin that shows climate change trends

Topics

Resources

License

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.