-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathabout.liquid
More file actions
98 lines (93 loc) · 3.25 KB
/
Copy pathabout.liquid
File metadata and controls
98 lines (93 loc) · 3.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
---
layout: default
---
<div class="post">
<article>
{% if page.profile %}
<header class="post-header">
<h1 class="post-title">
{% if site.title == 'blank' %}
{{ site.first_name }}
{{ site.middle_name }}
{{ site.last_name }}
{% else %}
{{ site.title }}
{% endif %}
</h1>
</header>
<div class="row">
<div class="col-md-9">
{% if page.subtitle %}
<p class="desc">{{ page.subtitle }}</p>
{% endif %}
<div class="clearfix">{{ content }}</div>
</div>
<div class="col-md-3 profile">
{% if page.profile.image %}
{% assign profile_image_path = page.profile.image | prepend: 'assets/img/' %}
{% if page.profile.image_circular %}
{% assign profile_image_class = 'img-fluid z-depth-1 rounded-circle' %}
{% else %}
{% assign profile_image_class = 'img-fluid z-depth-1 rounded' %}
{% endif %}
{% capture sizes %}(min-width: {{ site.max_width }}) {{ site.max_width | minus: 30 | times: 0.2}}px, (min-width: 576px)
25vw, 90vw"{% endcapture %}
{%
include figure.liquid loading="eager" path=profile_image_path class=profile_image_class sizes=sizes alt=page.profile.image
cache_bust=true
%}
{% endif %}
{% if page.profile.more_info %}
<div class="more-info">{{ page.profile.more_info }}</div>
{% endif %}
{% if page.social %}
<div class="social" style="margin-top: 1rem; text-align: center;">
<div class="contact-icons" style="font-size: 1.6rem;">{% social_links %}</div>
</div>
{% endif %}
</div>
</div>
{% else %}
<header class="post-header">
<h1 class="post-title">
{% if site.title == 'blank' %}
{{ site.first_name }}
{{ site.middle_name }}
{{ site.last_name }}
{% else %}
{{ site.title }}
{% endif %}
</h1>
</header>
<div class="clearfix">{{ content }}</div>
{% endif %}
<!-- News -->
{% if page.announcements and page.announcements.enabled %}
<h2>
<a href="{{ '/news/' | relative_url }}" style="color: inherit">news</a>
</h2>
{% include news.liquid limit=true %}
{% endif %}
<!-- Latest posts -->
{% if page.latest_posts and page.latest_posts.enabled %}
<h2>
<a href="{{ '/blog/' | relative_url }}" style="color: inherit">latest posts</a>
</h2>
{% include latest_posts.liquid %}
{% endif %}
<!-- Selected papers -->
{% if page.selected_papers %}
<h2>
<a href="{{ '/publications/' | relative_url }}" style="color: inherit">selected publications</a>
</h2>
{% include selected_papers.liquid %}
{% endif %}
<!-- Contact Note -->
{% if page.social and site.contact_note %}
<div class="contact-note" style="margin-top: 2rem;">{{ site.contact_note }}</div>
{% endif %}
{% if site.newsletter and site.newsletter.enabled and site.footer_fixed %}
{% include newsletter.liquid center=true %}
{% endif %}
</article>
</div>