Posts

Showing posts with the label p8

How Can Beginners Use Tags and Categories in Jekyll

Why Should You Use Tags and Categories in Jekyll? As your Jekyll blog grows, organizing content becomes more important. Categories group similar types of posts (like “tutorials” or “news”), while tags label specific topics (like “jekyll,” “liquid,” or “seo”). They help: Improve site structure Enhance user navigation Boost SEO through internal linking Step-by-Step: How to Use Categories and Tags in Jekyll Step 1: Add Tags and Categories to Each Post In your blog post’s front matter: --- layout: post title: "How to Use Tags in Jekyll" categories: [tutorial,jekyll] tags: [jekyll,seo,beginner] --- Step 2: Access Them in Your Templates Inside a post layout, you can display tags and categories: <p>Categories: {% for category in page.categories %} <a href="/categories/{{ category | slugify }}/">{{ category }}</a> {% endfor %} </p> <p>Tags: {% for tag in page.tags %} <a href="/tags/...

Labels


© . All rights reserved.

-