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>
<th>Taal</th> {{ if .Site.IsServer }}
<th>Bestandsnaam</th> <th>Taal</th>
</tr> <th>Bestandsnaam</th>
</thead> {{ end }}
<tbody> </tr>
{{ range $byLastMod }} </thead>
<tr> <tbody>
<td>{{ .Lastmod | dateFormat "2006-01-02 15:04:05" }}</td> {{ range first 50 $byLastMod }}
<td>{{ .Title }}</td> <tr>
<td>{{ with .File }}{{ .Lang }}{{ end }}</td> <td>{{ .Lastmod | dateFormat "2006-01-02 15:04:05" }}</td>
<td>{{ with .File }}{{ .Path }}{{ end }}</td> <td><a href="{{ .RelPermalink }}">{{ .Title }}</a></td>
</tr> {{ if .Site.IsServer }}
{{ end }} <td>{{ with .File }}{{ .Lang }}{{ end }}</td>
</tbody> <td>{{ with .File }}{{ .Path }}{{ end }}</td>
</table> {{ end }}
</tr>
<div>{{ .Content }}</div> {{ end }}
</tbody>
</table>
</div>
{{ end }} {{ end }}

View file

@ -1,152 +1,198 @@
{{ define "main" }} {{ define "main" }}
<div class="table-wrapper">
<table class="fl-table" summary="Statistieken van de website">
<thead>
<tr>
<th id="key" scope="col">
Kenmerk
</th>
<th id="value" scope="col">
Waarde
</th>
</tr>
</thead>
<table summary="Statistieken van de website" style="border: 1px solid gray; width:80%;"> <tbody>
<caption> <tr>
Alle statistieken van deze website. More is more? <th id="website-basics" colspan="2" scope="colgroup">
</caption> Website basis
<thead> </th>
<tr> </tr>
<th id="key" scope="col"> <tr>
Kenmerk <td headers="website-basics key">
</th> Titel van website
<th id="value" scope="col"> </td>
Waarde <td headers="website-basics value">
</th> {{ .Site.Title }}
</tr> </td>
</thead> </tr>
<tr>
<tbody> <td headers="website-basics key">
<tr> Hugo-versie
<th id="website-basics" class="span" colspan="2" scope="colgroup"> </td>
Website basis <td headers="website-basics value">
</th> {{ hugo.Version }}
</tr> </td>
<tr> </tr>
<td headers="website-basics key"> <tr>
Titel van website <th id="website-content" colspan="2" scope="colgroup">
</td>
<td headers="website-basics value">
{{ .Site.Title }}
</td>
</tr>
<tr>
<td headers="website-basics key">
Hugo-versie
</td>
<td headers="website-basics value">
{{ hugo.Version }}
</td>
</tr>
<tr>
<th id="website-content" class="span" colspan="2" scope="colgroup">
Content en updates Content en updates
</th> </th>
</tr> </tr>
<tr> <tr>
<td headers="website-content key"> <td headers="website-content key">
Moment van bouwen Moment van bouwen
</td> </td>
<td headers="website-content value"> <td headers="website-content value">
{{ now }} {{ now }}
</td> </td>
</tr> </tr>
<tr> <tr>
<td headers="website-content key"> <td headers="website-content key">
Laatste wijziging op de website (Git) Laatste wijziging op de website (Git)
</td> </td>
<td headers="website-content value"> <td headers="website-content value">
{{ .Site.LastChange }} {{ .Site.LastChange }}
</td> </td>
</tr> </tr>
<tr> <tr>
<td headers="website-content key"> <td headers="website-content key">
Aantal pagina's binnen website Aantal pagina's binnen website
</td> </td>
<td headers="website-content value"> <td headers="website-content value">
{{ .Site.Pages }} {{ .Site.Pages }}
</td> </td>
</tr> </tr>
<tr> <tr>
<td headers="website-content key"> <td headers="website-content key">
Aantal secties Aantal secties
</td> </td>
<td headers="website-content value"> <td headers="website-content value">
{{ .Site.Sections }} {{ .Site.Sections }}
</td> </td>
</tr> </tr>
<tr> <tr>
<td headers="website-content key"> <td headers="website-content key">
Datum dat deze pagina is aangemaakt Datum dat deze pagina is aangemaakt
</td> </td>
<td headers="website-content value"> <td headers="website-content value">
{{ .Date }} {{ .Date }}
</td> </td>
</tr> </tr>
<tr> <tr>
<td headers="website-content key"> <td headers="website-content key">
Datum waarop deze pagina verloopt Datum waarop deze pagina verloopt
</td> </td>
<td headers="website-content value"> <td headers="website-content value">
{{ .ExpiryDate }} {{ .ExpiryDate }}
</td> </td>
</tr> </tr>
<tr> <tr>
<td headers="website-content key"> <td headers="website-content key">
Datum waarop deze pagina is gepubliceerd Datum waarop deze pagina is gepubliceerd
</td> </td>
<td headers="website-content value"> <td headers="website-content value">
{{ .PublishDate }} {{ .PublishDate }}
</td> </td>
</tr> </tr>
<tr> <tr>
<td headers="website-content key"> <td headers="website-content key">
Datum dat deze pagina voor het laatst is gewijzigd{{ if .GitInfo }} (data komt uit Git){{ end }} Datum dat deze pagina voor het laatst is gewijzigd{{ if .GitInfo }} (data komt uit Git){{ end }}
</td> </td>
<td headers="website-content value"> <td headers="website-content value">
{{ .Lastmod }} {{ .Lastmod }}
</td> </td>
</tr> </tr>
<tr> <tr>
<td headers="website-content key"> <td headers="website-content key">
Is deze pagina vertaald? Is deze pagina vertaald?
</td> </td>
<td headers="website-content value"> <td headers="website-content value">
{{ .IsTranslated }} {{ .IsTranslated }}
</td> </td>
</tr> </tr>
</tbody> <tr>
</table> <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>
</table>
</div>
<div>{{ .Content }}</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>
{{ end }} {{ end }}