Skip to content

Commit 0ddf30d

Browse files
add POST type meta element to search-index results for better clarity
1 parent e505550 commit 0ddf30d

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

src/context/search-index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ <h2>Course</h2>
140140
<h2><a href="#">Open Access in Practice: A Conversation with President Larry Kramer of The Hewlett Foundation</a></h2>
141141
<span class="byline">by <a href="#">Brigitte Vezina</a>, <a href="#">Ony Anukem</a></span>
142142
<span class="categories"><a href=#">Open Culture</a></span>
143+
<span class="type">post</span>
143144

144145
</header>
145146

@@ -160,6 +161,7 @@ <h2><a href="#">Open Access in Practice: A Conversation with President Larry Kra
160161

161162
<span class="byline">by <a href="#">Brigitte Vezina</a>, <a href="#">Ony Anukem</a></span>
162163
<span class="categories"><a href=#">Open Culture</a></span>
164+
<span class="type">page</span>
163165

164166
</header>
165167
<figure>

src/vocabulary/css/vocabulary.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,6 +1220,22 @@ body > article.attention a {
12201220
border-bottom-right-radius: 4px;
12211221
}
12221222

1223+
.search-index .authored-posts article {
1224+
position: relative;
1225+
}
1226+
1227+
.search-index .authored-posts article .type {
1228+
position: absolute;
1229+
top: 0;
1230+
right: 0;
1231+
padding: .5em .7em;
1232+
1233+
background: var(--vocabulary-brand-color-soft-turquoise);
1234+
border-radius: 4px;
1235+
font-family: 'Source Sans Pro';
1236+
1237+
}
1238+
12231239

12241240

12251241
.authored-posts > h2 {

0 commit comments

Comments
 (0)