diff --git a/assets/scss/partials/article.scss b/assets/scss/partials/article.scss index 76ccc48..4acd166 100644 --- a/assets/scss/partials/article.scss +++ b/assets/scss/partials/article.scss @@ -6,12 +6,15 @@ article { display: flex; flex-direction: column; - margin-bottom: var(--section-separation); background-color: var(--card-background); @include box_shadow(1); border-radius: var(--card-border-radius); overflow: hidden; + &:not(:last-of-type) { + margin-bottom: var(--section-separation); + } + .article-image { img { width: 100%; diff --git a/assets/scss/partials/pagination.scss b/assets/scss/partials/pagination.scss index 0b3fcc8..ef6b2bd 100644 --- a/assets/scss/partials/pagination.scss +++ b/assets/scss/partials/pagination.scss @@ -5,8 +5,8 @@ border-radius: var(--card-border-radius); overflow: hidden; flex-wrap: wrap; - margin-bottom: var(--section-separation); - + margin: var(--section-separation) 0; + .page-link { padding: 16px 32px; display: inline-flex; diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..613c68a --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,24 @@ +{{ define "body_class" }}3-column{{ end }} +{{ define "main" }} +
+ {{ partialCached "sidebar/left.html" . }} + +
+
+

{{ .Title }}

+
+ +
+ {{ range .Paginator.Pages }} + {{ partial "article-list/compact" . }} + {{ end }} +
+ + {{- partial "pagination.html" . -}} + + {{ partialCached "footer" . }} +
+ + {{ partialCached "sidebar/right.html" . }} +
+{{ end }} \ No newline at end of file