Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102620092
D37144.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D37144.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D37144: Fix download link for non-English languages
Attached
Detach File
Event Timeline
Log In to Comment