Page MenuHomeFreeBSD

D37144.diff
No OneTemporary

D37144.diff

diff --git a/documentation/themes/beastie/layouts/index.html b/documentation/themes/beastie/layouts/index.html
--- a/documentation/themes/beastie/layouts/index.html
+++ b/documentation/themes/beastie/layouts/index.html
@@ -1,9 +1,11 @@
{{ define "main" }}
- {{ $language := "" }}
- {{ $currentLang := $.Site.Language.Lang }}
+ {{ $downloadurl := "" }}
+ {{ $language := $.Site.Language.Lang }}
- {{ if ne $currentLang "en" }}
- {{ $language = $currentLang }}
+ {{ if ne $language "en" }}
+ {{ $downloadurl = printf "%s/%s/%s/" $.Site.Params.websiteURL $language "where" }}
+ {{ else }}
+ {{ $downloadurl = printf "%s/%s/" $.Site.Params.websiteURL "where" }}
{{ end }}
<main class="main-wrapper">
{{ partial "global-search.html" . }}
@@ -15,7 +17,7 @@
</a>
</div>
<div class="card">
- <a href={{ printf "%s%s/%s" $.Site.Params.websiteURL $language "where" }}>
+ <a href={{ $downloadurl }}>
<h5>{{ i18n "download" }}</h5>
<p>{{ i18n "download-freebsd" }}</p>
</a>

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 15, 10:06 PM (20 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14648671
Default Alt Text
D37144.diff (1 KB)

Event Timeline