Боковая панель везде и костыли

This commit is contained in:
MultiMote 2023-01-04 20:26:54 +03:00
parent 6bc5de79fe
commit 54751cb085
4 changed files with 36 additions and 23 deletions

View File

@ -37,4 +37,6 @@ a:active {
pre { pre {
max-height: 512px; max-height: 512px;
overflow: auto; overflow: auto;
white-space: pre-wrap;
word-wrap: break-word;
} }

View File

@ -145,11 +145,16 @@ section.posts {
} }
} }
.content-column {
width: 100%;
}
.sidebar { .sidebar {
& { & {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
min-width: 300px; min-width: 300px;
width: 300px;
gap: 16px; gap: 16px;
} }

View File

@ -11,15 +11,20 @@
{{end}} {{end}}
{{ define "main" }} {{ define "main" }}
<article class="single post"> <div class="page-wrapper">
<div class="content-column">
<section class="single post">
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>
<p> <p>
{{- .Content -}} {{- .Content -}}
</p> </p>
</article> </section>
<div class="comments"> <section class="comments">
{{ template "_internal/disqus.html" . }} {{ template "_internal/disqus.html" . }}
</section>
</div>
{{ partial "sidebar.html" . }}
</div> </div>
{{ end }} {{ end }}

View File

@ -1,6 +1,6 @@
{{ define "main" }} {{ define "main" }}
<div class="page-wrapper">
<div class="content-column">
<div class="single post"> <div class="single post">
<header> <header>
<h1>Категория - {{ .Title }}</h1> <h1>Категория - {{ .Title }}</h1>
@ -15,6 +15,7 @@
{{ end }} {{ end }}
</ul> </ul>
</div> </div>
</div>
{{ partial "sidebar.html" . }}
</div>
{{ end }} {{ end }}