User Tools

Site Tools


staticgenerators:hugo

This is an old revision of the document!


Table of Contents

Hugo

Essai de remplacement de mon site type-one.net en Drupal.

Installation

sudo apt install hugo

Premiers pas

Créer le site et importer le thème (xmin) :

hugo new site type1
cd type1
git init
git submodule add https://github.com/yihui/hugo-xmin.git themes/xmin

adapter le fichier de configuration hugo.toml :

baseURL = 'https://type-one.net/' 
languageCode = 'en-us' 
title = 'type-one.net' 
theme = "xmin" 
paginate = 10 
enableRobotsTXT = true 
 
[params] 
  description = "Vintage Magic: the Gathering tournament reports of yore" 
 
[taxonomies] 
  category = "categories" 
  tag = "tags" 
 
[menu] 
  [[menu.main]] 
    name = "home" 
    url = "/" 
    weight = 1 
 
  [[menu.main]] 
    name = "reports" 
    url = "/reports" 
    weight = 2 
 
  [[menu.main]] 
    name = "Articles" 
    url = "/posts/" 
    weight = 3
staticgenerators/hugo.1772296223.txt.gz · Last modified: by carl