Skip to content

Commit 47d7bdd

Browse files
committed
wip(web): drop thumbnails and the featured first card from blog archives
1 parent ff87caf commit 47d7bdd

2 files changed

Lines changed: 21 additions & 7 deletions

File tree

‎web/layouts/_default/summary.html‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
<article class="post col-sm-12 col-md-4">
22
<div class="whiteGradient border"></div>
3-
<div class="postImg">
4-
{{ if .Params.thumbnail }}
5-
<a href="{{ .Permalink }}" class="pimage">
6-
<img src="{{ .Params.thumbnail | relURL }}" alt="{{ .Title }}">
7-
</a>
8-
{{ end }}
9-
</div>
103
<div class="postContent">
114
<div class="postSummary">
125
<div class="postInfo">

‎web/static/css/site.css‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,24 @@
6565
color: var(--baseColor);
6666
}
6767

68+
/* all blog posts are equal: neutralize the theme's full-width "featured"
69+
first card on every archive (blog index, tags, author, planet) */
70+
#postList .post:first-child {
71+
width: calc(33.33% - 10px);
72+
max-width: 33.333333%;
73+
flex: 0 0 calc(33.3333% - 40px) !important;
74+
}
75+
76+
#postList .post:first-child .postSummary {
77+
width: 100%;
78+
float: none;
79+
padding-left: 0;
80+
}
81+
82+
@media screen and (max-width: 768px) {
83+
#postList .post:first-child {
84+
width: 100%;
85+
max-width: none;
86+
flex: none !important;
87+
}
88+
}

0 commit comments

Comments
 (0)