Capitalyric Capitalyric
  • Accueil 
  • Besoin d’un crédit ? 
  • Qui sommes-nous ? 
  • Nous contacter 
  • Français 
    • Français 
    • English 
    • Deutsch 
    • Dansk 
    • Svenska 
    • Español 
    • Hrvatski 
    • Italiano 
    • Eesti 
Loading...
  1. Home
  2. Docy Jekyll Theme
  3. Getting Started
  4. Creating your first post in Jekyll
Updated on août 25, 2021
Docy Jekyll Theme
  • Icône de dossier fermée Icône d’ouverture de dossierGetting Started
    • Theme Installation
    • Basic Theme Setup
    • Creating your first post in Jekyll
    • Creating docs posts
  • Icône de dossier fermée Icône d’ouverture de dossierManage Contents
    • Navigation Bar
    • Footer Options
    • Docy Testimonial
    • Recommended Topics
    • Enabling comments (via Disqus)
    • Google Analytics
  • Icône de dossier fermée Icône d’ouverture de dossierDeployment
    • Github
    • Netlify

Creating your first post in Jekyll

Temps estimé :1 minute 318 vues

Create Post File

To create a new post, you can create a new markdown file inside the _posts directory by following the recommended file naming format:

YEAR-MONTH-DAY-title.MARKUP

Where YEAR is a four-digit number, MONTH and DAY are both two-digit numbers, and MARKUP is the file extension representing the format used in the file. For example, the following are examples of valid post filenames:

2011-12-31-new-years-eve-is-awesome.md
2012-09-12-how-to-write-a-blog.md

Post Front Matter

Post requires front matter, everything in between the first and second — are part of the YAML Front Matter, and everything after the second — will be rendered with Markdown and show up as “Content”. The following is a post file with different configurations you can add as example:

---
layout: post
title: How To Travel On Low Budget
author: Indigo Violet
avatar: img/blog-classic/author_4.jpg
category: [Travel]
timeToRead: 18 Min Read
post_img: img/blog-classic/classic_03.jpg
---

You can rebuild the site in many different ways, but the most common way is to run bundle exec jekyll serve, which launches a web server and auto-regenerates your site when a file is updated.

To keep things more organized, add post images to /img/blog-classic/ directory

Still stuck? How can we help?

How can we help?

Was this page helpful? Oui Non

Leave a Comment Annuler la réponse

Share this Doc

Creating your first post in Jekyll

Or copy link

Icône du presse-papiers
CONTENTS

Powered By EazyDocs

© 2017 Tous droits réservés par kreditonex