Posts tagged with plugins

AutoPage for Tag plugins Page 1 of 2

This page is automagically created and paginated for each tag available in the posts on this site

Getting Started with 11ty ... or not

It is time to start a new site and the question is should I use Jekyll, as all my other current sites use (those that aren't still hand-coded HTML) or try something new. I've been wanting to try something new for a while but common sense (?) says that I should just use what I've been using, because why keep reinventing the wheel? I'm not saying that I'm some sort of big industry or innovator, but I did write some plug-ins and generators for Jekyll and I liked being able to add/modify the functionality and wanted to continue to do so.

Read more

Actually Static Comments

Many and varied are the ways to add comments to your static website. Most of them involve subscribing to services which, if you're running your own domain on your own server, might strike you as the wrong solution. "But," you might say, "if I want to have a comment system on my own site, it would not be static anymore. CGi's are so '90s and who needs the attack vector?"

Read more

Jekyll: Writing a Jekyll::Generator

There is annoying little documentation about writing a generator for Jekyll, particularly since when searching for examples, there is so much noise in form of hits for "static site generator." Two decent examples are from Ricardo Lopes and Starr Horne of Honeybadger.

Starting at the beginning, you want to be putting my_generator.rb in _plugins/ in the root directory of your Jekyll site directory.

For an absolute "Hello, World" we can do:

class Generator < Jekyll::Generator
  def generate(site)
    puts "Hello, World!"
  end
end
which prints out to the terminal when you bundle exec jekyll serve. Look for it after Generating...

Read more

Subscribe to the plugins tag

Subscribe to this blog