Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F169705936
D56173.id174589.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D56173.id174589.diff
View Options
Index: website/config/_default/languages.en.toml
===================================================================
--- website/config/_default/languages.en.toml
+++ /dev/null
@@ -1,4 +0,0 @@
-title = "The FreeBSD Project"
-contentDir = "content/en"
-languageName = "English"
-weight = 1
Index: website/config/_default/languages.ru.toml
===================================================================
--- website/config/_default/languages.ru.toml
+++ /dev/null
@@ -1,4 +0,0 @@
-title = "The FreeBSD Project"
-contentDir = "content/ru"
-languageName = "Russian"
-weight = 12
Index: website/config/_default/languages.zh-tw.toml
===================================================================
--- website/config/_default/languages.zh-tw.toml
+++ /dev/null
@@ -1,4 +0,0 @@
-title = "The FreeBSD Project"
-contentDir = "content/zh-tw"
-languageName = "繁體中文"
-weight = 6
Index: website/hugo.toml
===================================================================
--- website/hugo.toml
+++ website/hugo.toml
@@ -49,3 +49,17 @@
IsPlainText = false
noUgly = true
Rel = "alternate"
+
+[languages]
+ [languages.en]
+ contentDir = "content/en"
+ label = "English"
+ weight = 1
+ [languages.ru]
+ contentDir = "content/ru"
+ label = "Russian"
+ weight = 2
+ [languages.zh-tw]
+ contentDir = "content/zh-tw"
+ label = "繁體中文"
+ weight = 3
Index: website/themes/beastie/layouts/baseof.html
===================================================================
--- website/themes/beastie/layouts/baseof.html
+++ website/themes/beastie/layouts/baseof.html
@@ -1,5 +1,5 @@
<!DOCTYPE html>
-<html lang="{{ $.Site.LanguageCode | default "en" }}">
+<html lang="{{ .Site.Language.Name }}">
{{ partial "site-head.html" . }}
<body>
<div id="container">
Index: website/themes/beastie/theme.toml
===================================================================
--- website/themes/beastie/theme.toml
+++ website/themes/beastie/theme.toml
@@ -3,7 +3,7 @@
description = "Theme to build the FreeBSD website"
homepage = "https://www.freebsd.org"
tags = ["website", "freebsd", "bsd"]
-min_version = "0.146.0"
+min_version = "0.153.0"
[author]
name = "Sergio Carlavilla"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Sep 3, 8:29 AM (4 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38085667
Default Alt Text
D56173.id174589.diff (2 KB)
Attached To
Mode
D56173: website: Modernize and simplify language logic
Attached
Detach File
Event Timeline
Log In to Comment