Tabel-opmaak
This commit is contained in:
parent
d8fb8e565a
commit
55243e0423
|
@ -1,28 +1,33 @@
|
|||
{{ define "main" }}
|
||||
|
||||
<div>{{ .Content }}</div>
|
||||
|
||||
<h2>Laatste wijzigingen</h2>
|
||||
{{ $byLastMod := .Site.RegularPages.ByLastmod.Reverse }}
|
||||
|
||||
<table>
|
||||
<div class="table-wrapper">
|
||||
<table class="fl-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Datum</th>
|
||||
<th>Titel</th>
|
||||
{{ if .Site.IsServer }}
|
||||
<th>Taal</th>
|
||||
<th>Bestandsnaam</th>
|
||||
{{ end }}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{ range $byLastMod }}
|
||||
{{ range first 50 $byLastMod }}
|
||||
<tr>
|
||||
<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 }}{{ .Path }}{{ end }}</td>
|
||||
{{ end }}
|
||||
</tr>
|
||||
{{ end }}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div>{{ .Content }}</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
{{ define "main" }}
|
||||
|
||||
|
||||
<table summary="Statistieken van de website" style="border: 1px solid gray; width:80%;">
|
||||
<caption>
|
||||
Alle statistieken van deze website. More is more?
|
||||
</caption>
|
||||
<div class="table-wrapper">
|
||||
<table class="fl-table" summary="Statistieken van de website">
|
||||
<thead>
|
||||
<tr>
|
||||
<th id="key" scope="col">
|
||||
|
@ -18,7 +15,7 @@
|
|||
|
||||
<tbody>
|
||||
<tr>
|
||||
<th id="website-basics" class="span" colspan="2" scope="colgroup">
|
||||
<th id="website-basics" colspan="2" scope="colgroup">
|
||||
Website basis
|
||||
</th>
|
||||
</tr>
|
||||
|
@ -39,7 +36,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th id="website-content" class="span" colspan="2" scope="colgroup">
|
||||
<th id="website-content" colspan="2" scope="colgroup">
|
||||
Content en updates
|
||||
</th>
|
||||
</tr>
|
||||
|
@ -115,38 +112,87 @@
|
|||
{{ .IsTranslated }}
|
||||
</td>
|
||||
</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>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<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>
|
||||
|
||||
<div>{{ .Content }}</div>
|
||||
{{ end }}
|
||||
|
|
Reference in a new issue