This commit is contained in:
NaiJi ✨ 2025-08-02 19:07:01 -04:00
parent 1a6d1fc887
commit ca721d8674
6 changed files with 64 additions and 52 deletions

View File

@ -1,6 +1,6 @@
+++ +++
date = '2025-08-01T00:15:49-04:00' date = '2025-08-01T00:15:49-04:00'
title = 'First Record' title = 'Первая Запись'
+++ +++
А по вечерам зато откровеннее! По вечерам задушевнее и откровеннее! — с жаром обернулся к нему Лебедев, — простодушнее и определительнее, честнее и почтеннее, и хоть этим я вам и бок подставляю, но наплевать-с; я вас всех вызываю теперь, всех атеистов: чем вы спасете мир и нормальную дорогу ему в чем отыскали, — вы, люди науки, промышленности, ассоциаций, платы заработной и прочего? Чем? Кредитом? Что такое кредит? К чему приведет вас кредит? А по вечерам зато откровеннее! По вечерам задушевнее и откровеннее! — с жаром обернулся к нему Лебедев, — простодушнее и определительнее, честнее и почтеннее, и хоть этим я вам и бок подставляю, но наплевать-с; я вас всех вызываю теперь, всех атеистов: чем вы спасете мир и нормальную дорогу ему в чем отыскали, — вы, люди науки, промышленности, ассоциаций, платы заработной и прочего? Чем? Кредитом? Что такое кредит? К чему приведет вас кредит?

View File

@ -2,3 +2,5 @@ baseURL = 'https://example.org/'
languageCode = 'en-us' languageCode = 'en-us'
theme = 'lugo' theme = 'lugo'
defaultContentLanguage = "en"

View File

@ -1,15 +1,15 @@
title = "Website Name" defaultContentLanguage = "en"
baseURL = 'https://example.org'
[languages] [languages]
[languages.en] [languages.en]
languageCode = 'en-us' contentDir = "content/en"
contentDir = "content/en" languageName = "English"
languageName = "English" weight = 1
[languages.ru] [languages.ru]
languageCode = 'ru-ru' contentDir = "content/ru"
contentDir = "content/ru" languageName = "Русский"
languageName = "Русский" weight = 2
[params] [params]
# "relatedtext" is the text that appears above the tag list at the bottom of pages. # "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 authorsinlist = true
#footer items #footer items
nextprev = true
taglist = true
showrss = true showrss = true
[permalinks]
en = "/:slug/"
ru = "/ru/:slug/"
defaultContentLanguageInSubdir = false

View File

@ -27,33 +27,26 @@
{{ block "main" . }} {{ block "main" . }}
{{ .Content }} {{ .Content }}
{{ end }} {{ end }}
{{ if .Param "nextprev" }}{{ partial "nextprev.html" . }}{{ end -}}
{{ if .Param "taglist" }}{{ partial "taglist.html" . }}{{ end -}}
</article> </article>
</main> </main>
<!-- Language Switcher Footer --> <!-- Language Switcher Footer -->
<footer class="language-switcher"> <footer class="language-switcher">
{{ block "footer" . }} {{ $currentLang := .Site.Language.Lang }}
<a href="{{ .Site.BaseURL }}">{{ .Site.BaseURL }}</a> {{ $pageLang := .Language.Lang }}
<footer class="language-switcher"> {{ $translations := .Translations }}
{{ if eq .Language.Lang "en" }}
<span class="flag active">🇬🇧</span> {{ range .Site.Languages }}
<a href="{{ replace .Permalink "/en/" "/ru/" }}" class="flag">🇷🇺</a> {{ if eq .Lang $currentLang }}
<span class="flag active">{{ if eq .Lang "en" }}🇬🇧{{ else }}🇷🇺{{ end }}</span>
{{ else }} {{ else }}
<a href="{{ replace .Permalink "/ru/" "/en/" }}" class="flag">🇬🇧</a> {{ $translation := index (where $translations "Lang" .Lang) 0 }}
<span class="flag active">🇷🇺</span> <a href="{{ if $translation }}{{ $translation.Permalink }}{{ else }}{{ .Lang | relURL }}{{ end }}" class="flag">
{{ if eq .Lang "en" }}🇬🇧{{ else }}🇷🇺{{ end }}
</a>
{{ end }} {{ end }}
{{ end }}
</footer> </footer>
{{- if .Param "showrss" }}
<br><br>
<a href="/index.xml">
<img src="/rss.svg" style="max-height:1.5em" alt="RSS Feed" title="Subscribe via RSS for updates.">
</a>
<p>The side banners are fragments of Blooming Lilacs by Kiriak Konstantinovich Kostandi</p>
{{ end }}
{{ end }}
</footer>
</div> </div>
<!-- Right Banner --> <!-- Right Banner -->

View File

@ -4,45 +4,58 @@ body {
padding: 0; padding: 0;
display: flex; display: flex;
min-height: 100vh; min-height: 100vh;
font-family: Garamond, Baskerville, "Baskerville Old Face", "Hoefler Text", "Times New Roman", serif; overflow: hidden; /* Prevent body scrolling */
font-family: Garamond, Baskerville, "Baskerville Old Face", "Hoefler Text", "Times New Roman", serif;
} }
p { /* Side banners - FIXED (non-scrollable) */
padding: 20px; .banner-left, .banner-right {
line-height: 1.2; width: calc((100% - 1000px) / 2); /* Matches content width */
font-size: 20px;
}
/* Side banners */
.banner-left {
flex: 1;
background-image: url('./banner-left.jpg'); background-image: url('./banner-left.jpg');
background-size: cover; background-size: cover;
background-position: center right; background-position: center;
background-attachment: fixed; /* Keeps image fixed during scroll */
background-repeat: no-repeat;
position: fixed;
top: 0;
bottom: 0;
} }
.banner-right { .banner-right {
flex: 1;
background-image: url('./banner-right.jpg'); background-image: url('./banner-right.jpg');
background-size: cover; right: 0; /* Position on right side */
background-position: center left;
} }
/* Centered content box */ /* Centered content box - SCROLLABLE */
.content-wrapper { .content-wrapper {
min-height:20%; width: 1000px;
min-width:60%; min-height: 100vh;
max-width:67%;
width: 1000px; /* Fixed width or use max-width */
padding: 20px; padding: 20px;
background: #ffffff; background: #ffffff;
box-shadow: 0 0 30px rgba(0,0,0,0.9); box-shadow: 0 0 30px rgba(0,0,0,0.9);
margin: 0 auto; /* Center horizontally */
overflow-y: auto; /* Enable scrolling */
position: relative;
z-index: 1; /* Ensure content appears above banners */
} }
/* Language switcher */ /* Language switcher */
.language-switcher { .language-switcher {
margin-top: auto;
text-align: center; text-align: center;
padding: 20px 0; padding: 40px 0;
margin-top: 40px; background: rgba(255, 255, 255, 0.97);
border-top: 1px solid #eee;
position: sticky;
bottom: 0;
} }
/* Mobile responsiveness */
@media (max-width: 1100px) {
.banner-left, .banner-right {
display: none;
}
.content-wrapper {
width: 100%;
}
}