File tree Expand file tree Collapse file tree 4 files changed +57
-21
lines changed Expand file tree Collapse file tree 4 files changed +57
-21
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ soorae:
23
23
24
24
theo :
25
25
name : Théophane Rupin
26
+ github : trupin
26
27
about : |
27
28
iOS Developer @Scribd. Creator of Weaver
28
29
Original file line number Diff line number Diff line change 1
1
{% assign hero = page.hero %}
2
- < div class ="feat-post ">
2
+ < div class ="feat-post theme-white ">
3
3
< div class ="container ">
4
4
< div class ="feat-post__container ">
5
5
@@ -15,19 +15,31 @@ <h2 class="hero__title">
15
15
</ h2 >
16
16
17
17
< ul class ="hero__meta ">
18
+
18
19
<!-- Post Author -->
19
20
{%- if post.author -%}
20
- < li class ="hero__meta-item author ">
21
- < strong > Author</ strong > < br >
22
- < span itemprop ="author " itemscope itemtype ="http://schema.org/Person ">
23
- < span itemprop ="name ">
24
- {%- if site.data.authors[post.author] -%}
25
- {{ site.data.authors[post.author].name}}
26
- {%- else -%}
27
- {{ post.author }}
28
- {%- endif -%}
21
+ < li class ="hero__meta-item author media ">
22
+
23
+ <!-- Author Avatar -->
24
+ {%- if site.data.authors[post.author].github -%}
25
+ < img class ="hero__meta-avatar "
26
+ srcset ="https://github.com/{{ site.data.authors[post.author].github}}.png?size=48,
27
+ https://github.com/{{ site.data.authors[post.author].github}}.png?size=96 2x "
28
+ src ="https://github.com/{{ site.data.authors[post.author].github}}.png?size=48 " role ="presentation " alt ="">
29
+ {%- endif -%}
30
+
31
+ < div class ="media-body ">
32
+ < strong > Author</ strong > < br >
33
+ < span itemprop ="author " itemscope itemtype ="http://schema.org/Person ">
34
+ < span itemprop ="name ">
35
+ {%- if site.data.authors[post.author] -%}
36
+ {{ site.data.authors[post.author].name}}
37
+ {%- else -%}
38
+ {{ post.author }}
39
+ {%- endif -%}
40
+ </ span >
29
41
</ span >
30
- </ span >
42
+ </ div >
31
43
</ li >
32
44
{%- endif -%}
33
45
Original file line number Diff line number Diff line change @@ -15,17 +15,28 @@ <h1 class="hero__title" itemprop="name headline">{{ page.title | escape }}</h1>
15
15
16
16
<!-- Post Author -->
17
17
{%- if page.author -%}
18
- < li class ="hero__meta-item author ">
19
- < strong > Author</ strong > < br >
20
- < span itemprop ="author " itemscope itemtype ="http://schema.org/Person ">
21
- < span itemprop ="name ">
22
- {%- if site.data.authors[page.author] -%}
23
- {{ site.data.authors[page.author].name}}
24
- {%- else -%}
25
- {{ page.author }}
26
- {%- endif -%}
18
+ < li class ="hero__meta-item author media ">
19
+
20
+ <!-- Author Avatar -->
21
+ {%- if site.data.authors[page.author].github -%}
22
+ < img class ="hero__meta-avatar "
23
+ srcset ="https://github.com/{{ site.data.authors[page.author].github}}.png?size=48,
24
+ https://github.com/{{ site.data.authors[page.author].github}}.png?size=96 2x "
25
+ src ="https://github.com/{{ site.data.authors[page.author].github}}.png?size=48 " role ="presentation " alt ="">
26
+ {%- endif -%}
27
+
28
+ < div class ="media-body ">
29
+ < strong > Author</ strong > < br >
30
+ < span itemprop ="author " itemscope itemtype ="http://schema.org/Person ">
31
+ < span itemprop ="name ">
32
+ {%- if site.data.authors[page.author] -%}
33
+ {{ site.data.authors[page.author].name}}
34
+ {%- else -%}
35
+ {{ page.author }}
36
+ {%- endif -%}
37
+ </ span >
27
38
</ span >
28
- </ span >
39
+ </ div >
29
40
</ li >
30
41
{%- endif -%}
31
42
Original file line number Diff line number Diff line change 86
86
grid-template-areas :
87
87
" author author author"
88
88
" published category ." ;
89
+ align-items : center ;
89
90
margin : .5em 0 0 0 ;
90
91
font-size : rem-calc (14px );
91
92
@extend .list--plain ;
119
120
.hero__meta-item.author { grid-area : author }
120
121
.hero__meta-item.published { grid-area : published }
121
122
.hero__meta-item.category { grid-area : category }
123
+
124
+ .hero__meta-avatar {
125
+ border-radius : 100% ;
126
+ max-width : 35px ;
127
+ margin-right : rem-calc (10px );
128
+
129
+ @media (min-width : $bp-sm ) {
130
+ max-width : 48px ;
131
+ margin-right : rem-calc (15px );
132
+ }
133
+ }
You can’t perform that action at this time.
0 commit comments