Xtof/Hugo

De Mi caja de notas

< Xtof

Recherche en cours pour indiewebifier GoHugo portrait xtof 2 mai 2018 à 06:00 (UTC)

micropub

intégrer micropub dans Hugo pour publier à partir de micropub/clients

2018-123 : micropub

Objet : mettre à jour un site motorisé parGoHugo à partir d'un mobile ou d'interfaces-clients externes (micropub/clients).

Repo de travail pour installer un point de terminaison micropub : https://github.com/voxpelli/webpage-micropub-to-github

Pourquoi choisir "micropub-to-github" ?

La solution initialement conçue pour accepter un post provenant de n'importe quel client micropub sait convertir le post en un commit compatible-jekyll incluant le front matter en YAML et le contenu. Quelques collègues indieweb parviennent à le faire fonctionner pour Hugo.

Statut : en travaux

>.

  • Réglé les 6 variables d'environnement requises + 3 variables facultatives (type de posts, chemin + nom de fichier et répertoire img).

Détails ci-dessous :

Micropub-xtof-settings-Heroku.png

Note : Les variables d'output `MICROPUB_FILENAME_STYLE` et `MICROPUB_MEDIA_FILES_STYLE` pour régler les noms de fichier et chemin/ noms de fichier et chemin pour les images doivent être placées entre guillemets.

  • Installé les 3 points de terminaison micropub, authorization et token dans le `header` html :

```

   <link rel="micropub" href="https://micropub-xtof.herokuapp.com/micropub/main" />
   <link rel="authorization_endpoint" href="https://indieauth.com/auth">
   <link rel="token_endpoint" href="https://tokens.indieauth.com/token" />

```

Résultats

Les essais simples de publication de notes sur Quill sans image fonctionnent. Je récupère bien un post généré sur mon repo github que je dois rapatrier sur ma machine locale.

ex. :

``` --- layout: posts date: '2018-05-02T05:12:06.556Z' title: tags: microblog micropub slug: '18726' category: social

--- Microbloguer dans Jekyll : Inspiré par quelques réglages de Micropub webpage-micropub-to-github, l'app qui crée un point de terminaison micropub pour les sites Jekyll hébergés sur GitHub pages.

```


Essai quill avec titre + citation + gif

``` --- layout: posts date: '2018-05-03T07:08:24.887Z' title: 'Show, not tell, what you know' tags: stoicisme mf-mp-slug:

 - show-not-tell

slug: show-not-tell-what-you --- > Those who receive the bare theories immediately want to spew them, as an upset stomach does its food. First digest your theories and you won’t throw them up. Otherwise they will be raw, spoiled, and not nourishing. After you’ve digested them, show us the changes in your reasoned choices, just like the shoulders of gymnasts display their diet and training, and as the craft of artisans show in what they’ve learned.

—EPICTETUS, DISCOURSES, 3.21.1–3 ![](data:image/gif;base64,R0lGODlheADLAPcAAAAAAAEBAQICAgMDAwQEBAUFBQYGBgcHBwgICAkJCQoKCgsLCwwMDA0NDQ4ODg8PDxAQEBERERISEhMTExQUFBUVFRYWFhcXFxgYGBkZGRoaGhsbGxwcHB0dHR4eHh8fHyAgICEhISIiIiMjIyQkJCUlJSYmJicnJygoKCkpKSoqKisrKywsLC0tLS4uLi8vLzAwMDExMTIyMjMzMzQ0NDU1NTY2Njc3Nzg4ODk5OTo6Ojs7Ozw8PD09PT4+Pj8/P0BAQEFBQUJCQkNDQ0REREVF...2IVsqAU5kINdkAZx2AYv4IZ3uIZo2AYZkQd6gAd3KCfbCwgAADs=)

```

Travaux à faire :

- mise en forme de la ligne de tags - orienter vers "notes" et concevoir un layout de notes sans titre

liens

liens indieweb à compléter, relire et classer

Une recherche dans la jungle de collègues indieweb ayant configuré un point de terminaison micropub iwc:token-endpoint :

1. Daniel Goldsmith avec nanopub Embracing the IndieWeb https://ascraeus.org/embracing-the-indieweb/ - Daniel a aussi un micro.blog https://micro.blog/dgold cf aussi https://ascraeus.org/micro/ post démo https://ascraeus.org/micro/1500061827/ 2. jnjosh thème "internet weblog" https://jnjosh.com/microposts/19431/ https://micro.blog/jnjosh# repo https://github.com/jnjosh/jnjosh.com (micropub mais pas de webmention) 3. Keith Grant (créateur de l'extension Omnibear]) https://keithjgrant.com repo https://github.com/keithjgrant/keithjgrant.com - micropub https://micropub.keithjgrant.com/micropub/main produite avec docker 4. Skippy https://github.com/skpy/hugo-skippy.is aka Scott https://skippy.net/ 5. Rhiaro et son "Minimum Viable micropub" https://rhiaro.co.uk/2015/04/minimum-viable-micropub 6. Pretty Good Hat à étudier https://prettygoodhat.com/about/ installation avec le nanopub de daniel https://github.com/dg01d/nanopub/blob/master/INSTALLATION.md https://prettygoodhat.com/post/2018-01-14-retuning-indieweb/ + https://prettygoodhat.com/post/further-indieweb-adventures/ 7. Calum Ryan (2017-02) config micropub par classe php > https://calumryan.com/learning/getting-started-with-micropub/ 8. https://martymcgui.re/2017/01/26/122700/ un point de terminaison micropub en python 9. portrait Jeremy Keith https://adactio.com/journal/7698 10. Amit https://www.amitgawande.com/ (cf son post de recherche https://micro.blog/amit/353415) Post de setup https://www.amitgawande.com/indiewebify-hugo-website/

cf aussi

divers travaux

  • communication : designer une page de contact
  • webmention : style + formule avec formulaire d'envoi URL plus "ping"
  • logos SVG à intégrer micro.blog et instagram
  • thème à modifier : section de notes disssociée des posts