Stuff
This commit is contained in:
parent
1a6d1fc887
commit
ca721d8674
@ -1,6 +1,6 @@
|
||||
+++
|
||||
date = '2025-08-01T00:15:49-04:00'
|
||||
title = 'First Record'
|
||||
title = 'Первая Запись'
|
||||
+++
|
||||
|
||||
— А по вечерам зато откровеннее! По вечерам задушевнее и откровеннее! — с жаром обернулся к нему Лебедев, — простодушнее и определительнее, честнее и почтеннее, и хоть этим я вам и бок подставляю, но наплевать-с; я вас всех вызываю теперь, всех атеистов: чем вы спасете мир и нормальную дорогу ему в чем отыскали, — вы, люди науки, промышленности, ассоциаций, платы заработной и прочего? Чем? Кредитом? Что такое кредит? К чему приведет вас кредит?
|
@ -2,3 +2,5 @@ baseURL = 'https://example.org/'
|
||||
languageCode = 'en-us'
|
||||
|
||||
theme = 'lugo'
|
||||
|
||||
defaultContentLanguage = "en"
|
||||
|
@ -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
|
||||
|
@ -27,33 +27,26 @@
|
||||
{{ block "main" . }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
{{ if .Param "nextprev" }}{{ partial "nextprev.html" . }}{{ end -}}
|
||||
{{ if .Param "taglist" }}{{ partial "taglist.html" . }}{{ end -}}
|
||||
</article>
|
||||
</main>
|
||||
|
||||
<!-- Language Switcher Footer -->
|
||||
<footer class="language-switcher">
|
||||
{{ block "footer" . }}
|
||||
<a href="{{ .Site.BaseURL }}">{{ .Site.BaseURL }}</a>
|
||||
<footer class="language-switcher">
|
||||
{{ if eq .Language.Lang "en" }}
|
||||
<span class="flag active">🇬🇧</span>
|
||||
<a href="{{ replace .Permalink "/en/" "/ru/" }}" class="flag">🇷🇺</a>
|
||||
<footer class="language-switcher">
|
||||
{{ $currentLang := .Site.Language.Lang }}
|
||||
{{ $pageLang := .Language.Lang }}
|
||||
{{ $translations := .Translations }}
|
||||
|
||||
{{ range .Site.Languages }}
|
||||
{{ if eq .Lang $currentLang }}
|
||||
<span class="flag active">{{ if eq .Lang "en" }}🇬🇧{{ else }}🇷🇺{{ end }}</span>
|
||||
{{ else }}
|
||||
<a href="{{ replace .Permalink "/ru/" "/en/" }}" class="flag">🇬🇧</a>
|
||||
<span class="flag active">🇷🇺</span>
|
||||
{{ $translation := index (where $translations "Lang" .Lang) 0 }}
|
||||
<a href="{{ if $translation }}{{ $translation.Permalink }}{{ else }}{{ .Lang | relURL }}{{ end }}" class="flag">
|
||||
{{ if eq .Lang "en" }}🇬🇧{{ else }}🇷🇺{{ end }}
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</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>
|
||||
|
||||
<!-- Right Banner -->
|
||||
|
@ -4,45 +4,58 @@ body {
|
||||
padding: 0;
|
||||
display: flex;
|
||||
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 {
|
||||
padding: 20px;
|
||||
line-height: 1.2;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
/* Side banners */
|
||||
.banner-left {
|
||||
flex: 1;
|
||||
/* Side banners - FIXED (non-scrollable) */
|
||||
.banner-left, .banner-right {
|
||||
width: calc((100% - 1000px) / 2); /* Matches content width */
|
||||
background-image: url('./banner-left.jpg');
|
||||
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 {
|
||||
flex: 1;
|
||||
background-image: url('./banner-right.jpg');
|
||||
background-size: cover;
|
||||
background-position: center left;
|
||||
right: 0; /* Position on right side */
|
||||
}
|
||||
|
||||
/* Centered content box */
|
||||
/* Centered content box - SCROLLABLE */
|
||||
.content-wrapper {
|
||||
min-height:20%;
|
||||
min-width:60%;
|
||||
max-width:67%;
|
||||
width: 1000px; /* Fixed width or use max-width */
|
||||
width: 1000px;
|
||||
min-height: 100vh;
|
||||
padding: 20px;
|
||||
background: #ffffff;
|
||||
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 {
|
||||
margin-top: auto;
|
||||
text-align: center;
|
||||
padding: 20px 0;
|
||||
margin-top: 40px;
|
||||
padding: 40px 0;
|
||||
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%;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user