Snelle referentie

Jekyll op GitHub Pages Spiekbriefje

Beknopte referentiegids voor Jekyll met GitHub Pages: mappenstructuur, configuratie, frontmatter, Liquid-tags en lokaal testen vóór uitrol.

· Gepubliceerd

Beknopte referentie voor het configureren en publiceren van statische Jekyll-websites met GitHub Pages.

Mappenstructuur

.
├── _config.yml       # Siteconfiguratie
├── _includes/        # Herbruikbare sjabloonfragmenten
├── _layouts/         # Basispagina-lay-outs
├── _posts/           # Blogberichten (YYYY-MM-DD-title.md)
├── _sass/            # SASS / SCSS-stijlfragmenten
├── assets/           # Afbeeldingen, gecompileerde stijlen, JS
└── index.md          # Startpagina-inhoud

Configuratie (_config.yml)

title: My Documentation
description: Quick reference cheatsheets
baseurl: "/my-repo"
url: "https://username.github.io"

# GitHub Pages-afhankelijkheden
plugins:
  - jekyll-feed
  - jekyll-seo-tag
  - jekyll-sitemap

markdown: kramdown
theme: minima

Frontmatter-header

---
layout: post
title: "Getting Started with Jekyll"
date: 2026-10-25 12:00:00 +0000
categories: [development, tools]
tags: [jekyll, static-site]
---

Liquid-sjabloonhelpers

Uitvoer en Variabelen

{{ site.title }}
{{ page.title }}
{{ content }}

Voorwaarden en Lussen

{% if page.comments %}
  {% include comments.html %}
{% endif %}

<ul>
  {% for post in site.posts limit:5 %}
    <li><a href="{{ post.url | relative_url }}">{{ post.title }}</a></li>
  {% endfor %}
</ul>

Lokaal Testen

# Afhankelijkheden installeren
bundle install

# Lokale ontwikkelserver starten met live reload
bundle exec jekyll serve --livereload

Verwante onderwerpen