7
0
Fork 0

Tabel-opmaak

This commit is contained in:
Michael Boelen 2023-05-15 13:18:38 +02:00
parent d8fb8e565a
commit 55243e0423
2 changed files with 221 additions and 170 deletions

View file

@ -1,28 +1,33 @@
{{ define "main" }} {{ define "main" }}
<div>{{ .Content }}</div>
<h2>Laatste wijzigingen</h2> <h2>Laatste wijzigingen</h2>
{{ $byLastMod := .Site.RegularPages.ByLastmod.Reverse }} {{ $byLastMod := .Site.RegularPages.ByLastmod.Reverse }}
<div class="table-wrapper">
<table> <table class="fl-table">
<thead> <thead>
<tr> <tr>
<th>Datum</th> <th>Datum</th>
<th>Titel</th> <th>Titel</th>
{{ if .Site.IsServer }}
<th>Taal</th> <th>Taal</th>
<th>Bestandsnaam</th> <th>Bestandsnaam</th>
{{ end }}
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{{ range $byLastMod }} {{ range first 50 $byLastMod }}
<tr> <tr>
<td>{{ .Lastmod | dateFormat "2006-01-02 15:04:05" }}</td> <td>{{ .Lastmod | dateFormat "2006-01-02 15:04:05" }}</td>
<td>{{ .Title }}</td> <td><a href="{{ .RelPermalink }}">{{ .Title }}</a></td>
{{ if .Site.IsServer }}
<td>{{ with .File }}{{ .Lang }}{{ end }}</td> <td>{{ with .File }}{{ .Lang }}{{ end }}</td>
<td>{{ with .File }}{{ .Path }}{{ end }}</td> <td>{{ with .File }}{{ .Path }}{{ end }}</td>
{{ end }}
</tr> </tr>
{{ end }} {{ end }}
</tbody> </tbody>
</table> </table>
</div>
<div>{{ .Content }}</div>
{{ end }} {{ end }}

View file

@ -1,10 +1,7 @@
{{ define "main" }} {{ define "main" }}
<div class="table-wrapper">
<table summary="Statistieken van de website" style="border: 1px solid gray; width:80%;"> <table class="fl-table" summary="Statistieken van de website">
<caption>
Alle statistieken van deze website. More is more?
</caption>
<thead> <thead>
<tr> <tr>
<th id="key" scope="col"> <th id="key" scope="col">
@ -18,7 +15,7 @@
<tbody> <tbody>
<tr> <tr>
<th id="website-basics" class="span" colspan="2" scope="colgroup"> <th id="website-basics" colspan="2" scope="colgroup">
Website basis Website basis
</th> </th>
</tr> </tr>
@ -39,7 +36,7 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<th id="website-content" class="span" colspan="2" scope="colgroup"> <th id="website-content" colspan="2" scope="colgroup">
Content en updates Content en updates
</th> </th>
</tr> </tr>
@ -115,38 +112,87 @@
{{ .IsTranslated }} {{ .IsTranslated }}
</td> </td>
</tr> </tr>
<tr>
<th id="website-git" colspan="2" scope="colgroup">
Git-ondersteuning
</th>
</tr>
<tr>
<td headers="website-git key">
GitInfo geactiveerd?
</td>
<td headers="website-git value">
{{ if .GitInfo }}Ja{{ else }}Nee{{ end }}
</td>
</tr>
{{ if .GitInfo }}
<tr>
<td headers="website-git key">
GitInfo: AuthorDate
</td>
<td headers="website-git value">
{{ .GitInfo.AuthorDate }}
</td>
</tr>
{{ end }}
{{ if .GitInfo }}
<tr>
<td headers="website-git key">
GitInfo-data
</td>
<td headers="website-git value">
{{ .GitInfo }}
</td>
</tr>
{{ end }}
<tr>
<th id="website-language" colspan="2" scope="colgroup">
Taalondersteuning
</th>
</tr>
<tr>
<td headers="website-language key">
Ondersteunt deze website meerdere talen?
</td>
<td headers="website-language value">
{{ .Site.IsMultiLingual }}
</td>
</tr>
<tr>
<td headers="website-language key">
Geconfigureerde talen
</td>
<td headers="website-language value">
{{ .Site.Languages }}
</td>
</tr>
<tr>
<td headers="website-language key">
Taal
</td>
<td headers="website-language value">
{{ .Site.Language }}
</td>
</tr>
<tr>
<td headers="website-language key">
Taalcode
</td>
<td headers="website-language value">
{{ .Site.LanguageCode }}
</td>
</tr>
<tr>
<td headers="website-language key">
Gekozen taal
</td>
<td headers="website-language value">
{{ .Site.Language.Lang }} (naam: {{ .Site.Language.LanguageName }}, gewicht: {{ .Site.Language.Weight }}
</td>
</tr>
</tbody> </tbody>
</table> </table>
</div>
<h2>Git</h2>
{{ if .GitInfo }}
<pre>{{ .GitInfo | jsonify }}</pre>
{{ end }}
<h2>Datum en tijd</h2>
{{ if .GitInfo }}
Git datum van laatste wijziging: {{ .GitInfo.AuthorDate }}
{{ else }}
Geen git-informatie beschikbaar.
{{ end }}
<h2>Taalondersteuning</h2>
Ondersteunt deze website meerdere talen? {{ .Site.IsMultiLingual }}
Welke talen? {{ .Site.Languages }}
Taal: {{ .Site.Language }}
Taalcode: {{ .Site.LanguageCode }}
Gekozen taal: {{ .Site.Language.Lang }} (naam: {{ .Site.Language.LanguageName }}, gewicht: {{ .Site.Language.Weight }}
<div>{{ .Content }}</div> <div>{{ .Content }}</div>
{{ end }} {{ end }}