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

This commit is contained in:
MultiMote 2023-01-04 20:26:54 +03:00
parent 4aaa12c712
commit d2c19571f6
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,7 +1,7 @@
{{ define "main" }}
<div class="single post">
<div class="page-wrapper">
<div class="content-column">
<div class="single post">
<header>
<h1>Категория - {{ .Title }}</h1>
<p class="subhead">{{ .Params.description }}</p>
@ -14,7 +14,8 @@
<li hugo-nav="{{ .RelPermalink}}"><a href="{{ .Permalink}}">{{ .LinkTitle }}</a></li>
{{ end }}
</ul>
</div>
</div>
{{ partial "sidebar.html" . }}
</div>
{{ end }}