diff --git a/_layouts/index.liquid b/_layouts/index.liquid index b671862..24f7f22 100644 --- a/_layouts/index.liquid +++ b/_layouts/index.liquid @@ -1,6 +1,7 @@ {% include page_start.liquid %} {% include page_content.liquid %} {% include breadcrumbs.liquid title=page.title permalink=page.url %} +
{% for data in paginator.posts %} {% if site.xaymar.index.excerpt.enabled %} {% assign content=data.excerpt | strip_html | normalize_whitespace | truncatewords: site.xaymar.index.excerpt.length %} @@ -9,16 +10,17 @@ {% endif %} {% include article.liquid type=post index=true title=data.title content=content permalink=data.url categories=data.categories tags=data.tags %} {% endfor %} +
{% if paginator.total_pages > 1 %} diff --git a/_sass/_base.scss b/_sass/_base.scss index 57b08e9..2fc4f25 100644 --- a/_sass/_base.scss +++ b/_sass/_base.scss @@ -1,4 +1,4 @@ -$theme-width: 1000px; +$theme-width: 1280px; $theme-width-sidebar: 250px; $theme-hue: 215; $theme-content-background: hsl($theme-hue, 33%, 20%); @@ -31,6 +31,7 @@ $theme-breadcrumbs-link-color: hsl($theme-hue, 100%, 75%); $theme-breadcrumbs-link-color-active: hsl($theme-hue, 100%, 85%); $theme-footer-background: hsl($theme-hue, 33%, 10.0%); $theme-footer-color: hsl($theme-hue, 0%, 80%); +$theme-index-column-width: 384px; * { box-sizing: border-box; diff --git a/_sass/_content.scss b/_sass/_content.scss index b101688..ab765da 100644 --- a/_sass/_content.scss +++ b/_sass/_content.scss @@ -9,3 +9,4 @@ body > .content { @import "_article.scss"; @import "_blocks.scss"; @import "_comments.scss"; +@import "_index.scss"; diff --git a/_sass/_index.scss b/_sass/_index.scss new file mode 100644 index 0000000..2d525a4 --- /dev/null +++ b/_sass/_index.scss @@ -0,0 +1,16 @@ +// -------------------------------------------------------------------------------- +// Responsive Masonry +// -------------------------------------------------------------------------------- +#index { + display: grid; + grid-template-columns: repeat(auto-fit, minmax($theme-index-column-width, 1fr)); + grid-template-rows: masonry; + grid-column-gap: 1.5rem; + grid-row-gap: 1.5rem; + justify-items: stretch; + align-items: start; +} + +#index > article { + margin-top: 0; +}