Skip to main content

Category: Dev

Hugo - tip for bringing modified articles to the surface

(This post was automatically translated with www.DeepL.com/Translator) I sometimes modify old articles to add new information and I was looking for a simple way to make them appear on the site and the RSS feed, without modifying my theme: All you have to do is add a lastmod attribute with the update date to the article metadata: ``yaml lastmod: “2023-08-22 Then modify the site's frontmatter conf, in the _.toml_ or _.

Deploying a static Hugo website on Github Pages

# Last updated: 01/11/2023 #

(This post was automatically translated with www.DeepL.com/Translator)

The site you are viewing consists of a static Hugo website hosted on Github :

Github provides the ability to expose a static web site for each public repository in the account. All that is required is:

  • html+css in the repository;
  • The Github Pages feature enabled.

The static code of each repository will then be accessible at the url: https://MONLOGINGITHUB.github.io/MONDEPOT/

Hugo is a generator of static web sites : You write pages in markdown, you launch Hugo, and it generates all the html and the structure of site that Github will expose.

Use Syncthing to synchronize files between your Android phone and a Windows PC

(This post was automatically translated with www.DeepL.com/Translator)

The tutorial below is an introduction to the use of the free software Syncthing : We’re going to sync our Android phone’s photo directory with a Windows PC, so that we’ll always have a recent copy in case the phone stops working, is broken, stolen, etc.

Memo: Mass production of favicons with Imagemagick + conf files for browsers

(This post was automatically translated with www.DeepL.com/Translator)

Below I list a series of Imagemagick commands to generate all the favicon variants that a website can offer to browsers, from a good quality original.

I indicate at the end of the article the 2 conf files to update, as well as a modification of the Hugo theme, which will be useful for all browsers to find their little ones.

3 Imagemagick methods to fill the empty areas of a cropped image

(This post was automatically translated with www.DeepL.com/Translator)

I describe in this article 4 methods to fill the empty areas of an image when enlarging it, a basic technique, and 3 based on the initial image, for a more natural filling. At the end of the article, I give a shell script to generate the 4 versions for a given image.