Guest writers

My friend Luís modified one of my blog posts on WebGL shaders, and we posted it here. I didn’t have this blog set up for guest posts, so here’s what I’ve done.

I need to mark who wrote the post. We do this with an author key in the metadata, like:

title: "Cool WebGL shader"
author: luis

This should default to me. I set this in my _config.yml:

  - values:
      author: jim

For info about those authors, I created _data/people.yaml:

  name: "Luís Fonseca"
  url: ""

We can look up this data in the post layout, like so:

{% if != "jim" %}
    <a href="{{[].url}}">
{% endif %}
Tagged #blog.
👋 I'm Jim, a full-stack product engineer. Want to build an amazing product and a profitable business? Read more about me or Get in touch!

More by Jim

This page copyright James Fisher 2017. Content is not associated with my employer. Found an error? Edit this page.