diff --git a/paper-houses-theme/assets/styles/main.scss b/paper-houses-theme/assets/styles/main.scss index 83a25d8..dd5e9e2 100644 --- a/paper-houses-theme/assets/styles/main.scss +++ b/paper-houses-theme/assets/styles/main.scss @@ -228,7 +228,7 @@ ul.links-list { &::before { //content: "\279A " content: "➤ "; - } + } } } .project-list { @@ -258,6 +258,41 @@ ul.links-list { } } +.post-feed { + .post-card-content:not(:last-of-type) { + padding-block-end: 35px; + } + + .post-card-content { + display: grid; + align-items: center; + justify-items: start; + column-gap: 14px; + row-gap: 8px; + // First column is as narrow as possible, second column fills remaining space + grid-template-columns: min-content auto; + + .star-icon { + grid-column: 1; + grid-row: 1; + height: 24px; + } + + .post-entry-link { + grid-column: 2; + grid-row: 1; + font-weight: 600; + font-size: 18px; + } + + .post-card-excerpt { + grid-column: 2; + grid-row: 2; + text-indent: 0em; + } + } +} + .date { font-size: 0.85em; padding-left: 15px; diff --git a/paper-houses-theme/ideas.hbs b/paper-houses-theme/ideas.hbs index 76d3436..48b85bc 100644 --- a/paper-houses-theme/ideas.hbs +++ b/paper-houses-theme/ideas.hbs @@ -9,12 +9,23 @@
{{#foreach posts}} + {{!-- This mirrors the .post-card-content block in index.hbs (the Backrooms) --}} + {{!-- We're maintaining both since I don't know how to use partials --}}
- + {{#if featured}} + + + + {{else}} + + {{/if}} + + {{title}} - {{#if excerpt}} + {{!-- Featured posts actually deserve an excerpt, IMO. --}} + {{#if featured}}
{{excerpt}}
{{/if}}
diff --git a/paper-houses-theme/index.hbs b/paper-houses-theme/index.hbs index 018d7b5..39fe5d0 100644 --- a/paper-houses-theme/index.hbs +++ b/paper-houses-theme/index.hbs @@ -13,12 +13,22 @@ into the {body} of the default.hbs template --}}
{{#foreach posts}} + {{!-- Duplicated from ideas.hbs (TODO: use partials) --}}
- + {{#if featured}} + + + + {{else}} + + {{/if}} + + {{title}} - {{#if excerpt}} + {{!-- Featured posts actually deserve an excerpt, IMO. --}} + {{#if featured}}
{{excerpt}}
{{/if}}