.Site.IsServer zal deprecated zijn in toekomst, alvast vervangen
This commit is contained in:
parent
9b15c91e4a
commit
ab14e66b34
3 changed files with 5 additions and 5 deletions
|
@ -10,7 +10,7 @@
|
|||
<tr>
|
||||
<th>Datum</th>
|
||||
<th>Titel</th>
|
||||
{{ if .Site.IsServer }}
|
||||
{{ if hugo.IsServer }}
|
||||
<th>Taal</th>
|
||||
<th>Bestandsnaam</th>
|
||||
{{ end }}
|
||||
|
@ -21,7 +21,7 @@
|
|||
<tr>
|
||||
<td><time datetime="{{ .Lastmod | dateFormat "2006-01-02T15:04:05" }}">{{ .Lastmod | dateFormat "2006-01-02 15:04:05" }}</time></td>
|
||||
<td><a href="{{ .RelPermalink }}">{{ .Title | default .Site.Params.textNoTitle }}</a></td>
|
||||
{{ if .Site.IsServer }}
|
||||
{{ if hugo.IsServer }}
|
||||
<td>{{ with .File }}{{ .Lang }}{{ end }}</td>
|
||||
<td>{{ with .File }}{{ .Path }}{{ end }}</td>
|
||||
{{ end }}
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<tr>
|
||||
<th>Datum</th>
|
||||
<th>Titel</th>
|
||||
{{ if .Site.IsServer }}
|
||||
{{ if hugo.IsServer }}
|
||||
<th>Taal</th>
|
||||
<th>Bestandsnaam</th>
|
||||
{{ end }}
|
||||
|
@ -29,7 +29,7 @@
|
|||
<tr>
|
||||
<td><time datetime="{{ .Lastmod | dateFormat "2006-01-02T15:04:05" }}">{{ .Lastmod | dateFormat "2006-01-02 15:04:05" }}</a></td>
|
||||
<td><a href="{{ .RelPermalink }}">{{ .Title }}</a></td>
|
||||
{{ if .Site.IsServer }}
|
||||
{{ if hugo.IsServer }}
|
||||
<td>{{ with .File }}{{ .Lang }}{{ end }}</td>
|
||||
<td>{{ with .File }}{{ .Path }}{{ end }}</td>
|
||||
{{ end }}
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
</div>
|
||||
<small>Voor meer informatie {{ with .Site.GetPage "/website" }}<a href="{{ .Permalink }}">{{ .Title | lower }}</a>{{ end }}, zie de {{ with .Site.GetPage "/website/sitemap" }}<a href="{{ .Permalink }}">{{ .Title | lower }}</a>{{ end }}, {{ with .Site.GetPage "/website/laatste-wijzigingen" }}<a href="{{ .Permalink }}">{{ .Title | lower }}</a>{{ end }} en de {{ with .Site.GetPage "/website/stats-for-nerds" }}<a href="{{ .Permalink }}">{{ .Title }}</a>{{ end }}</small>
|
||||
|
||||
{{ if .Site.IsServer }}
|
||||
{{ if hugo.IsServer }}
|
||||
<div style="background-color: yellow; border: 2px solid black; padding: 10px; margin-top: 20px;">
|
||||
<strong>Ingebouwde webserver van Hugo gedetecteerd. Deze melding zal niet in productie worden getoond en is voor ontwikkeling.</strong><br>
|
||||
<ul>
|
||||
|
|
Loading…
Reference in a new issue