aboutsummaryrefslogtreecommitdiff
path: root/website/themes
diff options
context:
space:
mode:
Diffstat (limited to 'website/themes')
-rwxr-xr-xwebsite/themes/beastie/layouts/index.html17
1 files changed, 12 insertions, 5 deletions
diff --git a/website/themes/beastie/layouts/index.html b/website/themes/beastie/layouts/index.html
index a9a12d6124..9b5d0ecefd 100755
--- a/website/themes/beastie/layouts/index.html
+++ b/website/themes/beastie/layouts/index.html
@@ -131,6 +131,13 @@
</div>
</div>
</div>
+ {{ $language := "" }}
+ {{ $currentLang := $.Site.Language.Lang }}
+ {{ $siteBaseUrl := absLangURL ($.Site.BaseURL) }}
+
+ {{ if ne $currentLang "en" }}
+ {{ $language = $currentLang }}
+ {{ end }}
<div id="frontnemscontainer">
<div id="frontnews">
<div id="frontnewscontent" class="txtnewsevent">
@@ -140,7 +147,7 @@
<div>
<ul class="newseventslist">
<li class="first-child">
- <a href="{{ absLangURL ($.Site.BaseURL) }}news/newsflash/" title={{ i18n "moreNews" }}>{{ i18n "moreNews" }}</a>
+ <a href={{ printf "%s%s/%s" $siteBaseUrl $language "news/newsflash/" }} title={{ i18n "moreNews" }}>{{ i18n "moreNews" }}</a>
</li>
<li class="last-child">
<a href="{{ absLangURL ($.Site.BaseURL) }}news/feed.xml" title={{ i18n "rssNews" }}>
@@ -160,7 +167,7 @@
<h2>{{ i18n "upcomingEvents" }}</h2>
<div class="newseventswrap">
{{ partial "events.html" . }}
- <a href="{{ absLangURL ($.Site.BaseURL) }}events/" title={{ i18n "moreEvents" }}>{{ i18n "moreEvents" }}</a>
+ <a href={{ printf "%s%s/%s" $siteBaseUrl $language "events/" }} title={{ i18n "moreEvents" }}>{{ i18n "moreEvents" }}</a>
</div>
</div>
</div>
@@ -172,7 +179,7 @@
<h2>{{ i18n "press" }}</h2>
<div class="newseventswrap">
{{ partial "press.html" . }}
- <a href="{{ absLangURL ($.Site.BaseURL) }}press/" title={{ i18n "moreMedia" }}>{{ i18n "moreMedia" }}</a>
+ <a href={{ printf "%s%s/%s" $siteBaseUrl $language "press/" }} title={{ i18n "moreMedia" }}>{{ i18n "moreMedia" }}</a>
</div>
</div>
</div>
@@ -187,7 +194,7 @@
<div>
<ul class="newseventslist">
<li class="first-child">
- <a href="{{ absLangURL ($.Site.BaseURL) }}security/advisories/" title={{ i18n "moreErrata" }}>{{ i18n "more" }}</a>
+ <a href={{ printf "%s%s/%s" $siteBaseUrl $language "security/advisories/" }} title={{ i18n "moreErrata" }}>{{ i18n "more" }}</a>
</li>
<li class="last-child">
<a href="{{ absLangURL ($.Site.BaseURL) }}security/feed.xml" title={{ i18n "rssSecurity" }}>
@@ -204,7 +211,7 @@
<div>
<ul class="newseventslist">
<li class="first-child">
- <a href="{{ absLangURL ($.Site.BaseURL) }}security/notices/" title={{ i18n "moreErrata" }}>{{ i18n "more" }}</a>
+ <a href={{ printf "%s%s/%s" $siteBaseUrl $language "security/notices/" }} title={{ i18n "moreErrata" }}>{{ i18n "more" }}</a>
</li>
<li class="last-child">
<a href="{{ absLangURL ($.Site.BaseURL) }}security/feed.xml" title={{ i18n "rssSecurity" }}>