diff --git a/_includes/pinned.njk b/_includes/pinned.njk index 31764ce..7511a23 100644 --- a/_includes/pinned.njk +++ b/_includes/pinned.njk @@ -1,7 +1,7 @@ {% include "base-header.html" %}
-
+

{{ title | markdown | safe }}
@@ -11,7 +11,7 @@

-
+
{%- for content in collections.pinned | reverse -%}
@@ -34,6 +34,30 @@
{%- endfor -%}
+ +
+ {%- set top = 3 -%} + {%- for content in collections.posts | reverse -%} + {%- if (loop.index <= top) and (top <= loop.length) -%} + + {%- if content.data.coverImage -%} + {{ content.data.imageDescription }} + {%- else -%} +
+ {%- endif -%} +
+ + +
+
+ {%- endif -%} + {%- endfor -%} +

...read more in the blog

+
diff --git a/styles.css b/styles.css index 4d0c2c4..843927c 100644 --- a/styles.css +++ b/styles.css @@ -71,6 +71,23 @@ } } +.fancy-pinned-blog-image { + mask-image: linear-gradient(to right, + white, + rgba(255, 255, 255, 0) + ); + position: relative; +} + +.blog-link h2 { + text-decoration: underline; +} + +.blog-link:focus h2, +.blog-link:hover h2 { + text-decoration: none; +} + .fancy-blockquote { max-width: 30rem; font-size: 1.4rem;