Archive
The problem with VSCode
Geoffrey Huntley writes an extensive explanation on how “Visual Studio Code is designed to fracture” and unburies some (well, expected) shadyness on the part of Microsoft. The long story short version is summarised at the end: In short, this is what Microsoft did:
The evolution of the Rolling Stone logo
The Rolling Stone Magazine has a new logo, which one might have overlooked due to its references to its history. XYZ Type, the designer(s) behind the rework give a little insight into the illustrious history of the logo through the decades and the reasoning behind their updates.
Notes from the Laboratory: August 2022
I am trying this new “thing” of “reporting” what I was up to in a certain time period this year, and monthly reviews just sound like something normal people would do. So bear with me while I am typing up this report.
A Cat and a Dog
Ok, so this is a cat and a dog living peacefully together. I had to add this just for some testing purposes ;) Keep calm and keep walking, there is nothing to see here (other than animals proving to us humans that one can live together with other kinds, but, well, whatever…)…
Pictures
This component for GoHugo adds partials and shortcodes to handle images on your website. It offers responsive image formats and optimised loading based on current browser abilities. Work in progress! Check back for better documentation and more features. The following documentation is, as long as this note is here, only partial and might be missing important points.
Mark word break opportunities in HTML
Today I tried to check my website, while frolicking on a beach somewhere on Koh Samui and was presented with the view on the left in the image above. That box looked weird, and of course that very long hashtag was the reason for it.
Giscus
This is a Hugo theme component to add the Giscus comment system, powered by GitHub Discussions, to static websites. Note: Giscus is still under active development. GitHub is also still actively developing Discussions and its API. Thus, some features of Giscus may break or change over time.
Simple multi-language pre-commit hooks
This is one of the posts that spent months in draft (fka ideas) mode. Recently I got to convert some people to use the tool described by this post, so I thought I might as well add some context to it.
Youtube
A responsive and very fast shortcode to add youtube videos to your Hugo website. Usage This shortcode replaces the internal youtube shortcode and adds an unobtrusive, privacy conscious and unbloated custom element for YouTube videos. It uses lite-youtube-embed. go-html-template 1{{< youtube id="dQw4w9WgXcQ" >}} 2{{< youtube "dQw4w9WgXcQ" >}} 3{{< youtube id="dQw4w9WgXcQ" title="Lower your eyelids to die with the sun - M83" >}} Parameters parameter default notes class w-100 classnames to add to the video container id ID of the YouTube video to embed params custom parameters to be added to influence the display and functionality of the player.
Notes from the Laboratory: July 2022
I am trying this new “thing” of “reporting” what I was up to in a certain time period this year, and monthly reviews just sound like something normal people would do. So bear with me while I am typing up this report.
Internals
This module attempts to replace internal templates used by Hugo with custom ones and other modules and plugins that add identical features more sophisticated or up-to-date. Internal templates of Hugo are highly opiniated, often out of time and not suitable for use in the production environment of a website.
Security
This module adds a security.txt file to your Hugo website with information about your preferred procedures to notify the developer team of your website about security issues on your website. Read more about security.txt, a proposed standard which allows websites to define security policies.
PWA
This is a Hugo theme component with helpers to convert your static GoHugo website into a PWA. This is work in progress and while many parts are already working, some changes to the setup will occur. Please watch the releases of this repository to be alerted about changes.
Netlification
This is a Hugo theme component with helpers to host your GoHugo generated static website on Netlify. If you don’t use Netlify, you DO NOT need this module. Add this module [[module.imports]] path = "github.com/davidsneighbour/hugo-netlification" disable = false ignoreConfig = false ignoreImports = false Latest Version v1.
Head
This is a GoHugo theme component that solves the old question “What tags belong into the <head> tag of my website?” Set it up, configure it, forget it’s there. This component adds a multitude of tags and is extensively configurable.
Hooks
Hooks for GoHugo layouts. An easy way for theme developers to let users add partials and blocks at pre-defined safe places to their themes. We often want to add locations and places in our templates and layouts where it’s users can add something on their own.
Debug
This module for GoHugo adds debugging partials for many use cases.
Feeds
This is a GoHugo theme component that implements various configurable feed formats. Currently implemented formats are RSS, Atom and JSONfeed. Find out more about the RSS, Atom and JSON feed formats Add this module [[module.imports]] path = "github.com/davidsneighbour/hugo-feeds" disable = false ignoreConfig = false ignoreImports = false Latest Version v1.
Icons
This is a Hugo theme component that adds several icon sets to your Hugo website. Add this module [[module.imports]] path = "github.com/davidsneighbour/hugo-icons" disable = false ignoreConfig = false ignoreImports = false Latest Version (--) Fix to this version hugo mod get github.
.gitignore for GoHugo
This is a slight update on my previous post about the perfect .gitignore file for GoHugo. TLDR: The current optimum .gitignore content for a GoHugo project is the following (in addition to your own ignored files and folders): ini 1/public/ 2/resources/_gen/ 3/assets/jsconfig.
Robots
This component for GoHugo adds a customisable robots.txt to your website. Add this module [[module.imports]] path = "github.com/davidsneighbour/hugo-robots" disable = false ignoreConfig = false ignoreImports = false Latest Version v1.2.5 (2022-08-08) Fix to this version hugo mod get github.com/davidsneighbour/[email protected] Usage This component can be used as drop-in without much configuration.
Sitemap
This is a Hugo theme component with layouts to add a configurable sitemap to your website. Hugo itself has internal templates that add sitemaps, but this component has additional setup options per page. Usage There is no need to configure anything without having any special needs.
Less Clutter in Vscode
I am one of these kind of people that install plenty of extensions and tools and experiment around in VSCode (or any other code editor I am working with). Some time ago I realised, that this lead to a slow program and many of these plugins are only useful for a limited number of projects.
Notes from the Laboratory: June 2022
I am trying this new “thing” of “reporting” what I was up to in a certain time period this year, and monthly reviews just sound like something normal people would do. So bear with me while I am typing up this report.