Projektstruktur

Verzeichnisse
_posts/ → Blog-Artikel
_layouts/ → Layout-Vorlagen
_includes/ → Wiederverwendbare Snippets
_data/ → YAML/JSON Daten
assets/ → JS, CSS, Bilder
Konfiguration
_config.yml

Start & Build

Projekt erstellen
jekyll new mein-blog
Lokaler Server
bundle exec jekyll serve
Produktion bauen
JEKYLL_ENV=production bundle exec jekyll build

Markdown + Front Matter

YAML Header
---
title: "Mein Artikel"
date: 2025-08-04
layout: post
categories: [blog, tech]
---
Excerpt
Trenner: excerpt_separator:

Liquid Syntax

Variablen
{{ page.title }}, {{ site.time }}
Schleife
{% raw %}{% for post in site.posts %}
{{ post.title }}
{% endfor %}{% endraw %}
Bedingung
{% raw %}{% if page.layout == "post" %}...{% endif %}{% endraw %}

Layouts & Includes

Einfügen
{% raw %}{% include header.html %}{% endraw %}
Seitenstruktur
default.html
post.html
page.html

Daten & Collections

YAML-Daten verwenden
{{ site.data.autoren.tom.name }}
Custom Collection
collections:
projekte:
output: true

GitHub Pages

Repository-Namen
username.github.io
Auto-Deploy
main oder gh-pages branch
Limitierungen
Nur bestimmte Plugins erlaubt

Empfohlene Plugins

SEO
jekyll-seo-tag
Sitemap
jekyll-sitemap
Feed
jekyll-feed