Life with 🐘 🐳 🐧 πŸ’»

Follow @DennisdeBest

Adding files to specific pages' header tags

As I have added TypeScript and WebPack encore to Grav recently I wanted to find a way to add CSS and JavaScript only to certain pages.

Generating multiple outputs for assets

So far I generated a assets.html page that would contain the links to the JavaScript and CSS files generated by WebPac...

Continue reading

Adding WebPack Encore and TypeScript to Grav

I started this Grav Blog in 2016. It was a nice and easy way to get started and to set everything up. I got the LingonBerry theme and only changed a few lines in its CSS code to change some colors. This worked fine and was up for years.

Recently I wanted to get back to my blog to add some mor...

Continue reading

Contribute to Grav plugins

When you notice some errors in the Grav plugins you can help fixing them by changing some of the code inside.

When upgrading to Grav 1.7 and PHP 8 it crashed with the DropCaps plugin.

To get this to work I forked the repository and added a contrib directory at the root of my Grav project.

T...

Continue reading