feat(template): add navigation links

This commit is contained in:
valvin 2022-10-11 22:19:25 +02:00
parent 03afff05cc
commit e5ff1d8f2a
9 changed files with 69 additions and 25 deletions

View File

@ -21,12 +21,9 @@ title: La capsule de Vavlin
```
Ma toute première capsule qui me permet de découvrir Gemini
Ma toute première capsule qui me permet de découvrir Gemini. Capsule également disponible sur http.
=> /gemlog Mon gemlog
=> /contact Me contacter
=> /atom.xml Mon Flux atom (gemlog)
=> /atom.gmi Mon Flux gmi (gemlog)
INFO: 18/09/22 - suite à la migration kiln / agate, j'ai de nouveaux certificats pour cette capsule.

View File

@ -4,3 +4,6 @@
{{ range .Pages }}=> {{ .Path }} {{ if not .Date.IsZero -}}
{{ .Date.Format "2006-01-02" }} {{end}}{{ .Title }}
{{ end -}}
=> /contact Une question, une remarque, contactez-moi :)
=> / retour à la page principale

View File

@ -6,13 +6,20 @@
</head>
<body>
<h1>{{ .Title }}</h1>
{{ if .Content }}
{{ .Content | safeHTML }}{{ end }}
<ul>
{{ range .Pages }}<li><a href="{{ .Path }}">{{ if not .Date.IsZero -}}
{{ .Date.Format "2006-01-02" }} {{end}}{{ .Title }}</a></li>
{{ end -}}
</ul>
{{ if .Content }}
{{ .Content | safeHTML }}{{ end }}
<ul>
{{ range .Pages }}<li><a href="{{ .Path }}">{{ if not .Date.IsZero -}}
{{ .Date.Format "2006-01-02" }} {{end}}{{ .Title }}</a></li>
{{ end -}}
</ul>
<p>
<a href="/contact">Une question, une remarque, contactez-moi :)</a>
</p><p>
<a href="/">Retour à la page principale</a>
</p>
<p>Le contenu de cette page est disponible sous licence CC-BY-SA</p>
</body>
</html>

View File

@ -3,3 +3,6 @@
Posted on {{ .Date.Format "2006-01-02" }}{{ end }}
{{ .Content }}
=> /contact Une question, une remarque, contactez-moi :)
=> / retour à la page principale

View File

@ -7,8 +7,16 @@
<body>
<h1>{{ .Title }}</h1>
{{ if .Content }}
{{ .Content | safeHTML }}{{ end }}
{{ if .Content }}
{{ .Content | safeHTML }}{{ end }}
<p>
<a href="/contact">Une question, une remarque, contactez-moi :)</a>
</p>
<p>
<a href="/">Retour à la page principale</a>
</p>
<p>Le contenu de cette page est disponible sous licence CC-BY-SA</p>
</body>
</html>

View File

@ -2,5 +2,9 @@
{{ if .Content }}
{{ .Content }}{{ end }}
{{ range .Pages }}=> {{ .Path }} {{ if not .Date.IsZero -}}
{{ .Date.Format "2006-01-02" }} {{end}}{{ .Title }}
{{ .Date.Format "2006-01-02" }} - {{end}}{{ .Title }}
{{ end -}}
=> /contact Une question, une remarque, contactez-moi :)
=> / retour à la page principale

View File

@ -6,13 +6,21 @@
</head>
<body>
<h1>{{ .Title }}</h1>
{{ if .Content }}
{{ .Content }}{{ end }}
<ul>
{{ range .Pages }}<li><a href="{{ .Path }}">{{ if not .Date.IsZero -}}
{{ .Date.Format "2006-01-02" }} {{end}}{{ .Title }}</a></li>
{{ end -}}
</ul>
{{ if .Content }}
{{ .Content }}{{ end }}
<ul>
{{ range .Pages }}<li><a href="{{ .Path }}">{{ if not .Date.IsZero -}}
{{ .Date.Format "2006-01-02" }} {{end}}{{ .Title }}</a></li>
{{ end -}}
</ul>
<p>
<a href="/contact">Une question, une remarque, contactez-moi :)</a>
</p><p>
<a href="/">Retour à la page principale</a>
</p>
<p>Le contenu de cette page est disponible sous licence CC-BY-SA</p>
</body>
</html>

View File

@ -6,4 +6,8 @@ Posted on {{ .Date.Format "2006-01-02" }}{{ end }}
=> /contact Une question, une remarque, contactez-moi :)
Le contenu de cette page est disponible en CC-BY-SA
=> /gemlog retour au gemlog
=> / retour à la page principale
Le contenu de cette page est disponible sous licence CC-BY-SA

View File

@ -7,8 +7,18 @@
<body>
<h1>{{ .Title }}</h1>
{{ if .Content }}
{{ .Content | safeHTML }}{{ end }}
{{ if .Content }}
{{ .Content | safeHTML }}{{ end }}
<p>
<a href="/contact">Une question, une remarque, contactez-moi :)</a>
</p><p>
<a href="/gemlog">Retour au gemlog</a>
</p><p>
<a href="/">Retour à la page principale</a>
</p>
<p>Le contenu de cette page est disponible sous licence CC-BY-SA</p>
</body>
</html>