Aller directement au contenu
  • Catégories
  • Récent
  • Mots-clés
  • Populaire
  • Web
  • Utilisateurs
  • Groupes
Habillages
  • Clair
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Sombre
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Défaut (Darkly)
  • Aucun habillage
Réduire

NodeBB

  1. Accueil
  2. General Discussion
  3. Wordpress
  4. Migration Wordpress vers Hugo

Migration Wordpress vers Hugo

Planifié Épinglé Verrouillé Déplacé Wordpress
wordpresshugo
23 Messages 1 Publieurs 527 Vues 1 Abonné
  • Du plus ancien au plus récent
  • Du plus récent au plus ancien
  • Les plus votés
Répondre
  • Répondre à l'aide d'un nouveau sujet
Se connecter pour répondre
Ce sujet a été supprimé. Seuls les utilisateurs avec les droits d'administration peuvent le voir.
  • fariasF Hors-ligne
    fariasF Hors-ligne
    farias
    a écrit sur dernière édition par
    #11

    Deplacement après compilation :

    # cp -r public/ /var/www/.
    # chown -R www-data:www-data /var/www/
    
    1 réponse Dernière réponse
    0
    • fariasF Hors-ligne
      fariasF Hors-ligne
      farias
      a écrit sur dernière édition par
      #12

      Aie … pas la bonne commande :

      # hugo server --bind 0.0.0.0 --baseURL http://192.168.1.118:80 -t github-style --disableFastRender --appendPort=false -D 
      # cp -r public/ /var/www/.
      # chown -R www-data:www-data /var/www/
      

      Il manque livereload.js

      Link Preview Image
      Live reload broken

      Continuing the discussion from Live reload not working again, how can I fix?: Unfortunately I have the same problem and live reloading on my machine suddenly has stopped from working. I can’t figure out why. I’m on Hu…

      favicon

      HUGO (discourse.gohugo.io)

      1 réponse Dernière réponse
      0
      • fariasF Hors-ligne
        fariasF Hors-ligne
        farias
        a écrit sur dernière édition par
        #13

        Problème fixé avec la nouvelle commande de build :

        # hugo server --bind 0.0.0.0 --baseURL http://192.168.1.118:80 -t github-style --disableFastRender --appendPort=false -D --disableFastRender --disableLiveReload
        
        1 réponse Dernière réponse
        0
        • fariasF Hors-ligne
          fariasF Hors-ligne
          farias
          a écrit sur dernière édition par farias
          #14

          J’ai testé d’autres plugins :

          • https://barnz.dev/blog/embed-iframe-in-hugo-content/

          Sachant que j’avais déjà :

          • https://github.com/MeiK2333/github-style
          • https://github.com/hbstack/theme-cards (KO)
          • https://github.com/mfg92/hugo-shortcode-gallery
          • https://github.com/mfg92/hugo-shortcode-timeline

          Dans themes j’ai :

          # ls -A themes/
          github-style  hugo-shortcode-gallery  hugo-shortcode-timeline  theme-cards
          

          Pour la compilation :

          # hugo server --bind 0.0.0.0 --baseURL http://192.168.1.118:80 -t github-style,hugo-shortcode-gallery --disableFastRender --appendPort=false -D --disableFastRender --disableLiveReload
          
          1 réponse Dernière réponse
          0
          • fariasF Hors-ligne
            fariasF Hors-ligne
            farias
            a écrit sur dernière édition par
            #15

            Je viens de pousser dans un projet privé sur Forgeo :

            https://git.cyber-neurones.org/farias/GoHugo

            1 réponse Dernière réponse
            0
            • fariasF Hors-ligne
              fariasF Hors-ligne
              farias
              a écrit sur dernière édition par
              #16

              On progresse :

              image.png

              1 réponse Dernière réponse
              0
              • fariasF Hors-ligne
                fariasF Hors-ligne
                farias
                a écrit sur dernière édition par
                #17

                Quand je vois le code fait ma moi à la main et le code fait par l’outil il y a un monde :

                ++
                author = "Fred'ô"
                date = "2025-09-21"
                title = "Trail de Barcel à Castellane"
                url = "/2025/09/trail-de-barcel-a-castellane/"
                tags = ["Trail", "Competition", "Castellane"]
                +++
                
                Le site de l'organisation : 
                 - https://www.trailsdeprovence.fr/trail/rocn-trail-verdon/ 
                 - https://rocntrailverdon.fr/ 
                
                Trail de 22 km pour 1200 D+⛰️
                
                <!--more-->
                
                Le parcours :
                
                
                {{< embed "https://aventures.cyber-neurones.org/trail/view/@cyberneurones@aventures.cyber-neurones.org/5bc4cfeb64c9332" "900" "600">}}
                
                Quelques photos :
                
                {{< gallery match="images/*" sortOrder="desc" rowHeight="150" margins="5" thumbnailResizeOptions="600x600 q90 Lanczos" showExif=true previewType="blur" embedPreview=true loadJQuery=true >}}
                
                

                Et l’autre :

                ---
                _edit_last: "1"
                _thumbnail_id: "25492"
                activitypub_status: federated
                author: admin
                categories:
                  - trail
                classic-editor-remember: classic-editor
                cover:
                  alt: "20250921_113215"
                  image: /wp-content/uploads/2025/09/20250921-113215-scaled.jpg
                date: "2025-09-21T15:42:42+00:00"
                guid: https://www.cyber-neurones.org/?p=25487
                parent_post_id: null
                post_id: "25487"
                title: Trail de Barcel à Castellane
                url: /2025/09/trail-de-barcel-a-castellane/
                yarpp_meta:
                  yarpp_display_for_this_post: 1
                
                ---
                Le parcours :
                
                \[sgpx gpx="/wp-content/uploads/gpx/castellane-2025.gpx"\]
                
                Quelques photos :
                
                
                {{< gallery cols="1" >}}  
                {{< figure src="/wp-content/uploads/2025/09/20250921-090249-scaled.jpg" title="20250921\_090249" alt="20250921\_090249" >}}
                
                {{< figure src="/wp-content/uploads/2025/09/20250921-102021-scaled.jpg" title="20250921\_102021" alt="20250921\_102021" >}}
                
                {{< figure src="/wp-content/uploads/2025/09/20250921-102515-scaled.jpg" title="20250921\_102515" alt="20250921\_102515" >}}
                
                {{< figure src="/wp-content/uploads/2025/09/20250921-112524-scaled.jpg" title="20250921\_112524" alt="20250921\_112524" >}}
                
                {{< figure src="/wp-content/uploads/2025/09/20250921-113215-scaled.jpg" title="20250921\_113215" alt="20250921\_113215" >}}
                
                {{< figure src="/wp-content/uploads/2025/09/20250921-122833-scaled.jpg" title="20250921\_122833" alt="20250921\_122833" >}}  
                {{< /gallery >}} 
                
                1 réponse Dernière réponse
                0
                • fariasF Hors-ligne
                  fariasF Hors-ligne
                  farias
                  a écrit sur dernière édition par
                  #18

                  Je vais faire un test avec un nom de domaine :

                  image.png

                  1 réponse Dernière réponse
                  0
                  • fariasF Hors-ligne
                    fariasF Hors-ligne
                    farias
                    a écrit sur dernière édition par
                    #19

                    Ajout à apache2 :

                    # certbot certonly -d move.cyber-neurones.org
                    Saving debug log to /var/log/letsencrypt/letsencrypt.log
                    
                    How would you like to authenticate with the ACME CA?
                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                    1: Apache Web Server plugin (apache)
                    2: Spin up a temporary webserver (standalone)
                    3: Place files in webroot directory (webroot)
                    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                    Select the appropriate number [1-3] then [enter] (press 'c' to cancel): 1
                    Plugins selected: Authenticator apache, Installer None
                    Requesting a certificate for move.cyber-neurones.org
                    Performing the following challenges:
                    http-01 challenge for move.cyber-neurones.org
                    Waiting for verification...
                    Cleaning up challenges
                    
                    IMPORTANT NOTES:
                     - Congratulations! Your certificate and chain have been saved at:
                       /etc/letsencrypt/live/move.cyber-neurones.org/fullchain.pem
                       Your key file has been saved at:
                       /etc/letsencrypt/live/move.cyber-neurones.org/privkey.pem
                       Your certificate will expire on 2025-12-22. To obtain a new or
                       tweaked version of this certificate in the future, simply run
                       certbot again. To non-interactively renew *all* of your
                       certificates, run "certbot renew"
                     - If you like Certbot, please consider supporting our work by:
                    
                       Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
                       Donating to EFF:                    https://eff.org/donate-le
                    
                    1 réponse Dernière réponse
                    0
                    • fariasF Hors-ligne
                      fariasF Hors-ligne
                      farias
                      a écrit sur dernière édition par
                      #20

                      Pas encore dans les DNS : https://move.cyber-neurones.org

                      # ping move.cyber-neurones.org
                      PING move.cyber-neurones.org (195.144.11.124) 56(84) bytes of data.
                      64 bytes from 195-144-11-124.phpnet.fr (195.144.11.124): icmp_seq=1 ttl=51 time=16.9 ms
                      64 bytes from 195-144-11-124.phpnet.fr (195.144.11.124): icmp_seq=2 ttl=51 time=17.5 ms
                      
                      
                      1 réponse Dernière réponse
                      0
                      • fariasF Hors-ligne
                        fariasF Hors-ligne
                        farias
                        a écrit sur dernière édition par
                        #21

                        J’ai pas dans le DNS mais certains oui …

                        # tail -f /var/log/apache2/access.move-ssl.log
                        88.99.233.240 - - [23/Sep/2025:21:56:43 +0200] "GET / HTTP/1.1" 200 13533 "-" "Mastodon/4.4.4 (http.rb/5.3.1; +https://pouet.chapril.org/) Bot"
                        188.245.170.3 - - [23/Sep/2025:21:57:04 +0200] "GET / HTTP/1.1" 200 13533 "-" "Mastodon/4.5.0-nightly.2025-09-23 (http.rb/5.3.1; +https://mastodon.social/) Bot"
                        
                        1 réponse Dernière réponse
                        0
                        • fariasF Hors-ligne
                          fariasF Hors-ligne
                          farias
                          a écrit sur dernière édition par
                          #22

                          J’avais un problème, pas la bonne baseURL :

                          # hugo server --bind 0.0.0.0 --baseURL https://move.cyber-neurones.org -t github-style,hugo-shortcode-gallery --disableFastRender --appendPort=false -D --disableFastRender --disableLiveReload
                          
                          1 réponse Dernière réponse
                          0
                          • fariasF farias a déplacé ce sujet de General Discussion sur
                          • fariasF Hors-ligne
                            fariasF Hors-ligne
                            farias
                            a écrit sur dernière édition par
                            #23

                            Echec dans le test de timeline :

                            # hugo server --bind 0.0.0.0 --baseURL https://move.cyber-neurones.org -t github-style,hugo-shortcode-gallery,hugo-shortcode-timeline --disableFastRender --appendPort=false -D --disableFastRender --disableLiveReload
                            WARN  Module "hugo-shortcode-gallery" is not compatible with this Hugo version: Min 0.121.2 extended; run "hugo mod graph" for more information.
                            Watching for changes in /root/hugo/move.cyber-neurones.org/{archetypes,assets,content,data,i18n,layouts,static,themes}
                            Watching for config changes in /root/hugo/move.cyber-neurones.org/hugo.toml, /root/hugo/move.cyber-neurones.org/themes/github-style/config.toml, /root/hugo/move.cyber-neurones.org/themes/hugo-shortcode-gallery/config.toml, /root/hugo/move.cyber-neurones.org/themes/hugo-shortcode-timeline/config.toml
                            Start building sites … 
                            hugo v0.150.0-3f5473b7d4e7377e807290c3acc89feeef1aaa71 linux/amd64 BuildDate=2025-09-08T13:01:12Z VendorInfo=gohugoio
                            
                            ERROR TOCSS: failed to transform "/shortcode-timeline/timeline-mobile.sass" (text/x-sass). Check your Hugo installation; you need the extended version to build SCSS/SASS with transpiler set to 'libsass'.: this feature is not available in your current Hugo version, see https://goo.gl/YMrWcn for more information
                            Built in 197 ms
                            Error: error building site: TOCSS: failed to transform "/shortcode-timeline/timeline.sass" (text/x-sass). Check your Hugo installation; you need the extended version to build SCSS/SASS with transpiler set to 'libsass'.: this feature is not available in your current Hugo version, see https://goo.gl/YMrWcn for more information
                            
                            
                            1 réponse Dernière réponse
                            0

                            Bonjour ! Vous semblez intéressé par cette conversation, mais vous n’avez pas encore de compte.

                            Marre de refaire défiler les mêmes messages ? Créez un compte pour retrouver votre position, recevoir des notifications des nouvelles réponses, sauvegarder vos favoris et voter pour les messages que vous appréciez.

                            Grâce à votre participation, ce message peut devenir encore meilleur 💗

                            S'inscrire Se connecter
                            Répondre
                            • Répondre à l'aide d'un nouveau sujet
                            Se connecter pour répondre
                            • Du plus ancien au plus récent
                            • Du plus récent au plus ancien
                            • Les plus votés


                            • Se connecter

                            • Vous n'avez pas de compte ? S'inscrire

                            • Connectez-vous ou inscrivez-vous pour faire une recherche.
                            Powered by NodeBB Contributors
                            • Premier message
                              Dernier message
                            0
                            • Catégories
                            • Récent
                            • Mots-clés
                            • Populaire
                            • Web
                            • Utilisateurs
                            • Groupes