diff --git a/assets/sass/_page/_archive.scss b/assets/sass/_page/_archive.scss index 947bd6b4..1f97af1a 100644 --- a/assets/sass/_page/_archive.scss +++ b/assets/sass/_page/_archive.scss @@ -1,18 +1,37 @@ +.archive-wrapper { + display: grid; + grid-template-rows: auto 1fr; + grid-template-columns: 10.5rem minmax(0, 1fr) 10.5rem; + grid-template-areas: 'archive-right-sidebar archive archive-left-sidebar'; + gap: 1rem; + + @include style-to-mobile() { + grid-template-columns: minmax(0, 1fr); + grid-template-areas: 'archive-right-sidebar' 'archive' ' archive-left-sidebar'; + } + + .archive-right-sidebar { + grid-area: archive-right-sidebar; + } + + .archive { + grid-area: archive; + } + + .archive-left-sidebar { + grid-area: archive-left-sidebar; + } +} + .archive { margin: 0 auto; + width: 100%; max-width: $article-max-width; .archive-group { margin-bottom: 2rem; } - .archive-categories { - margin-bottom: 2rem; - display: flex; - gap: 0.5rem; - flex-wrap: wrap; - } - .archive-title { display: flex; justify-content: space-between; @@ -32,3 +51,14 @@ } } } + +.archive-categories { + display: flex; + gap: 0.5rem; + flex-wrap: wrap; + flex-direction: column; + + @include style-to-mobile() { + flex-direction: row; + } +} diff --git a/layouts/partials/archive-list.html b/layouts/partials/archive-list.html index 5a2a76d9..51e34a7e 100644 --- a/layouts/partials/archive-list.html +++ b/layouts/partials/archive-list.html @@ -3,19 +3,23 @@ {{ $context := .context }} {{ $show_category_nav := .show_category_nav | default false }} - -{{ if $show_category_nav }} - {{ partial "widget/category_nav.html" $context }} -{{ end }} +
+ + +
+ {{ if .title_block }} {{ .title_block | safeHTML }} - {{ end }} + {{ end }} - {{ range $paginator.Pages }} + {{ range $paginator.Pages }}
-
- {{ end }} + {{ end }} - {{ if .paginator }} + {{ if .paginator }} {{ partial "pagination.html" $context }} - {{ end }} -
+ {{ end }} + + + + +