Writing guide

Start Jekyll with

jekyll serve


To be able to push new search results you need to compile jekyll with new data

ALGOLIA_API_KEY='ADMIN-KEY' bundle exec jekyll algolia

Helper elements for include

Youtube Lazy Load

2 Columns for imagesand text


Helper classes

{: .col-2}
![](/wp-content/uploads/2022/05/Screenshot-2022-05-25-at-21.46.48-800x1217.png){: .half-img}
![](/wp-content/uploads/2022/05/Screenshot-2022-05-26-at-13.37.07-800x1796.png){: .half-img}

will wrap images in p with class=”col-2”

Available helper classes

.col-2 .col-3 .col-4

Reusable parts

OEmbed (Youtube)

<div class="wrapper w-full mx-auto my-xxl">
	<div class="youtube relative overflow-hidden cursor-pointer w-full h-auto aspect-video rounded-sm" data-embed="xxxxxxx">
            class=" play-button bg-[#ff0d00] rounded-[10px] w-[90px] h-[60px] z-10 opacity-80 cursor-pointer absolute top-[50%] left-[50%]
                    before:absolute before:top-[50%] before:left-[50%]">

.youtube .play-button:before {
	border-width: 15px 0 15px 26.0px;
	border-color: transparent transparent transparent #fff;

.youtube .play-button,
.youtube .play-button:before {
	transform: translate3d( -50%, -50%, 0 );

.youtube iframe{
	width: 100%;
    height: auto;
    aspect-ratio: 16/9;

    ( function() {

	var youtube = document.querySelectorAll( ".youtube" );
	for (var i = 0; i < youtube.length; i++) {
		var source = "https://img.youtube.com/vi/"+ youtube[i].dataset.embed +"/sddefault.jpg";
		var image = new Image();
				image.src = source;
                image.classList.add("w-full", "left-0", "top-0", "-translate-y-[17%]", "cursor-pointer", "absolute");
				image.addEventListener( "load", function() {
					youtube[ i ].appendChild( image );
				}( i ) );
				youtube[i].addEventListener( "click", function() {

					var iframe = document.createElement( "iframe" );

							iframe.setAttribute( "frameborder", "0" );
							iframe.setAttribute( "allowfullscreen", "" );
							iframe.setAttribute( "src", "https://www.youtube.com/embed/"+ this.dataset.embed +"?rel=0&showinfo=0&autoplay=1" );

							this.innerHTML = "";
							this.appendChild( iframe );
				} );	
    } )();

Replace xxxxxxx with youtubeID and not the entire URL