diff --git a/.gitignore b/.gitignore index fe41b5f..cf82cb1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ public *.swp +static/processed_images/ diff --git a/content/_index.md b/content/_index.md index ebefc05..3286a51 100644 --- a/content/_index.md +++ b/content/_index.md @@ -2,8 +2,6 @@ title = "Home" template = "index.html" transparent = true -sort_by = "date" paginate_by = 10 +sort_by = "date" +++ - -Hello, World! diff --git a/content/blog/elixir-for-robots/augie.jpg b/content/blog/elixir-for-robots/augie.jpg new file mode 100644 index 0000000..065e9da Binary files /dev/null and b/content/blog/elixir-for-robots/augie.jpg differ diff --git a/content/blog/elixir-for-robots.md b/content/blog/elixir-for-robots/index.md similarity index 98% rename from content/blog/elixir-for-robots.md rename to content/blog/elixir-for-robots/index.md index db7be04..ad56d1e 100644 --- a/content/blog/elixir-for-robots.md +++ b/content/blog/elixir-for-robots/index.md @@ -4,7 +4,9 @@ draft = false date = "2020-06-12" description = "Elixir's feature set is almost perfect for Robots. Why aren't we doing it this way?" tags = ["robotics", "ros", "erlang", "elixir"] -cover_image = "https://hackster.imgix.net/uploads/attachments/1084333/_GN6qythQlP.blob?auto=compress%2Cformat&w=900&h=675&fit=min" + +[extra] +cover_image = "augie.jpg" +++ I've been working on [a robotics project](https://www.hackster.io/james-harton/augie-the-hexapod-robot-8e5125) for quite some time. Around the time that I started working on it in earnest I also started learning [Elixir](https://elixir-lang.org/). For those of you who don't know, Elixir is a programming language that lives on top of the [Erlang](https://www.erlang.org/) virtual machine (called [BEAM]()). Erlang's semantics were designed for [Ericsson](https://www.ericsson.com/) to run on it's telephony switches. The requirements of massive concurrency, fault tolerance and hot code reloading forced the team at Ericsson to make a bunch of really interesting decisions causing the creation of an immutable, functional language based around a robust actor system, message passing and network-transparent clustering. diff --git a/content/blog/in-defence-of-idiotic-products.md b/content/blog/in-defence-of-idiotic-products.md index c41af00..4451dc3 100644 --- a/content/blog/in-defence-of-idiotic-products.md +++ b/content/blog/in-defence-of-idiotic-products.md @@ -7,7 +7,7 @@ date: 2020-06-20 cover_image: https://live.staticflickr.com/3739/9476761515_c563c49b45_c_d.jpg --- -I was talking to a friend recently about how work on [my robotics project](@/blog/elixir-for-robots.md) and I said that over the weekend I had "popped a few things off my yak stack". Suddenly I realised what I had said, and immediately wondered what it would be like to have a todo list that behaved like a [stack machine](@/blog/stack-vm-part-1.md) with a limited set of instructions available to the user. Of course it's not very practical but since when has that stopped anyone? +I was talking to a friend recently about how work on [my robotics project](@/blog/elixir-for-robots/index.md) and I said that over the weekend I had "popped a few things off my yak stack". Suddenly I realised what I had said, and immediately wondered what it would be like to have a todo list that behaved like a [stack machine](@/blog/stack-vm-part-1.md) with a limited set of instructions available to the user. Of course it's not very practical but since when has that stopped anyone? If, like me, you get a lot of joy from the process of building a product then you'll probably also know that it's hard to find a project that's the right size to build by yourself. My last product attempt was a management system for sailing regattas - unfortunately it wound up being put on the back burner, and is likely to stay there indefinitely. Making things that people will part with money for is hard - especially if you're doing it on your own. Unfortunately I can't stop making things. diff --git a/content/blog/lightweight-dev-tools/huey.jpg b/content/blog/lightweight-dev-tools/huey.jpg new file mode 100644 index 0000000..45403ba Binary files /dev/null and b/content/blog/lightweight-dev-tools/huey.jpg differ diff --git a/content/blog/lightweight-dev-tools.md b/content/blog/lightweight-dev-tools/index.md similarity index 98% rename from content/blog/lightweight-dev-tools.md rename to content/blog/lightweight-dev-tools/index.md index 6f01418..e4f6c40 100644 --- a/content/blog/lightweight-dev-tools.md +++ b/content/blog/lightweight-dev-tools/index.md @@ -4,7 +4,8 @@ published: true description: Learning to live small. date: 2023-08-10 tags: programming, productivity, developer -cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y9k1z2do7k5qlfieemzy.jpg +extra: + cover_image: huey.jpg --- I’ve been forcing myself to use a barely usable laptop for any couch coding I do because I have a puppy who likes to jump into my lap - regardless of whether there’s already something in it. diff --git a/templates/page.html b/templates/page.html index f7ef0f3..0d201f0 100644 --- a/templates/page.html +++ b/templates/page.html @@ -4,6 +4,17 @@ {% block content %}
+ {% if page.extra.cover_image %} + {% set large = resize_image(path=page.colocated_path ~ page.extra.cover_image, width=1000, height=420, op="fill") %} + {% set medium = resize_image(path=page.colocated_path ~ page.extra.cover_image, width=500, height=210, op="fill") %} + {% set small = resize_image(path=page.colocated_path ~ page.extra.cover_image, width=250, height=105, op="fill") %} + + {% endif %} +

{{ page.title }}

{% if page.extra.author %}
By {{ page.extra.author }}.