#meta

Why is Bunny Optimizer Engine 10$ per month? That’s a bit too much. I must say that I’m tempted of the capabilities to resize images on demand instead of having to upload the right sizes - and then if I wanna change them, I have to reupload all images with the new sizes again. But 10$ is too much for that! There’s other services with lower princings though.

Why is Bunny Optimizer Engine 10$ per month? That's a bit too much. I must say that I'm tempted of the capabilities to resize images on demand instead of having to upload the right sizes - and then if I wanna change them, I have to reupload all images with the new sizes again. But 10$ is too much fo…

I’ve been diving a bit into the Microformats and JF2 formats and I was quite confused today. On my new system, I’m storing some properties as a “flattened” version of Microformats. For some reason I assumed that was JF2, but it isn’t! Here’s a nice read!

I've been diving a bit into the Microformats and JF2 formats and I was quite confused today. On my new system, I'm storing some properties as a "flattened" version of Microformats. For some reason I assumed that was JF2, but it isn't! Here's a nice read!…

In the process of building my new blogging system with IndieWeb whistles and bells, I was thinking today about the usage of shortcodes. Hugo provides this functionality called Shortcodes which lets you define some snippets with Go templating and then re-use them in your posts.

I’m using them to quite some extent, mainly with figures. If I do implement something similar, then the rendering process will be 3 pass: first pass the post content with Go templating, then Markdown, then Go templating again. Not sure if the two first steps should be swapped.

I don’t feel very happy about that 3-passing scheme as I think speed matters and I’m already afraid of adding too much! Any suggestions?

In the process of building my new blogging system with IndieWeb whistles and bells, I was thinking today about the usage of shortcodes. Hugo provides this functionality called Shortcodes which lets you define some snippets with Go templating and then re-use them in your posts. I'm using them to qui…

I have an exam next week, but I’ve also been working a bit on Eagle v2. I think I underestimated the amount of work I will have. I have many shortcodes in Hugo and I’m also relying on some custom Goldmark extensions that are being used by Hugo.

On the format, I’ve decided to do something very similar to p3k and organize the files by year, month and day. Don’t worry, I will set up all the redirects afterwards. And this time they’re actually redirects and not Hugo-generated-redirect-HTML-files.

I must say that using a statically typed language is not the most seamless for this, but it works! I see why - maybe - so many people on the IndieWeb community have used PHP.

I’m also blocked on how to index: so far I’ve been using MeiliSearch which works perfectly. It would still work perfectly. However, in the future I would like to have my own IndieAuth implementation and that would require to store tokens so it’d be a great time to move to an SQL database. Decisions… decisions… decisions…

I have an exam next week, but I've also been working a bit on Eagle v2. I think I underestimated the amount of work I will have. I have many shortcodes in Hugo and I'm also relying on some custom Goldmark extensions that are being used by Hugo. On the format, I've decided to do something very simil…

jlelse’s Blog 27 Oct 2021 10:30

Awesome! Do you still use Hugo as underlying static site builder? And how do you integrate the admin bar into your site? Some JS magic?

Do you still use Hugo as underlying static site builder?

Yes, I do. I still find it fast enough and it’s not introducing extra complexity right now.

And how do you integrate the admin bar into your site? Some JS magic?

No JS! I thought about that at first, but then I thought: well, I know when the user is logged in so it shouldn’t be that hard.

What I did was to wrap the http.ResponseWriter when the response file is HTML and the user is logged in, and inject a <div> with the admin bar before all the content. It’s technically not valid HTML - I think - because it goes outside of <html>, but no browser complains about it and works perfectly.

I’m not sure if it’s the most correct strategy, but it’s working for now! :D

Replied to a post on jlelse.blog

In my last post, I mentioned that I was “investigating the possibility to use Tailscale to simply block the access from the “outside world” and make it more secure”. Well, it is now implemented and it works. Basically, my blog system can listen on two different ports: the regular one where you’re navigating, and the one inside a Tailscale network.

If I specify exclusiveDashboard: true on my Tailscale section of the configuration, the dashboard will only be added to the Tailscale router. This way, the dashboard won’t be available at hacdias.com, but only inside the Tailscale network. I’ve tried it and it works. However, it is not how it is not enabled on the live version yet!

I also mentioned that I was trying to “inject” and admin bar while logged in. I can say that it is working via some response writer wrapping magic. I have a few more plans to make Eagle more self-contained, but we’re not there yet!

Have a fantastic day!

In my last post, I mentioned that I was "investigating the possibility to use Tailscale to simply block the access from the “outside world” and make it more secure". Well, it is now implemented and it works. Basically, my blog system can listen on two different ports: the regular one where you're na…

Yesterday and today I worked a bit on the backend of my website: Eagle. I’m quite happy with the amount of bugs I managed to fix and some of the new features:

  • Edit data files (or any other files)
  • Integration with Miniflux to update the blogroll
  • Usage of afero for base path file systems, i.e., avoid being able to edit files outside of the source’s scope
  • Improved interface
  • Search posts on the backend
  • Added favicon
  • Many fixes

I’ve also been investigating the possibility to use Tailscale to simply block the access from the “outside world” and make it more secure? I’ve tried using the still in the works package tsnet - like @jlelse did - and it was quite nice.

Unfortunately, I’m not sure yet how I can simply block access to the dashboard interface yet. At least in the case that the interface is on the same domain as the website. Right now, they are separated so it’d be easy. However, I’m thinking of putting it all under the same domain again.

I’m also trying to understand how I can perhaps “inject” an admin bar - with buttons to perform some actions - while navigating the website in case I’m logged in. Perhaps a bit of JavaScript magic will do it. I personally don’t want to get rid of Hugo (yet) and this solution or working around Hugo has been working very well! Hugo is the “database” and generator.

Also considering to add a few other features, such as post location, uploads with compression and correct resizings to BunnyCDN, renaming of posts, etc.

Yesterday and today I worked a bit on the backend of my website: Eagle. I'm quite happy with the amount of bugs I managed to fix and some of the new features: Edit data files (or any other files) Integration with Miniflux to update the blogroll Usage of afero for base path file systems, i.e., avoid…

I just wanted to redirect everything from /all* to /stream* - finally decided to do so -, but somehow I managed not to figure out how to do that with Caddy webserver. I ended up manually redirecting the 3 main URLs:

redir /all /stream permanent
redir /all/feed.xml /stream/feed.xml permanent
redir /all/feed.json /stream/feed.json permanent

I tried many redir combinations and none worked. I can make the wildcard matching work with /all* but then… what do I redirect it to? I tried different thing and none worked. If you use Caddy, and have some minutes to spare, how would you configure this redirection?

I just wanted to redirect everything from /all to /stream - finally decided to do so -, but somehow I managed not to figure out how to do that with Caddy webserver. I ended up manually redirecting the 3 main URLs: redir /all /stream permanent redir /all/feed.xml /stream/feed.xml permanent redir /al…

Now, if you decide to curl my website curl -L hacdias.com, you’ll get the same contents as my humans.txt file. Just a fun feature for curl users!

Now, if you decide to curl my website curl -L hacdias.com, you'll get the same contents as my humans.txt file. Just a fun feature for curl users!…

I’m thinking of changing how my “photos” section works, or maybe have two different sections. On one hand, I the possibility of being able to just share a random, single photo I liked, like on Instagram. On the other hand, I really enjoy the aspect of curating stories - like here and here.

I think it’s possible to do both, but is it worth it? Should I invest my time in doing so? I’m gonna work on some ideas and possibly update it on the near future. Who knows?

I'm thinking of changing how my "photos" section works, or maybe have two different sections. On one hand, I the possibility of being able to just share a random, single photo I liked, like on Instagram. On the other hand, I really enjoy the aspect of curating stories - like here and here. I think…

It seems my column layout didn’t last long. As I was writing the post I had an idea: what about a mixed grid with the latest micro, articles and photos? Bingo!

Now the latest section in my homepage contains my latest micro post with full width, then a 2 by 2 grid with the latest 4 articles and a 2 by 3 grid with the latest 6 picture series!

It seems my column layout didn't last long. As I was writing the post I had an idea: what about a mixed grid with the latest micro, articles and photos? Bingo! Now the latest section in my homepage contains my latest micro post with full width, then a 2 by 2 grid with the latest 4 articles and a 2…

I just updated my home page to show my last 10 posts (articles, micro and photos). Before, I was displaying two columns: one with articles and one with pictures. But I felt it wasn’t dynamic enough as I don’t post as many of those.

Now I’m using CSS columns which doesn’t make me particularly happy because the order of the posts is from top to bottom and not from left to right. I see there’s a masonry grid layour in the works so it may be a nice option for the future.

For now, I’m not even sure if I’ll keep it like this or change it soon. Let’s see. What do you think?

I just updated my home page to show my last 10 posts (articles, micro and photos). Before, I was displaying two columns: one with articles and one with pictures. But I felt it wasn't dynamic enough as I don't post as many of those. Now I'm using CSS columns which doesn't make me particularly happy…

In the past few days, I made a few updates on my website to improve both looks and performance. I started by updating my guestbook a few days ago.

Then, I looked at the CSS and I noticed there were huge chunks of CSS regarding cards and webmentions. Those and some other parts are now only added to the pages that require them.

I also decided to delete my GoodReads account and cleanup a bit my readings page. I still don’t have a fancy interface to edit them, but I’ll have soon enough. It’s not as if I’m reading tons of books every day.

In the past few days, I made a few updates on my website to improve both looks and performance. I started by updating my guestbook a few days ago. Then, I looked at the CSS and I noticed there were huge chunks of CSS regarding cards and webmentions. Those and some other parts are now only added to…