6
6
< header class ="post-header ">
7
7
< h1 class ="post-title " itemprop ="name headline "> {{ page.title }}</ h1 >
8
8
< p class ="post-meta ">
9
- < time
10
- datetime ="{{ page.date | date_to_xmlschema }} "
11
- itemprop ="datePublished "
12
- >
9
+ < time datetime ="{{ page.date | date_to_xmlschema }} " itemprop ="datePublished ">
13
10
{{ page.date | date: "%b %-d, %Y" }}
14
11
</ time >
15
12
{% if page.author %} • {% for author_name in page.author %}
16
13
< span itemprop ="author " itemscope itemtype ="http://schema.org/Person ">
17
- {% assign author = site.data.contributors | where: "name", author_name |
18
- first %} {% assign author_link = author.name | replace: " ", "" |
19
- prepend: "/team/" %}
14
+ {% assign author = site.data.contributors | where: "name", author_name | first %}
15
+ {% assign author_link = author.name | replace: " ", "" | prepend: "/team/" %}
20
16
< a href ="{{ author_link }} " itemprop ="url ">
21
- < img
22
- src ="{% if author.photo %}{{ site.baseurl }}/images/team/{{ author.photo }}{% else %}{{ site.baseurl }}/images/team/defaultDP.png{% endif %} "
23
- alt ="{{ author_name }} "
24
- class ="author-image "
25
- style ="margin: 0 "
26
- />
17
+ < img src ="{% if author.photo %}{{ site.baseurl }}/images/team/{{ author.photo }}{% else %}{{ site.baseurl }}/images/team/defaultDP.png{% endif %} "
18
+ alt ="{{ author_name }} " class ="author-image " />
27
19
< span itemprop ="name "> {{ author_name }}</ span >
28
20
</ a >
29
21
{% if forloop.last == false %} , {% endif %}
@@ -32,6 +24,13 @@ <h1 class="post-title" itemprop="name headline">{{ page.title }}</h1>
32
24
</ p >
33
25
</ header >
34
26
27
+ {% if page.banner_image %}
28
+ < div class ="post-banner ">
29
+ < img src ="{{ page.banner_image }} "
30
+ alt ="Banner Image " class ="banner-image " />
31
+ </ div >
32
+ {% endif %}
33
+
35
34
< div class ="post-content " itemprop ="articleBody "> {{ content }}</ div >
36
35
37
36
{% if page.tags and page.tags.size > 0 %}
@@ -40,14 +39,25 @@ <h1 class="post-title" itemprop="name headline">{{ page.title }}</h1>
40
39
< p >
41
40
< h4 > Tags:</ h4 >
42
41
{% for tag in page.tags %}
43
- < a
44
- href ="{{ site.baseurl }}/tag#{{ tag | downcase | slugify }} "
45
- class ="badge badge-secondary "
46
- style ="background-color: #999999; padding: 0.5rem "
47
- > {{ tag }}</ a
48
- >
42
+ < a href ="{{ site.baseurl }}/tag#{{ tag | downcase | slugify }} " class ="badge badge-secondary tag-badge "> {{ tag }}</ a >
49
43
{% endfor %}
50
44
</ p >
51
45
</ footer >
52
46
{% endif %}
53
47
</ article >
48
+
49
+ < style >
50
+ .post-header .author-image {
51
+ margin : 0 ;
52
+ }
53
+
54
+ .post-banner .banner-image {
55
+ width : 100% ;
56
+ height : auto;
57
+ }
58
+
59
+ .tag-badge {
60
+ background-color : # 999999 ;
61
+ padding : 0.5rem ;
62
+ }
63
+ </ style >
0 commit comments