diff --git a/content/en/first-record.md b/content/first-record.en.md similarity index 100% rename from content/en/first-record.md rename to content/first-record.en.md diff --git a/content/ru/first-record.md b/content/first-record.ru.md similarity index 97% rename from content/ru/first-record.md rename to content/first-record.ru.md index 5cd9ef3..5508383 100644 --- a/content/ru/first-record.md +++ b/content/first-record.ru.md @@ -1,6 +1,6 @@ +++ date = '2025-08-01T00:15:49-04:00' -title = 'First Record' +title = 'Первая Запись' +++ — А по вечерам зато откровеннее! По вечерам задушевнее и откровеннее! — с жаром обернулся к нему Лебедев, — простодушнее и определительнее, честнее и почтеннее, и хоть этим я вам и бок подставляю, но наплевать-с; я вас всех вызываю теперь, всех атеистов: чем вы спасете мир и нормальную дорогу ему в чем отыскали, — вы, люди науки, промышленности, ассоциаций, платы заработной и прочего? Чем? Кредитом? Что такое кредит? К чему приведет вас кредит? diff --git a/hugo.toml b/hugo.toml index 1c38480..1e6202d 100644 --- a/hugo.toml +++ b/hugo.toml @@ -2,3 +2,5 @@ baseURL = 'https://example.org/' languageCode = 'en-us' theme = 'lugo' + +defaultContentLanguage = "en" diff --git a/themes/lugo/config.toml b/themes/lugo/config.toml index 9202927..39ac22c 100644 --- a/themes/lugo/config.toml +++ b/themes/lugo/config.toml @@ -1,15 +1,15 @@ -title = "Website Name" -baseURL = 'https://example.org' +defaultContentLanguage = "en" + [languages] [languages.en] - languageCode = 'en-us' - contentDir = "content/en" - languageName = "English" +contentDir = "content/en" +languageName = "English" +weight = 1 [languages.ru] - languageCode = 'ru-ru' - contentDir = "content/ru" - languageName = "Русский" +contentDir = "content/ru" +languageName = "Русский" +weight = 2 [params] # "relatedtext" is the text that appears above the tag list at the bottom of pages. @@ -21,6 +21,10 @@ baseURL = 'https://example.org' authorsinlist = true #footer items - nextprev = true - taglist = true showrss = true + +[permalinks] + en = "/:slug/" + ru = "/ru/:slug/" + +defaultContentLanguageInSubdir = false diff --git a/themes/lugo/layouts/_default/baseof.html b/themes/lugo/layouts/_default/baseof.html index 2416082..779622f 100644 --- a/themes/lugo/layouts/_default/baseof.html +++ b/themes/lugo/layouts/_default/baseof.html @@ -27,33 +27,26 @@ {{ block "main" . }} {{ .Content }} {{ end }} - {{ if .Param "nextprev" }}{{ partial "nextprev.html" . }}{{ end -}} - {{ if .Param "taglist" }}{{ partial "taglist.html" . }}{{ end -}} -