~glorifiedgluer

Guarulhos, Brazil

https://glorifiedgluer.com

~glorifiedgluer/capivarasdev

Last active 9 hours ago

~glorifiedgluer/monorepo-inbox

Last active 16 days ago
View more

Recent activity

Re: Feature request: customisable favicon 9 days ago

From Victor Freire to ~sirodoht/mataroa-community

I feel that this feature is quite sensible as this would make it
possible to distinguish one blog from another in a sane way.

This is a opinion of mine but I tend to close a blog post containing the
Medium favicon before it loads and I feel that being able to control a
favicon would avoid this kind of behavior.

--
Victor Freire

Re: Heading Anchors a month ago

From Victor Freire to ~sirodoht/mataroa-community

> Great idea, actually. I've just deployed a change to have
> this functionality. Let me know if it doesn't work as
> expected :D

Well, this was fast! Thanks for the fast response. Do you think it's
possible to generate some visual cue about the anchor?

--
Victor Freire

Heading Anchors 2 months ago

From Victor Freire to ~sirodoht/mataroa-community

Hello, Theodore

I'd like to if there's a possibility to have heading anchors on mataroa.
This would make it easier to share links pointing to specific points on
blog posts instead of making the user look after them while scrolling.

--
Victor Freire

Re: Mataroa CLI 2 months ago

From Victor Freire to ~sirodoht/mataroa-community

> On Thu Apr 28, 2022 at 2:20 PM -03, Theodore Keloglou wrote:
> 1. It would be nice for `mata posts list` to return posts as a JSON object
> or some other kind of structure.

https://git.sr.ht/~glorifiedgluer/mata/commit/86b52c4b9ab29f9710f2fade554948e13c4c3db5

> 2. I think it would also be interesting for `mata sync` to create the posts,
> if they do not exist.
>
> 3. Maybe if there is no frontmatter, the tool could infer the title from the
> file name and the content from the whole file's content.

Hmm, the reason I haven't added this is that I'm not sure how this is
supposed to work. There are so many edge-cases that I need to take care

Re: Mataroa CLI 2 months ago

From Victor Freire to ~sirodoht/mataroa-community

Hello, Theodore

I think you can test "mata" right now. I'm currently thinking in
a way do releases properly so I don't have git tags nor a CI yet but you
can use Nix!

Run `nix shell sourcehut:~glorifiedgluer/mata` and you'll get a shell
with "mata' and its man pages. "man init" will generate the needed
configuration file and you're good to go!

If you have any doubts, don't be afraid to send me an email. ;-)

--
Victor Freire

Re: Integration Endpoint 2 months ago

From Victor Freire to ~sirodoht/mataroa-community

Hey, Theodore

I noticed that there's a "GET /api/posts/<slug>"[0] that is not
documented on https://mataroa.blog/api/docs. Is it safe to use?

[0]:
https://git.sr.ht/~sirodoht/mataroa/tree/master/item/main/views_api.py#L117

--
Victor Freire

Re: Mataroa CLI 2 months ago

From Victor Freire to ~sirodoht/mataroa-community

> One thing I think would be cool is to say something like `mata sync .`
> and then it would sync your mataroa blog with all your text files as
> posts from your current working directory. Just an idea!

I like this. This would probably make it a whole lot easier to use this
package on a CI.

> Btw, I use Nix but not flakes. Do you have any recommended resources
> for flakes? Code samples or docs.

Hmm, I'm not sure there's an obvious place to look after Flake (as usual
for everything Nix). However I feel that Xe's series is pretty good if
you're already comfortable with Nix!

Re: Mataroa CLI 2 months ago

From Victor Freire to ~sirodoht/mataroa-community

I've taken the rest of the night to do a small attempt at a CLI client.
You can check it out here: https://git.sr.ht/~glorifiedgluer/mata

Currently it only implements the "mata posts list" command and outputs a
JSON array with the posts. I intend to implement some flags to change
the output format and write more documentation on it.

If you want to give it a go, you need a $XDG_CONFIG_DIR/mata/config.json
file just like the example on the source code and then you can run "mata
posts list" from any directory!

Let me know what you think about it!

--

Mataroa CLI 2 months ago

From Victor Freire to ~sirodoht/mataroa-community

Hello,

I would like to present some ideas about the CLI that would integrate
with the new API!

- Written in Rust or Go
  - Easy to distribute as a single binary and easy to contribute to

- Markdown should have a frontmatter with the same fields as the API
  demands. Ex:

```md
---
title: Foo and Bar

Re: Integration Endpoint 2 months ago

From Victor Freire to ~sirodoht/mataroa-community

> Yeah, I was thinking the same, a CLI is a good next step. What language
> will you be writing it in?

I was thinking about Rust or Go. I might open another thread here about
the design of the CLI program.

--
Victor Freire