html5-infobeamer-dhcp/layouts/index.html

54 lines
1.5 KiB
HTML
Raw Permalink Normal View History

2024-10-30 21:48:20 +01:00
{{ define "main" }}
<h1 class="header">:HugInfo:</h1>
<div class="content">
<h2>Static Information Endpoints:</h2>
<ul>
{{ range .Pages }}
{{ if not .Params.redirect }}
<li class="infopointitem">
<span class="fa fa-hand-o-right bullet"></span><b>{{ .Title }}:</b><a class="infopoint" href="{{ .RelPermalink }}">{{ .RelPermalink }}</a>
</li>
{{ end }}
{{ end }}
</ul>
<h2>Redirecting Information Endpoints:</h2>
<ul>
{{ range .Pages }}
{{ if .Params.redirect }}
<li class="infopointitem">
<span class="fa fa-hand-o-right bullet"></span>
<span>
<b>{{ .Title }}:</b><a class="infopoint" href="{{ .RelPermalink }}">{{ .RelPermalink }}</a>
{{ with .Params.redirect }}
<div class="redirect">
<div>Configured redirect:</div>
<ul>
<li>Target: <a class="infopoint" href="{{ .targetURL }}">{{ .targetURL }}</a></li>
<li>Delay: {{ .delay }}s</li>
</ul>
</div>
{{ end }}
</span>
</li>
{{ end }}
{{ end }}
</ul>
</div>
{{ end }}
{{ define "cssincludes" }}
{{ $options := dict "targetPath" "_index.css" "outputStyle" "compressed" "enableSourceMap" false -}}
{{ $style := resources.Get "/css/custom/core/_index.scss" | resources.ToCSS $options | resources.Minify | resources.Fingerprint -}}
<link rel="stylesheet" href="{{ $style.Permalink }}" />
{{ end }}
{{ define "jsworkerincludes" }}{{ end }}
{{ define "jsdependencyincludes" }}{{ end }}
{{ define "jsincludes" }}{{ end }}