feat: add default/list
fix warning: found no layout file for "HTML" for kind "section": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
This commit is contained in:
parent
90bdc34eb8
commit
2ab49f97ee
@ -6,12 +6,15 @@
|
|||||||
article {
|
article {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
margin-bottom: var(--section-separation);
|
|
||||||
background-color: var(--card-background);
|
background-color: var(--card-background);
|
||||||
@include box_shadow(1);
|
@include box_shadow(1);
|
||||||
border-radius: var(--card-border-radius);
|
border-radius: var(--card-border-radius);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
|
&:not(:last-of-type) {
|
||||||
|
margin-bottom: var(--section-separation);
|
||||||
|
}
|
||||||
|
|
||||||
.article-image {
|
.article-image {
|
||||||
img {
|
img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
border-radius: var(--card-border-radius);
|
border-radius: var(--card-border-radius);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
margin-bottom: var(--section-separation);
|
margin: var(--section-separation) 0;
|
||||||
|
|
||||||
.page-link {
|
.page-link {
|
||||||
padding: 16px 32px;
|
padding: 16px 32px;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
|
24
layouts/_default/list.html
Normal file
24
layouts/_default/list.html
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
{{ define "body_class" }}3-column{{ end }}
|
||||||
|
{{ define "main" }}
|
||||||
|
<div class="container extended flex on-phone--column align-items--flex-start">
|
||||||
|
{{ partialCached "sidebar/left.html" . }}
|
||||||
|
|
||||||
|
<main class="main full-width">
|
||||||
|
<div class="widget">
|
||||||
|
<h3 class="widget-title">{{ .Title }}</h3>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<section class="article-list--compact">
|
||||||
|
{{ range .Paginator.Pages }}
|
||||||
|
{{ partial "article-list/compact" . }}
|
||||||
|
{{ end }}
|
||||||
|
</section>
|
||||||
|
|
||||||
|
{{- partial "pagination.html" . -}}
|
||||||
|
|
||||||
|
{{ partialCached "footer" . }}
|
||||||
|
</main>
|
||||||
|
|
||||||
|
{{ partialCached "sidebar/right.html" . }}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
Loading…
Reference in New Issue
Block a user