108640 Views
83860 Views
59555 Views
48723 Views
48311 Views
47806 Views
C2Pi-O Laser cut Camera holder
Build a laser-cut robot
Robots and Lasers
Arduino Plug and Make Kit Review
Pi to Pico W Bluetooth Communication
Two-Way Bluetooth Communication Between Raspberry Pi Picos
Introduction to the Linux Command Line on Raspberry Pi OS
How to install MicroPython
Wall Drawing Robot Tutorial
BrachioGraph Tutorial
Intermediate level MicroPython
Introduction to FreeCAD for Beginners
KevsRobots Learning Platform
36% Percent Complete
By Kevin McAleer, 3 Minutes
In this lesson, we’ll delve into the heart of managing content in Jekyll. You’ll learn how to create and organize posts and pages, use Markdown for easy content creation, and leverage Jekyll’s front matter and data files for advanced content management.
Jekyll simplifies the process of creating posts and pages. Here’s how you can start:
_posts
YYYY-MM-DD-title.md
Start with front matter, for example:
--- layout: post title: "My First Post" date: 2024-01-25 categories: tutorial ---
about.md
Markdown is a lightweight markup language that allows you to write using an easy-to-read, easy-to-write plain text format.
#
**bold**
*italic*
[Link text](URL)
![Alt text](image URL)
Front matter allows you to set variables for your page or post, which you can then access using Jekyll’s templating system.
Example:
--- layout: page title: "About" ---
_data
Liquid Templating Liquid is a templating language developed by Shopify. Jekyll uses it to process templates, allowing you to use variables, logic, and filters in your content. for example: {% for item in site.data.mydata %} {{ item.name }} {% endfor %} Note how the logic is wrapped in {% %} and the variables are wrapped in {{ }}.
Liquid is a templating language developed by Shopify. Jekyll uses it to process templates, allowing you to use variables, logic, and filters in your content. for example:
{% for item in site.data.mydata %} {{ item.name }} {% endfor %}
Note how the logic is wrapped in {% %} and the variables are wrapped in {{ }}.
{% %}
{{ }}
In this example, mydata is the name of the data file, and name is a variable in the data file. The for loop iterates through the data file and prints the value of the name variable.
mydata
name
for
Organizing your content helps visitors navigate your site easily.
categories: tutorial tags: jekyll markdown
You now have the knowledge to manage content in Jekyll effectively. Experiment with writing posts, using Markdown, and organizing your site’s content.
Create a blog post about a topic of your choice using Markdown. Include front matter, and categorize and tag your post.
< Previous Next >