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

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">
<h1>{{ .Title }}</h1> <div class="content-column">
<section class="single post">
<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> </div>
{{ partial "sidebar.html" . }}
</div>
{{ end }} {{ end }}

View File

@ -1,20 +1,21 @@
{{ define "main" }} {{ define "main" }}
<div class="page-wrapper">
<div class="content-column">
<div class="single post">
<header>
<h1>Категория - {{ .Title }}</h1>
<p class="subhead">{{ .Params.description }}</p>
</header>
<p>Тут есть:</p>
<div class="single post"> <ul>
<header> {{ range .Pages }}
<h1>Категория - {{ .Title }}</h1> <li hugo-nav="{{ .RelPermalink}}"><a href="{{ .Permalink}}">{{ .LinkTitle }}</a></li>
<p class="subhead">{{ .Params.description }}</p> {{ end }}
</header> </ul>
</div>
<p>Тут есть:</p> </div>
{{ partial "sidebar.html" . }}
<ul>
{{ range .Pages }}
<li hugo-nav="{{ .RelPermalink}}"><a href="{{ .Permalink}}">{{ .LinkTitle }}</a></li>
{{ end }}
</ul>
</div> </div>
{{ end }} {{ end }}