|
4 | 4 | ---
|
5 | 5 |
|
6 | 6 | <div class="content-body wrap">
|
7 |
| - <article class="single entry"> |
8 |
| - <h1 class="entry-title">{{ page.title }}</h1> |
9 |
| - <p class="entry-date">{{ page.date | date_to_string }}</p> |
10 |
| - {{ content }} |
| 7 | + <article class="entry entry__single"> |
| 8 | + <div class="entry__single_wrap"> |
| 9 | + <h1 class="entry_title">{{ page.title }}</h1> |
| 10 | + |
| 11 | + {% if page.tagline %} |
| 12 | + <p class="entry_tagline">{{ page.tagline }}</p> |
| 13 | + {% endif %} |
| 14 | + |
| 15 | + <div class="entry_meta"> |
| 16 | + {% if page.author %} |
| 17 | + By <span class="author">{{ page.author }}</span> – |
| 18 | + {% endif %} |
| 19 | + |
| 20 | + {% if page.date %} |
| 21 | + <time datetime="{{ page.date | date: '%b %d, %Y' }}"> |
| 22 | + {{ page.date | date: '%b %d, %Y' }} |
| 23 | + </time> |
| 24 | + {% endif %} |
| 25 | + |
| 26 | + {% if page.tags %} |
| 27 | + <div class="tags cf"> |
| 28 | + <h4 class="tags_head">Tags:</h4> |
| 29 | + <ul class="tag-list"> |
| 30 | + {% for tag in page.tags %} |
| 31 | + <li class="tag"> |
| 32 | + <a class="tag_link">{{ tag }}</a> |
| 33 | + </li> |
| 34 | + {% endfor %} |
| 35 | + </ul> |
| 36 | + </div> |
| 37 | + {% endif %} |
| 38 | + </div> |
| 39 | + |
| 40 | + {{ content }} |
| 41 | + </div> |
11 | 42 | </article>
|
| 43 | + |
| 44 | + <section class="sidebar more-articles sidebar__single"> |
| 45 | + <div class="sidebar__single_wrap"> |
| 46 | + <h2 class="sidebar_head">More articles</h2> |
| 47 | + <ul class="sidebar_list nav-list"> |
| 48 | + {% for post in site.posts limit:5 %} |
| 49 | + <li class="sidebar_list_item"> |
| 50 | + <h3 class="sidebar_list_item_head"> |
| 51 | + <a href="{{ post.url | remove_first:'/'}}/"> |
| 52 | + {{ post.title }} |
| 53 | + </a> |
| 54 | + </h3> |
| 55 | + |
| 56 | + <div class="sidebar_list_item_meta entry_meta"> |
| 57 | + {% if post.author %} |
| 58 | + By <span class="author">{{ post.author }}</span> – |
| 59 | + {% endif %} |
| 60 | + |
| 61 | + {% if post.date %} |
| 62 | + <time datetime="{{ post.date | date: '%b %d, %Y' }}"> |
| 63 | + {{ post.date | date: '%b %d, %Y' }} |
| 64 | + </time> |
| 65 | + {% endif %} |
| 66 | + </div> |
| 67 | + </li> |
| 68 | + {% endfor %} |
| 69 | + </ul> |
| 70 | + <a class="more-articles_read-more-link call-to-action__icon" |
| 71 | + href="articles/"> |
| 72 | + Read more articles <i class="icon-right"></i> |
| 73 | + </a> |
| 74 | + </div> |
| 75 | + </section> |
12 | 76 | </div>
|
0 commit comments