🔺
385 Words

My Super AWESOME Jekyll Boilerplate Gem

Ya know when you’re too lazy to duplicate a file to make a new jekyll post?

Well, I made a gem to solve that problem!!!

You know for the people like me, who have a jekyll blog, and do everything from the terminal…

…Im totally sure there is thousands of us.

Anyway…

I literially created this post your reading right now by typing:

1
$ bplate post "My Jekyll Boilerplate Gem"

And then the computer did everything else… wait…

And I could have provided the categories and tags up-front

1
$ bplate post "My Jekyll Boilerplate Gem" cats="Terminal Junkie" tags="jekyll, web-dev, gem, ruby"

This is what the template looks like

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# _boilerplates/post.md
---
_boilerplate:
  path: _posts
  timestamp: true
  slug: "{{ date }}-{{ title }}"
  tags: 'godot,game-dev'
  cats: game-dev

title: {{ boilerplate.title }}
date: {{ boilerplate.time }}
authors:
- sean@ferney.org
categories: [{{ boilerplate.cats }}]
tags: [{{ boilerplate.tags }}]
render_with_liquid: false
pin: true
---

# {{ boilerplate.title }}

and the results are totally ready for writting.

1
2
3
4
5
6
7
8
9
10
11
# _posts/2023-01-07-my-jekyll-boilerplate-gem.md
---
title: My Jekyll Boilerplate Gem
date: 2023-01-07 15:25:30 -0700
authors:
- sean@ferney.org
categories: [Terminal Junkie]
tags: [jekyll, web-dev, gem, ruby]
---

# My Jekyll Boilerplate Gem

Its also supper easy to install on your Jekyll site.

1
2
# Gemfile
gem 'jekyll-page-boilerplate'


So like, was it honestly worth making?

well I think the details of whether or no it was actually significant can be considered is more complicated than it initially seems. And besides thats not whats really important here. Its about the efficacy of making something for yourself. its the experience that matters here. The final is the destination not the journey. If we take it all in perspective, we’re just tiny little ants living on a tinny little rock floating through and empty void. You cant propose the question, “does this matter” without invoking the large question “does anything matter”. and the answer to that should be obvious. Its not about how good your clay pot is, its about how many crappy clay pots you can make. Heres some links for the 2 people that are intrested.