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

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 {
max-height: 512px;
overflow: auto;
white-space: pre-wrap;
word-wrap: break-word;
}

View File

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

View File

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

View File

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