Recent activity

[PATCH hub.sr.ht v2] well-known: support openpgp web key discovery 4 months ago

From oliverpool to ~sircmpwn/sr.ht-dev

will allow clients to discover the public key automatically, using:
gpg --locate-keys outgoing@sr.ht

Internet-Draft https://datatracker.ietf.org/doc/html/draft-koch-openpgp-webkey-service#name-web-key-directory

---

Initial discussion: https://lists.sr.ht/~sircmpwn/sr.ht-discuss/%3Cdd965bea-a130-4675-8cdf-742286607079%40app.fastmail.com%3E
First patch (on meta.sr.ht frontend): https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/40794
Second patch (on meta.sr.ht backend): https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/40799
Third patch: https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/44509

Current patch: strings.Cut from go1.18
[message trimmed]

Re: [PATCH hub.sr.ht] well-known: support openpgp web key discovery 4 months ago

From Olivier C to ~sircmpwn/sr.ht-dev

On Mon, Dec 4, 2023, at 12:28, Drew DeVault wrote:
> On Fri Sep 8, 2023 at 3:59 PM CEST, oliverpool wrote:
>> +// strings.Cut is available starting with go1.18
>> +// Copied from https://cs.opensource.google/go/go/+/refs/tags/go1.20.4:src/strings/strings.go;l=1262
>> +// Copyright 2009 The Go Authors. All rights reserved.
>> +// Use of this source code is governed by a BSD-style
>> +// license.
>> +//
>> +// stringsCut slices s around the first instance of sep,
>> +// returning the text before and after sep.
>> +// The found result reports whether sep appears in s.
>> +// If sep does not appear in s, cut returns s, "", false.
>
> We're on Go 1.20, so we can use this from the stdlib.

[PATCH kiln v2] frontmatter: add shorthand notation # 5 months ago

From oliverpool to ~adnano/kiln-devel

if the first content line is like
 # some title

it will be interpreted as
 ---
 title: "some title"
 ---

---

Taking into account our conversation regarding my
previous patch, I have moved the "title shortcut"
to be a frontmatter shorthand instead.
[message trimmed]

Re: [PATCH kiln] page: extract title from first content line 5 months ago

From Olivier C to ~adnano/kiln-devel

As alternative, one could trigger the fallback only if no frontmatter is present.

So “# some title” would be a frontmatter shorthand for
---
title: some title
---

Re: [PATCH kiln] page: extract title from first content line 5 months ago

From Olivier C to ~adnano/kiln-devel

> sometimes authors may want the first header to be part of the content
> instead of the title of the page and might be surprised that the title
> is automatically stripped. For these reasons I'm a bit hesitant to
> change this back.

That's why I attempt the stripping only if the title in the frontmatter is empty.
This should only break for users who currently do not specify a title in the frontmatter (I would be surprised if anyone does that, since it's hard to display much about a page without a title).

If this is an issue, the user can still put a dummy title in the frontmatter:
  ---
  title: -
  ---
  # this title will not be stripped

[PATCH kiln] page: extract title from first content line 5 months ago

From oliverpool to ~adnano/kiln-devel

when the title in the frontmatter title is empty

---

Hi,
I have been using kiln reliably for my blog for quite a while and really
enjoyed it.

I recently realized that I only use the frontmatter to specify the title
of my post (and that I was never quite sure of the syntax for it).
To simplify my workflow, I propose to add a fallback, which looks at the
first content line and set it as a title if it starts with "# " (common
title syntax for markdown/gmi files).
[message trimmed]

[PATCH] Demonstrate that I can use git send-email 7 months ago

From oliverpool to ~sircmpwn/email-test-drive

---
 your-name | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 your-name

diff --git a/your-name b/your-name
new file mode 100644
index 0000000..6d0ecfd
--- /dev/null
+++ b/your-name
@@ -0,0 +1 @@
I'm about to try git send-email
-- 
2.42.0
[message trimmed]

[PATCH] Demonstrate that I can use git send-email 7 months ago

From oliverpool to ~sircmpwn/email-test-drive

---
 oliverpool | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 oliverpool

diff --git a/oliverpool b/oliverpool
new file mode 100644
index 0000000..6d0ecfd
--- /dev/null
+++ b/oliverpool
@@ -0,0 +1 @@
I'm about to try git send-email
-- 
2.42.0
[message trimmed]

[PATCH hub.sr.ht] well-known: support openpgp web key discovery 7 months ago

From oliverpool to ~sircmpwn/sr.ht-dev

will allow clients to discover the public key automatically, using:
gpg --locate-keys outgoing@sr.ht

Internet-Draft https://datatracker.ietf.org/doc/html/draft-koch-openpgp-webkey-service#name-web-key-directory

---

Initial discussion: https://lists.sr.ht/~sircmpwn/sr.ht-discuss/%3Cdd965bea-a130-4675-8cdf-742286607079%40app.fastmail.com%3E
First patch (on meta.sr.ht frontend): https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/40794
Second patch (on meta.sr.ht backend): https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/40799

Current patch: hub.sr.ht backend.

It fixes the discrepancy noted by ~bitfehler (with an added test)
[message trimmed]