~adnano

https://adnano.co

~adnano/wmenu-devel

Last active 6 days ago

~adnano/kiln-devel

Last active 27 days ago

~adnano/kiln-discuss

Last active a month ago

~adnano/go-gemini-devel

Last active 3 months ago

~adnano/wmenu-announce

Last active 4 months ago

~adnano/thistle-devel

Last active 11 months ago

~adnano/librepixel-devel

Last active 11 months ago

~adnano/kiln-announce

Last active 1 year, 15 days ago

~adnano/cahoots-devel

Last active 1 year, 27 days ago

~adnano/public-inbox

Last active 1 year, 4 months ago
View more

Recent activity

Re: problems on RHEL 9 6 days ago

From Adnan Maolood to ~adnano/wmenu-devel

On Tue Nov 28, 2023 at 12:46 PM EST, Przemysław Kamiński wrote:
> I can successfully build wmenu on RHEL 9, however when I try to run it, 
> I get:
>
> wmenu: ../main.c:1068: menu_init: Assertion `state->layer_shell != NULL' 
> failed.
>
> Any ideas? I'm not into Wayland so can't debug this much, but if more 
> info is needed, I can provide it.

Are you using Sway? It sounds like the Wayland compositor you are using
doesn't support the wlr_layer_shell protocol.

Re: [PATCH kiln] page: extract title from first content line 29 days ago

From Adnan Maolood to ~adnano/kiln-devel

On Tue Nov 7, 2023 at 11:10 AM EST, Olivier C wrote:
> 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
> ---

I like this idea better. I'll give it some thought.

Re: [PATCH kiln] page: extract title from first content line 29 days ago

From Adnan Maolood to ~adnano/kiln-devel

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

Glad you like 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).
>
> With this change, I can simply drop the frontmatter from all my blog
> posts and simply start with the title (prefixed by "# ").

Re: Link to external resources a month ago

From Adnan Maolood to ~adnano/kiln-discuss

On Fri Nov 3, 2023 at 4:50 AM EDT, Willow Barraco wrote:
> Would it be possible to create dedicated pages that reference an
> external resource, and that could be interpreted as regular pages by
> kiln?
>
> I think about blank pages with an url: parameter, but that does not
> seems elegant. Maybe another way could be some hack with symlinks.

You can use blank pages with params.url set to some value, and then
check for that in templates. For example:

	---
	params:
		url: https://example.com

Re: pages.sr.ht: gemini request fails when port is given a month ago

From Adnan Maolood to ~sircmpwn/sr.ht-discuss

I've sent a patch for pages.sr.ht which should fix this issue.

[PATCH pages.sr.ht] server: Use hostname to lookup Gemini site objects a month ago

From Adnan Maolood to ~sircmpwn/sr.ht-dev

The server will no longer return 'File not found' for Gemini requests
that include a port in the URL.
---
 server.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server.go b/server.go
index 5e44c28..cd27ef7 100644
--- a/server.go
+++ b/server.go
@@ -341,7 +341,7 @@ func ServeGemini(conf ini.File, db *sql.DB, mc *minio.Client) *gemini.Server {

		var object *minio.Object
		for _, cand := range paths {
[message trimmed]

Re: [PATCH] Fix build failure when compiling in release a month ago

From Adnan Maolood to ~adnano/wmenu-devel

Thanks!

To git@git.sr.ht:~adnano/wmenu
   2b9e08f..dacae03  master -> master

I couldn't reproduce the GCC error, but this change looks correct to me.

Re: surface major versions a month ago

From Adnan Maolood to ~sircmpwn/godocs.io

On Thu Oct 12, 2023 at 8:49 PM EDT, Steven Penny wrote:
> the doc site seems to have no way currently to surface different major
> versions. look at this:

Yes, this is a known limitation of the current design. The reason for
this is that there is no easy way for us to determine the latest major
version for a given module, since Go treats each major version as an
independent module and the module proxy does not have an API for this.
The way pkgsite does this is by trying every version number until it
doesn't work:

https://github.com/golang/pkgsite/blob/5f0513d53cff8382238b5f8c78e8317d2b4ad06d/internal/fetchdatasource/fetchdatasource.go#L316

I wanted to avoid that because it seems like a poor design. However, we

Re: [PATCH] Update templates a month ago

From Adnan Maolood to ~sircmpwn/godocs.io

Thanks!

To git@git.sr.ht:~sircmpwn/gddo
   f12609a..32b6d09  master -> master

Re: server down a month ago

From Adnan Maolood to ~sircmpwn/godocs.io

Should be up now. Will investigate further.