some changes

master
serr 2025-04-05 21:41:02 +03:00
parent 246c5b3d15
commit 5ed9b0e0fb
2 changed files with 9 additions and 6 deletions

View File

@ -53,11 +53,13 @@ func setupRoutes(a *models.App) *http.ServeMux {
// Обработка статических файлов с кэшированием
router.Handle(a.Config.AssetsPath, controllers.StaticHandler())
// Обработка главной страницы
// Странички
{
// Обработка главной страницы (русская версия)
router.Handle("/ru/", controllers_pages.MainRuPageHandler(a))
// Обработка главной страницы
router.Handle("/", controllers_pages.MainPageHandler(a))
}
return router
}

View File

@ -22,7 +22,7 @@
</div>
<div>
<ul>
<li><a href="/ru">switch to ru version</a></li>
<li><a href="/ru">switch to ru version (AI translation)</a></li>
</ul>
</div>
</header>
@ -107,6 +107,7 @@
</p>
<ul>
<li>unix timestamp of page rendering - <strong>{{ .renderingTimestamp }}</strong></li>
<li>this site code repository - <a href="https://git.hikan.ru/serr/hikan.ru" target="_blank">git.hikan.ru/serr/hikan.ru</a></li>
</ul>
</div>
<div>