Posts

Software, Travel Enthusiast

Introduction aux Modèles (Hu)go

Hugo utilise l’excellente librairie go html/template pour son moteur de modèles. c’est un moteur extrêmement léger qui offre un très petit nombre de fonctions logiques. À notre expérience, c’est juste ce qu’il faut pour créer un bon site web statique. Si vous avez déjà utilisé d’autre moteurs de modèles pour différents langages ou frameworks, vous allez retrouver beaucoup de similitudes avec les modèles go. Ce document est une introduction sur l’utilisation de Go templates.

Study the impact of trailing slash in nginx/ingress configuration Imagine a hello-world service that provides a static website with / returns the homepage, and the homepage references to different children pages by using href=/hello-world.html. 1 Hello World. Reference to <a href="/hello-world.html">an URL</a> This page is stored in an nginx container. The basic micro-service should return results for the following requests: https://www.sample-page.com/ https://www.sample-page.com/index.html The ingress configuration that distributes requests to the microservice via the path /hello-world: