Kurzreferenz

Jekyll auf GitHub Pages Spickzettel

Kurzreferenz für Jekyll mit GitHub Pages: Verzeichnisstruktur, Konfiguration, Frontmatter, Liquid-Tags und lokaler Testlauf vor dem Deployment.

· Veröffentlicht

Schnellreferenz für die Konfiguration und Veröffentlichung statischer Jekyll-Websites mit GitHub Pages.

Verzeichnisstruktur

.
├── _config.yml       # Site-Konfiguration
├── _includes/        # Wiederverwendbare Template-Snippets
├── _layouts/         # Basis-Seitenlayouts
├── _posts/           # Blogbeiträge (YYYY-MM-DD-title.md)
├── _sass/            # SASS- / SCSS-Style-Partials
├── assets/           # Bilder, kompilierte Styles, JS
└── index.md          # Startseiteninhalt

Konfiguration (_config.yml)

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

# GitHub-Pages-Abhängigkeiten
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-Template-Helfer

Ausgabe und Variablen

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

Bedingungen und Schleifen

{% 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>

Lokales Testen

# Abhängigkeiten installieren
bundle install

# Lokalen Entwicklungsserver mit Live-Reload starten
bundle exec jekyll serve --livereload

Verwandte Themen