Riferimento rapido per configurare e pubblicare siti web statici Jekyll su GitHub Pages.
Struttura delle Directory
.
├── _config.yml # Configurazione del sito
├── _includes/ # Frammenti di template riutilizzabili
├── _layouts/ # Layout base di pagina
├── _posts/ # Articoli del blog (YYYY-MM-DD-title.md)
├── _sass/ # Partial di stile SASS / SCSS
├── assets/ # Immagini, stili compilati, JS
└── index.md # Contenuto della homepage
Configurazione (_config.yml)
title: My Documentation
description: Quick reference cheatsheets
baseurl: "/my-repo"
url: "https://username.github.io"
# Dipendenze GitHub Pages
plugins:
- jekyll-feed
- jekyll-seo-tag
- jekyll-sitemap
markdown: kramdown
theme: minima
Intestazione Frontmatter
---
layout: post
title: "Getting Started with Jekyll"
date: 2026-10-25 12:00:00 +0000
categories: [development, tools]
tags: [jekyll, static-site]
---
Helper per Template Liquid
Output e Variabili
{{ site.title }}
{{ page.title }}
{{ content }}
Condizionali e Cicli
{% 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>
Test Locale
# Installa dipendenze
bundle install
# Avvia server locale di sviluppo con live reload
bundle exec jekyll serve --livereload