redstrate.com/themes/red/layouts/partials/footer.html

53 lines
2.1 KiB
HTML

<div id="f-badges">
{{ range $.Site.Menus.badges }}
{{ $badgeScope := . }}
{{ with resources.Get .URL }}
<img style="image-rendering: pixelated;" width="{{ .Width }}" height="{{ .Height }}" src="{{ .RelPermalink }}" alt="{{ $badgeScope.Name }}">
{{ end }}
{{ end }}
<br/>
{{ range $.Site.Menus.otherbadges }}
{{ $badgeScope := . }}
{{ $url := .URL }}
{{ with resources.Get .Params.img }}
<a href="{{ $url }}"><img style="image-rendering: pixelated;" width="{{ .Width }}" height="{{ .Height }}" src="{{ .RelPermalink }}" alt="{{ $badgeScope.Name }}"></a>
{{ end }}
{{ end }}
{{ with .Site.Params.geekring_site_id }}
<map name="badge-geekring">
<area data-proofer-ignore shape="rect" coords="4,3,13,28" href="http://geekring.net/site/{{ . }}/previous" alt="Previous">
<area data-proofer-ignore shape="rect" coords="13,3,22,28" href="http://geekring.net/site/{{ . }}/random" alt="Random">
<area data-proofer-ignore shape="rect" coords="76,3,84,28" href="http://geekring.net/site/{{ . }}/next" alt="Next">
<area data-proofer-ignore shape="rect" coords="23,3,63,28" href="https://geekring.net/" alt="Geekring">
</map>
{{ with resources.Get "geek_2.gif" }}
<img width="88" height="31" usemap="#badge-geekring" src="{{ .RelPermalink }}" alt="The Geekring">
{{ end }}
{{ end }}
</div>
{{ if .Site.Params.enable_koring }}
<div id='koring'>
<script type="text/javascript" src="https://ottr.uk/koring/onionring-variables.js"></script>
<script type="text/javascript" src="https://ottr.uk/koring/onionring-widget.js"></script>
</div>
{{ end }}
<div class="f-list">
<ul class="nice-list">
{{ range $.Site.Menus.footer }}
<li>
{{ $url := .URL }}
{{ if not (strings.Contains $url "https") }}
{{ $url = printf "%s%s" $.Site.Home.Permalink .URL }}
{{ end }}
<a href="{{ $url }}">{{ .Name }}</a>
</li>
{{ end }}
</ul>
</div>