Site en markdown

J.Ansari | Jul 16, 2023 min read

Ce site fait en markdown avec Hugo liens. Avec le theme: liens

installer hugo

apt install hugo

créer un nouveau site

hugo new site quickstart
cd quickstart
git init
git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/ananke
echo "theme = 'ananke'" >> hugo.toml
hugo server

créer sa première page

hugo new posts/my-first-post.md
nano posts/my-first-post.md
---
title: "My First Post"
date: 2022-11-20T09:03:20-08:00
draft: true
---
## Introduction

This is **bold** text, and this is *emphasized* text.

Visit the [Hugo](https://gohugo.io) website!

Démarrer son site en version de test

hugo server -D

Démarrer son site en version prod

hugo

Cela va créer un contenu public.