Commit 47d1c778 authored by Tristram Gräbener's avatar Tristram Gräbener

Use relative paths for urls

This will allow to have multiple instances of the website generated
by gitlab-ci during the reviews
parent 7847906a
baseurl = "https://www.codeursenliberté.fr/"
title = "Codeurs en Liberté"
languageCode = "fr-fr"
theme = "cel"
baseurl = "https://www.codeursenliberté.fr/"
title = "Codeurs en Liberté"
languageCode = "fr-fr"
theme = "cel"
SectionPagesMenu = "main"
relativeURLs = true
{{ partial "header.html" . }}
{{ range .Data.Pages }}
<h2> <a href="{{ .Permalink }}">{{ .Title }}</a> </h2>
<h2> <a href="{{ .RelPermalink }}">{{ .Title }}</a> </h2>
<div class="meta">Publié le {{ .Date.Format "02/01/2006" }}</div>
{{ .Summary }}
{{ end }}
......
......@@ -22,13 +22,13 @@
{{ range .Site.Pages }}
{{ if eq .Type "à propos" }}
{{ if ne .Title "Accueil" }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{ end }}
{{ end }}
{{ end }}
{{ range .Site.Menus.main }}
{{ if ne .Name "À propos" }}
<li><a href="{{.URL}}">{{ .Name }}</a></li>
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
{{ end }}
{{ end }}
</ul>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment