File tree Expand file tree Collapse file tree 4 files changed +33
-40
lines changed
themes/vocabulary_theme/templates Expand file tree Collapse file tree 4 files changed +33
-40
lines changed Original file line number Diff line number Diff line change @@ -33,13 +33,13 @@ links_product:
33
33
<h4 class =" heading " >Help us build our products</h4 >
34
34
35
35
<div class =" list " >
36
- <h5 class =" link-heading " ><a href =" https://opensource.creativecommons.org /contributing-code/" class =" has-text-forest-green " >Contribution Guidelines</a ></h5 >
36
+ <h5 class =" link-heading " ><a href =" /contributing-code/ " class =" has-text-forest-green " >Contribution Guidelines</a ></h5 >
37
37
<p class =" link-caption " >Learn how to contribute and then get started.</p >
38
38
39
- <h5 class =" link-heading " ><a href =" https://opensource.creativecommons.org /community/community-team/" class =" has-text-forest-green " >Community Team</a ></h5 >
39
+ <h5 class =" link-heading " ><a href =" /community/community-team/ " class =" has-text-forest-green " >Community Team</a ></h5 >
40
40
<p class =" link-caption " >Become a member of our community volunteer team.</p >
41
41
42
- <h5 class =" link-heading " ><a href =" https://opensource.creativecommons.org /contributing-code/projects/" class =" has-text-forest-green " >All Available Projects</a ></h5 >
42
+ <h5 class =" link-heading " ><a href =" /contributing-code/projects/ " class =" has-text-forest-green " >All Available Projects</a ></h5 >
43
43
<p class =" link-caption " >See all of our open source projects in one place.</p >
44
44
</div >
45
45
----
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ <h2 class="title">{{ this.title }}</h2>
31
31
{% endif %}
32
32
</ div >
33
33
</ header >
34
- < div class ="single-post-body container ">
34
+ < div class ="single-post-body markdown container ">
35
35
{{ this.body }}
36
36
</ div >
37
37
< footer class ="single-post-footer container ">
Original file line number Diff line number Diff line change 4
4
< div class ="columns is-multiline blog-entries ">
5
5
{% for post in posts %}
6
6
{% set author = post.parent.parent.children.get('authors').children.get(post.author) %}
7
- < article class ="card entry-post horizontal no-border blog-entry column is-one-third ">
8
- < header >
9
- < figure class ="image blog-image ">
10
- {% if author.about %}
11
- {% if author.md5_hashed_email %}
12
- < img class ="profile " src ="https://secure.gravatar.com/avatar/{{ author.md5_hashed_email }}?size=200 " alt ="gravatar " />
13
- {% else %}
14
- < img class ="profile " src ="./blank_profile.svg " alt ="gravatar " />
7
+ < div class ="column is-one-third ">
8
+ < article class ="card entry-post horizontal no-border blog-entry ">
9
+ < header >
10
+ < figure class ="image blog-image ">
11
+ {% if author.about %}
12
+ {% if author.md5_hashed_email %}
13
+ < img class ="profile " src ="https://secure.gravatar.com/avatar/{{ author.md5_hashed_email }}?size=200 " alt ="gravatar " />
14
+ {% else %}
15
+ < img class ="profile " src ="./blank_profile.svg " alt ="gravatar " />
16
+ {% endif %}
15
17
{% endif %}
16
- {% endif %}
17
- </ figure >
18
- </ header >
19
- < div class ="blog-content " >
20
- < h4 class ="b-header " > < a class =" blog-title " href ="{{ post |url }} "> {{ post.title }}</ a > </ h4 >
21
- < span class =" blog-author " > by < a href =" {{ author|url }} " > {{ render_author_name(author ) }}</ a >
22
- on {{ post.pub_date|dateformat("YYYY-MM-dd") }} </ span >
23
- < div class =" excerpt " >
24
- {{ post.body | excerpt | string | striptags() | truncate(100) }}
18
+ </ figure >
19
+ </ header >
20
+ < div class =" blog-content " >
21
+ < h4 class ="b-header " > < a class =" blog-title " href =" {{ post|url }} " > {{ post.title }} </ a > </ h4 >
22
+ < span class ="blog-author " > by < a href ="{{ author |url }} "> {{ render_author_name(author) }}</ a >
23
+ on {{ post.pub_date|dateformat("YYYY-MM-dd" ) }}</ span >
24
+ < div class =" excerpt " >
25
+ {{ post.body | excerpt | string | striptags() | truncate(100) }}
26
+ </ div >
25
27
</ div >
26
- </ div >
27
- </ article >
28
+ </ article >
29
+ </ div >
28
30
{% endfor %}
29
31
</ div >
30
32
{% endmacro %}
Original file line number Diff line number Diff line change 10
10
text-decoration : none ;
11
11
}
12
12
13
+ // Will be replaced by content class from Bulma
13
14
.markdown {
14
15
@extend .body-big ;
15
16
@@ -193,12 +194,16 @@ a {
193
194
}
194
195
195
196
.blog-entries {
197
+ .column {
198
+ & :not (:nth-last-child (-n+3 )) {
199
+ border-bottom : 0.1875rem solid $color-light-gray !important ;
200
+ }
201
+ }
202
+
196
203
.blog-entry {
197
204
@extend .padding-vertical-larger ;
198
205
@extend .padding-horizontal-big ;
199
206
200
- border-bottom : 0.1875rem solid $color-light-gray !important ;
201
-
202
207
.blog-title {
203
208
@extend .has-color-dark-slate-gray ;
204
209
}
226
231
@extend .padding-top-normal ;
227
232
228
233
.pagination-wrapper {
229
- @extend .padding-top-xl ;
234
+ @extend .padding-top-normal ;
230
235
@extend .padding-bottom-xxl ;
231
236
}
232
237
}
274
279
}
275
280
276
281
.single-post-body {
277
- @extend .body-big ;
278
282
@extend .padding-top-bigger ;
279
283
280
- p {
281
- @extend .padding-vertical-small ;
282
- }
283
-
284
- h1 ,h2 ,h3 ,h4 ,h5 ,h6 {
285
- @extend .padding-top-large ;
286
- @extend .padding-bottom-small ;
287
- }
288
-
289
- ol ,ul {
290
- @extend .padding-horizontal-big ;
291
- }
292
-
293
284
& :last-of-type ::after {
294
285
content : ' ' ;
295
286
You can’t perform that action at this time.
0 commit comments