Drafts and stuff

c4d6a88388828efeffe891f446987b87762233d0
Alexis Sellier committed ago 1 parent 83be6035
_config.yml +6 -0
5 5
markdown: kramdown
6 6
collections:
7 7
  pages:
8 8
    output: true
9 9
    permalink: /:path/
10 +
defaults:
11 +
  - scope:
12 +
      path: ""
13 +
      type: "posts"
14 +
    values:
15 +
      permalink: /log/:year/:month/:day/:title/
_layouts/default.html +3 -0
11 11
    <meta charset="utf-8">
12 12
    <meta name="viewport" content="width=device-width, initial-scale=1">
13 13
    <meta name="twitter:site" content="@cloudhead" />
14 14
    <meta name="twitter:creator" content="@cloudhead" />
15 15
    <meta property="og:title" content="<%= title %>" />
16 +
    {% if page.draft %}
17 +
      <meta name="robots" content="noindex, nofollow" />
18 +
    {% endif %}
16 19
    <link rel="shortcut icon" href="/favicon.png" />
17 20
    <link rel="stylesheet" type="text/css" href="/css/fonts.css">
18 21
    <link rel="stylesheet" type="text/css" href="/css/base.css">
19 22
  </head>
20 23
  <body>
_pages/fund/qr-bc1qa47tl4vmz8j82wdsdkmxex30r23c9ljs84fxah.png → _pages/donate/qr-bc1qa47tl4vmz8j82wdsdkmxex30r23c9ljs84fxah.png renamed +0 -0
_pages/fund.md +1 -0
1 1
---
2 2
title: Fund my work
3 3
teaser: fund my work 💸
4 4
slug: fund
5 5
layout: default
6 +
permalink: /donate/
6 7
---
7 8
8 9
<div class="qr">
9 10
  <img src="qr-bc1qa47tl4vmz8j82wdsdkmxex30r23c9ljs84fxah.png" onclick="copyAddress()" />
10 11
  <input readonly class="address" id="address" onclick="selectAddress()" value="bc1qa47tl4vmz8j82wdsdkmxex30r23c9ljs84fxah"/>
_pages/log.md → _pages/log.html renamed +6 -4
7 7
teaser: thoughts on software
8 8
slug: log
9 9
---
10 10
11 11
{% for post in site.posts %}
12 -
  <div>
13 -
    <span class="subtle">{{ post.date | date: "%Y.%m.%d" }}</span>
14 -
    <a href="{{ post.url }}">{{ post.title }}</a>
15 -
  </div>
12 +
  {% unless post.draft %}
13 +
    <div>
14 +
      <span class="subtle">{{ post.date | date: "%Y.%m.%d" }}</span>
15 +
      <a href="{{ post.url }}">{{ post.title }}</a>
16 +
    </div>
17 +
  {% endunless %}
16 18
{% endfor %}
_posts/2024-01-31-segfault-the-mother-of-invention.md +2 -0
1 1
---
2 2
title: "Segfault, the mother of invention"
3 3
date: 2024-01-31
4 4
type: post
5 5
layout: default
6 +
permalink: /drafts/segfault/
7 +
draft: true
6 8
---
7 9
8 10
There is no greater joy for a programmer than to build his own tools. A few
9 11
weeks ago, I embarked on a little coding experiment: I wanted to see if it was
10 12
possible to build a 2D/3D software suite with an embedded scripting language
robots.txt added +2 -0
1 +
User-agent: *
2 +
Disallow: /drafts/