From 4b50b71600c1dca9ac44ddcf603f1ed9716148a1 Mon Sep 17 00:00:00 2001 From: Anton Livaja <anton@livaja.me> Date: Mon, 24 Mar 2025 12:01:39 -0700 Subject: [PATCH] fix: remove blog header and add top margin --- _layouts/blog.html | 52 +++++++++++++++++++++------------------------- _sass/base.scss | 1 + 2 files changed, 25 insertions(+), 28 deletions(-) diff --git a/_layouts/blog.html b/_layouts/blog.html index f407ecb..94d347e 100644 --- a/_layouts/blog.html +++ b/_layouts/blog.html @@ -5,36 +5,32 @@ {%- include header.html -%} <div class="container"> <main class="blog"> - <div id="blog-header"> - <span class="blog-header-title">the <img width="30px" src="assets/base/distrust-white.svg"/> Distrust blog</span> - <div class="blog-header-subtitle">Provable security, explained.</div> - </div> - <div class="entry"> - <div class="posts"> - {% for post in site.posts %} - <div class="blog-details"> - <div class="blog-details-date">{{ post.date | date: "%b %e, %Y" }}</div> - <div class="blog-details-read-time">{{ post.content | number_of_words | divided_by: 200 }} min read</div> - </div> - <a class="blog-link" href="{{ post.url | relative_url }}" title="{{ post.title }}"> - <article> - <h1>{{ post.title }}</h1> - <p>{{ post.excerpt | strip_html | truncatewords: 35 }}</p> - </article> - <div class="arrow-link"> - Read - <span class="arrow">→</span> - </div> - </a> - {% endfor %} + <div class="entry"> + <div class="posts"> + {% for post in site.posts %} + <div class="blog-details"> + <div class="blog-details-date">{{ post.date | date: "%b %e, %Y" }}</div> + <div class="blog-details-read-time">{{ post.content | number_of_words | divided_by: 200 }} min read</div> </div> - </div> - - <p> - {% for author in page.authors %} - — {{ author.name }}{% unless forloop.last %}, {% endunless %} + <a class="blog-link" href="{{ post.url | relative_url }}" title="{{ post.title }}"> + <article> + <h1>{{ post.title }}</h1> + <p>{{ post.excerpt | strip_html | truncatewords: 35 }}</p> + </article> + <div class="arrow-link"> + Read + <span class="arrow">→</span> + </div> + </a> {% endfor %} - </p> + </div> + </div> + + <p> + {% for author in page.authors %} + — {{ author.name }}{% unless forloop.last %}, {% endunless %} + {% endfor %} + </p> </main> {%- include footer.html -%} </div> diff --git a/_sass/base.scss b/_sass/base.scss index 8ee8c91..fa31e0f 100644 --- a/_sass/base.scss +++ b/_sass/base.scss @@ -1504,6 +1504,7 @@ pre { .blog { margin: auto; max-width: 700px; + margin-top: 80px; } .post {