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

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">
<h1>{{ .Title }}</h1>
<div class="page-wrapper">
<div class="content-column">
<section class="single post">
<h1>{{ .Title }}</h1>
<p>
{{- .Content -}}
</p>
</article>
<p>
{{- .Content -}}
</p>
</section>
<div class="comments">
{{ template "_internal/disqus.html" . }}
<section class="comments">
{{ template "_internal/disqus.html" . }}
</section>
</div>
{{ partial "sidebar.html" . }}
</div>
{{ end }}

View File

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