DEV Community

Andreas Tiefenthaler
Andreas Tiefenthaler

Posted on • Originally published at an-ti.eu on

3 1

TIL#2: patches in GitHub gists and reasons why jekyll won't generate my pages

Patchfiles Syntax highlighting in GitHub gists

Someone sent me gist today with a patchfile in it. To my delight, I noticed that they are highlighting the changes nicely.This improves the readability of a patch tremendously.Check out this patchfile: https://gist.github.com/pxlpnk/357a32e789b63d5d809a40d886bc9337

It is important that the filename ends in .patch.

Jekyll and future dates

This morning I spent around 15 minutes trying to figure out why a post using jekyll would not show up.Some furious google searching resulted in a case of This makes a lot of sense, but why?

It turns out, that jekyll will not generate anything that has the date set to a future time.In my case, the date was set for today, but one hour into the future.

Here is what I learned on why it might not generate posts:

  • The post is not placed in the _posts directory.
  • The post has an incorrect title. Posts should be named YEAR-MONTH-DAY-title.MARKUP (Note the MARKUP extension, which is usually .md or .markdown)
  • The post's date is in the future. You can make the post visible by setting future: true in _config.yml (documentation)
  • The post has published: false in its front matter. Set it to true.

Big thank you to StackOverflow and their users for helping me out one more time: https://stackoverflow.com/questions/30625044/jekyll-post-not-generated

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more