Szybka ściągawka do konfiguracji i publikacji statycznych witryn Jekyll przy użyciu GitHub Pages.
Struktura katalogów
.
├── _config.yml # Konfiguracja witryny
├── _includes/ # Fragmenty szablonów wielokrotnego użytku
├── _layouts/ # Podstawowe układy stron
├── _posts/ # Wpisy na blogu (YYYY-MM-DD-title.md)
├── _sass/ # Fragmenty stylów SASS / SCSS
├── assets/ # Obrazy, skompilowane style, JS
└── index.md # Treść strony głównej
Konfiguracja (_config.yml)
title: My Documentation
description: Quick reference cheatsheets
baseurl: "/my-repo"
url: "https://username.github.io"
# Zależności GitHub Pages
plugins:
- jekyll-feed
- jekyll-seo-tag
- jekyll-sitemap
markdown: kramdown
theme: minima
Nagłówek Frontmatter
---
layout: post
title: "Getting Started with Jekyll"
date: 2026-10-25 12:00:00 +0000
categories: [development, tools]
tags: [jekyll, static-site]
---
Narzędzia szablonów Liquid
Wyjście i zmienne
{{ site.title }}
{{ page.title }}
{{ content }}
Warunki i pętle
{% 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>
Testy lokalne
# Instalacja zależności
bundle install
# Uruchomienie lokalnego serwera deweloperskiego z live reload
bundle exec jekyll serve --livereload