|
1 |
| ---- |
2 |
| -layout: default |
3 |
| ---- |
4 |
| -{%- if page.featured_image -%} |
5 |
| -<div class="hero-banner"> |
6 |
| - <img src="{{page.featured_image}}" class="featured-image"> |
7 |
| -</div> |
8 |
| -{%- else -%} |
9 |
| -<div class="hero-banner"> |
10 |
| - <img src="/assets/images/bpd_stacked.png" class="featured-image"> |
11 |
| -</div> |
12 |
| -{%- endif -%} |
13 |
| -<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting"> |
14 |
| - |
15 |
| - <header class="post-header"> |
16 |
| - <h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1> |
17 |
| - <p class="post-meta"> |
18 |
| - {%- assign date_format = site.bpdevs.date_format | default: "%b %-d, %Y" -%} |
19 |
| - <time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished"> |
20 |
| - {{ page.date | date: date_format }} |
21 |
| - </time> |
22 |
| - {%- if page.modified_date -%} |
23 |
| - ~ |
24 |
| - {%- assign mdate = page.modified_date | date_to_xmlschema -%} |
25 |
| - <time class="dt-modified" datetime="{{ mdate }}" itemprop="dateModified"> |
26 |
| - {{ mdate | date: date_format }} |
27 |
| - </time> |
28 |
| - {%- endif -%} |
29 |
| - {%- if page.author -%} |
30 |
| - • {% for author in page.author %} |
31 |
| - <span itemprop="author" itemscope itemtype="http://schema.org/Person"> |
32 |
| - <span class="p-author h-card" itemprop="name">{{ author }}</span></span> |
33 |
| - {%- if forloop.last == false %}, {% endif -%} |
34 |
| - {% endfor %} |
35 |
| - {%- endif -%} |
36 |
| - </p> |
37 |
| - </header> |
38 |
| - |
39 |
| - <div class="post-content e-content" itemprop="articleBody"> |
40 |
| - {{ content }} |
41 |
| - </div> |
42 |
| - |
43 |
| - {%- if site.disqus.shortname -%} |
44 |
| - {%- include disqus_comments.html -%} |
45 |
| - {%- endif -%} |
46 |
| - |
47 |
| - <a class="u-url" href="{{ page.url | relative_url }}" hidden></a> |
48 |
| -</article> |
| 1 | +--- |
| 2 | +layout: default |
| 3 | +--- |
| 4 | +<section> |
| 5 | +{%- if page.featured_image -%} |
| 6 | +<div class="hero-banner"> |
| 7 | + <img src="{{page.featured_image}}" class="featured-image"> |
| 8 | +</div> |
| 9 | +{%- else -%} |
| 10 | +<div class="hero-banner"> |
| 11 | + <img src="/assets/images/bpd_stacked.png" class="featured-image"> |
| 12 | +</div> |
| 13 | +{%- endif -%} |
| 14 | + <article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting"> |
| 15 | + <header class="post-header"> |
| 16 | + <h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1> |
| 17 | + <p class="post-meta"> |
| 18 | + {%- assign date_format = site.bpdevs.date_format | default: "%b %-d, %Y" -%} |
| 19 | + <time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished"> |
| 20 | + {{ page.date | date: date_format }} |
| 21 | + </time> |
| 22 | + {%- if page.modified_date -%} |
| 23 | + ~ |
| 24 | + {%- assign mdate = page.modified_date | date_to_xmlschema -%} |
| 25 | + <time class="dt-modified" datetime="{{ mdate }}" itemprop="dateModified"> |
| 26 | + {{ mdate | date: date_format }} |
| 27 | + </time> |
| 28 | + {%- endif -%} |
| 29 | + {%- if page.author -%} |
| 30 | + • {% for author in page.author %} |
| 31 | + <span itemprop="author" itemscope itemtype="http://schema.org/Person"> |
| 32 | + <span class="p-author h-card" itemprop="name">{{ author }}</span></span> |
| 33 | + {%- if forloop.last == false %}, {% endif -%} |
| 34 | + {% endfor %} |
| 35 | + {%- endif -%} |
| 36 | + </p> |
| 37 | + </header> |
| 38 | + <div class="post-content e-content" itemprop="articleBody"> |
| 39 | + {{ content }} |
| 40 | + </div> |
| 41 | + <a class="u-url" href="{{ page.url | relative_url }}" hidden></a> |
| 42 | + </article> |
| 43 | +</section> |
| 44 | + |
| 45 | +{% assign author = site.data.authors | where:"name", page.author | first %} |
| 46 | +<section> |
| 47 | +{% if author.bio %} |
| 48 | +<hr /> |
| 49 | + <h3>About {{author.name}}</h3> |
| 50 | + <p>{{author.bio}}</p> |
| 51 | +</section> |
| 52 | +{% endif %} |
0 commit comments