diff --git a/site/_includes/components/collectionList.njk b/site/_includes/components/collectionList.njk index 33660f1..c917e9e 100644 --- a/site/_includes/components/collectionList.njk +++ b/site/_includes/components/collectionList.njk @@ -8,17 +8,19 @@ {% if item.data.cover %} {% image item.data.cover, "", "(min-width: 60rem) calc(0.5 * var(--content-width)), var(--content-width)", "lazy", "collection-cover", item.page.inputPath %} {% endif %} - {{item.data.title}} - {%- if item.data.date -%} - - {%- endif -%} - -

{{item.data.description | safe}}

+ {{item.data.title}} +
+ {%- if item.data.date -%} + {{item.data.date | formatDate("MMMM DD, YYYY") }} + {%- endif -%} + {{ tagList(item.data.tags.slice(1)) }} +
+

{{item.data.description | safe}}

{%- endif -%} {%- if (limit !== 0 and loop.index == limit + 1) -%}
  • - More {{tagName}}… + More {{tagName}}…
  • {%- endif -%} {%- endfor -%} diff --git a/site/_includes/css/site.css b/site/_includes/css/site.css index 295ecf0..f4498ae 100644 --- a/site/_includes/css/site.css +++ b/site/_includes/css/site.css @@ -206,7 +206,6 @@ li::marker { aside { display: inline-block; margin-left: 1ch; - font-size: var(--s-1); } span.aside { @@ -284,7 +283,7 @@ ul.collection { box-shadow: inset 0 0 2rem -1rem var(--c-accent); padding: 0.5rem; border-radius: 0.25rem; - > a:first-of-type { + a.collection-itemTitle { position: static; &::before { content: ""; @@ -293,9 +292,6 @@ ul.collection { } } } - > aside { - display: inline; - } > p { &::before { content: none; @@ -308,11 +304,6 @@ ul.collection { + li { margin-top: 1rem; } - @media (max-width: 40rem) { - .tags { - display: block; - } - } } } diff --git a/site/_includes/home.njk b/site/_includes/home.njk index dabb1e1..f3a9229 100644 --- a/site/_includes/home.njk +++ b/site/_includes/home.njk @@ -5,11 +5,6 @@ rssUrl: "feed.xml" {%- from "components/collectionList.njk" import collectionList with context -%}
    {{ content | safe }} - {%- for name, collection in collections -%} - {%- if name in ["posts"] -%} -

    {{name | capitalize }}

    - {% include "-taglist.njk" %} - {{ collectionList(name, limit=5) }} - {%- endif -%} - {%- endfor -%} +

    Recent posts

    + {{ collectionList("posts", limit=5) }}