|
2 | 2 | layout: default |
3 | 3 | --- |
4 | 4 | <div class="post"> |
5 | | - <header class="post-header"> |
6 | | - <h1 class="post-title"> |
7 | | - {% if site.title == 'blank' %} |
8 | | - <span class="font-weight-bold">{{ site.first_name }}</span> {{ site.middle_name }} |
9 | | - {{ site.last_name }} |
10 | | - {% else %} |
11 | | - {{ site.title }} |
12 | | - {% endif %} |
13 | | - </h1> |
14 | | - <p class="desc">{{ page.subtitle }}</p> |
15 | | - </header> |
16 | | - |
17 | 5 | <article> |
18 | 6 | {% if page.profile %} |
19 | | - <div class="profile float-{% if page.profile.align == 'left' %}left{% else %}right{% endif %}"> |
20 | | - {% if page.profile.image %} |
21 | | - {% assign profile_image_path = page.profile.image | prepend: 'assets/img/' %} |
22 | | - {% if page.profile.image_circular %} |
23 | | - {% assign profile_image_class = 'img-fluid z-depth-1 rounded-circle' %} |
| 7 | + <header class="post-header"> |
| 8 | + <h1 class="post-title"> |
| 9 | + {% if site.title == 'blank' %} |
| 10 | + <span class="font-weight-bold">{{ site.first_name }}</span> {{ site.middle_name }} |
| 11 | + {{ site.last_name }} |
24 | 12 | {% else %} |
25 | | - {% assign profile_image_class = 'img-fluid z-depth-1 |
26 | | - rounded' %} |
| 13 | + {{ site.title }} |
| 14 | + {% endif %} |
| 15 | + </h1> |
| 16 | + </header> |
| 17 | + <div class="row"> |
| 18 | + <div class="col-md-9"> |
| 19 | + {% if page.subtitle %} |
| 20 | + <p class="desc">{{ page.subtitle }}</p> |
| 21 | + {% endif %} |
| 22 | + <div class="clearfix">{{ content }}</div> |
| 23 | + </div> |
| 24 | + <div class="col-md-3"> |
| 25 | + {% if page.profile.image %} |
| 26 | + {% assign profile_image_path = page.profile.image | prepend: 'assets/img/' %} |
| 27 | + {% if page.profile.image_circular %} |
| 28 | + {% assign profile_image_class = 'img-fluid z-depth-1 rounded-circle' %} |
| 29 | + {% else %} |
| 30 | + {% assign profile_image_class = 'img-fluid z-depth-1 rounded' %} |
| 31 | + {% endif %} |
| 32 | + {% capture sizes %}(min-width: {{ site.max_width }}) {{ site.max_width | minus: 30 | times: 0.2}}px, (min-width: 576px) |
| 33 | + 25vw, 90vw"{% endcapture %} |
| 34 | + {% |
| 35 | + include figure.liquid loading="eager" path=profile_image_path class=profile_image_class sizes=sizes alt=page.profile.image |
| 36 | + cache_bust=true |
| 37 | + %} |
| 38 | + {% endif %} |
| 39 | + {% if page.profile.more_info %} |
| 40 | + <div class="more-info">{{ page.profile.more_info }}</div> |
27 | 41 | {% endif %} |
28 | | - {% capture sizes %}(min-width: {{ site.max_width }}) {{ site.max_width | minus: 30 | times: 0.3}}px, (min-width: 576px) |
29 | | - 30vw, 95vw"{% endcapture %} |
30 | | - {% |
31 | | - include figure.liquid loading="eager" path=profile_image_path class=profile_image_class sizes=sizes alt=page.profile.image |
32 | | - cache_bust=true |
33 | | - %} |
34 | | - {% endif %} |
35 | | - {% if page.profile.more_info %} |
36 | | - <div class="more-info">{{ page.profile.more_info }}</div> |
37 | | - {% endif %} |
| 42 | + </div> |
38 | 43 | </div> |
| 44 | + {% else %} |
| 45 | + <header class="post-header"> |
| 46 | + <h1 class="post-title"> |
| 47 | + {% if site.title == 'blank' %} |
| 48 | + <span class="font-weight-bold">{{ site.first_name }}</span> {{ site.middle_name }} |
| 49 | + {{ site.last_name }} |
| 50 | + {% else %} |
| 51 | + {{ site.title }} |
| 52 | + {% endif %} |
| 53 | + </h1> |
| 54 | + </header> |
| 55 | + <div class="clearfix">{{ content }}</div> |
39 | 56 | {% endif %} |
40 | 57 |
|
41 | | - <div class="clearfix">{{ content }}</div> |
42 | | - |
43 | 58 | <!-- News --> |
44 | 59 | {% if page.announcements and page.announcements.enabled %} |
45 | 60 | <h2> |
|
0 commit comments