Différences entre versions de « Hugo »

De Mi caja de notas

(Contenu remplacé par « cf iwc:Hugo-fr {{iwc}} »)
Ligne 1 : Ligne 1 :
{{en travaux|xtof|étude indieweb sur https://ascraeus.org/embracing-the-indieweb/}}
+
cf [[iwc:Hugo-fr]]
  
''Cette page a démarré sur [[iwc:Hugo]] et migrera sur [[iwc:Hugo-fr]]''
+
{{iwc}}
 
 
{{stub-fr}}
 
{{pagelogo|https://pbs.twimg.com/profile_images/875029899614007298/NLZrk0Lw_400x400.jpg}}
 
 
 
'''<dfn>[https://gohugo.io Hugo]</dfn>''' est un générateur de site statique écrit en [[Go|Go]]. Il est conçu pour construire un site basé sur des fichiers [[markdown]] et avec une information de header en YAML ou TOML. Il utilise des templates Go et compile très rapidement un site complet. Pas de support intégré indieweb, mais l'ajout de microformats aux templates est relativement aisé.
 
{{clear}}
 
 
 
== Exemples IndieWeb ==
 
Les personnes utilisant en ce moment Hugo pour leur site primaire :
 
* [http://jonathanprozzi.net Jonathan Prozzi] - jonathanprozzi.net
 
* {{dgold}} - [https://ascraeus.org View from Ascraeus]
 
* [https://craigmod.com/onmargins/ Craig Mod's On Margins] - craigmod.com/onmargins
 
* {{renem}} - [https://renem.net renem.net] (Migré à partir de [[Medium]] sur [https://renem.net/post/2017-05-19-alles-auf-anfang-alles-meins/ May 19, 2017]) (Allemand)
 
* [https://byzero.de Markus Heurung] - byzero.de
 
* [https://prettygoodhat.com/ Alan S.]
 
** [https://prettygoodhat.com/post/2018-01-14-retuning-indieweb/ Détails sur le réglage webmention]
 
* [https://skippy.net/ skippy]
 
* {{kaushalmodi}} - [https://scripter.co A Scripter's Notes]
 
* {{addyourself}}
 
 
 
== Implémentation Micropub ==
 
{{dgold}} a écrit spécifiquement le [[micropub-endpoint]] [[nanopub]] à utiliser spécifiquement avec Hugo. Fournit l'implémenation pour les notes, articles, check-ins, signet et réponses..
 
 
 
== Articles ==
 
* {{dgold}} - [https://ascraeus.org/embracing-the-indieweb/ Embracing the IndieWeb]
 
* [https://www.amitgawande.com/ Amit Gawande] - [https://www.amitgawande.com/indiewebify-hugo-website/ IndieWebify Your Hugo Website: Control Your Identity and Content Online] 2018-02-10
 
 
 
== Migration vers Hugo ==
 
=== À partir de WordPress ===
 
Il existe un petit [https://github.com/SchumacherFM/wordpress-to-hugo-exporter wordpress-to-hugo-exporter plugin pour Wordpress] astucieux, qui exporte les Posts et Pages à partir d'un site WordPress à l'intérieur d'une hiérarchie de fichiers et répertoires prête à être utilisée avec Hugo (on devrait encore avoir à configurer, créer un thème, etc. avant de pouvoir véritablement compiler le site).
 
 
 
''Testé à [[2016/Brighton|IndieWebCamp Brighton 2016]] par [[User:mey.vn|hotzeplotz]] sur WordPress 4.6.1, a fonctionné parfaitement (exportation d'environ 7MB de post/pages et media vers un fichier zip en <1 seconde, avec du contenu puis compilée par Hugo en 150ms !)''
 
 
 
 
 
=== Importer une Archive Twitter ===
 
[https://skippy.net/ skippy] a créé un script rudimentaire en Python pour [https://github.com/skpy/twitter-granary-hugo/ convertir un export Twitter en Markdown], à utiliser avec Hugo.  Il s'appuie sur [[granary]] pour manipuler le JSON brut Twitter.
 
 
 
== Voir auss ==
 
* [[static site generator-fr|générateur de site statique]]
 
* https://www.sarasoueidan.com/blog/jekyll-ghpages-to-hugo-netlify/
 

Version du 6 avril 2018 à 12:18

cf iwc:Hugo-fr

Hugo is a static site generator written in Go used by several people in the IndieWeb community to run their personal sites. It is designed to build a site based on markdown files with header information in YAML, TOML or JSON. It uses Go templates and compiles a full site very rapidly. No built-in IndieWeb support, but adding microformats to templates is relatively straightforward.

How to

How to IndieWebify a Hugo site

Amit Gawande wrote an excellent post on How to IndieWebify Your Hugo Website: Control Your Identity and Content Online

IndieWeb Examples

People currently using Hugo as their primary site:

Micropub Implementation

  • Daniel Goldsmith wrote the nanopub micropub-endpoint specifically for use with Hugo. Provides implementation for notes, articles, check-ins, bookmarks and replies.
  •   Jamie Tanna's Micropub server is built around Hugo's directory structure, and required metadata

Articles

Migrating to Hugo

From Jekyll

migrate-jekyll-hpstr-hugo

From WordPress

There is a small nifty wordpress-to-hugo-exporter plugin for Wordpress, which exports Posts and Pages from a WordPress site into a files and directories hierarchy ready to be used with Hugo (one would still need to configure/create a theme, etc. before being able to actually compile the site).

Tested at IndieWebCamp Brighton 2016 by hotzeplotz on WordPress 4.6.1, worked perfectly (exporting around 7MB of post/pages and media to a zip file in <1 second, with content then compiled by Hugo in 150ms!)

Importing a Twitter Archive

skippy has created a rudimentary Python script to convert a Twitter export into Markdown, for use with Hugo. It relies on granary to manipulate the raw Twitter JSON.

Themes with indieweb-focussed microformat and markup support

Support present

PRs submitted

  • hermit – PR
  • hugo-nuo - PR
  • nix - PR
  • hugo-academic - PR
  • sada - PR
  • whiteplain - PR
  • hugo-dream-plus - PR
  • ghostwriter - PR
  • charaka - PR
  • sky - PR
  • jeffprod - PR
  • resume - PR
  • hyde-y - PR

See Also


<footer>source iwc:Hugo</footer>

<footer>