@@ -15,46 +15,48 @@ layout: default
1515 </header >
1616
1717 <article >
18- {% 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' %}
24- {% else %}
25- {% assign profile_image_class = 'img-fluid z-depth-1 rounded' %}
18+ <div
19+ class =" profile-container"
20+ style =" {% if page .profile .align == 'right' %}float : right ; margin-left : 20px ;{% else %}float : left ; margin-right : 20px ;{% endif %} max-width : 30% ; "
21+ >
22+ {% if page .profile %}
23+ <div class =" profile" >
24+ {% if page .profile .image %}
25+ {% assign profile_image_path = page .profile .image | prepend: 'assets/img/' %}
26+ {% if page .profile .image_circular %}
27+ {% assign profile_image_class = 'img-fluid z-depth-1 rounded-circle' %}
28+ {% else %}
29+ {% assign profile_image_class = 'img-fluid z-depth-1 rounded' %}
30+ {% endif %}
31+ {% capture sizes %}(min-width: {{site .max_width }}) {{ site .max_width | minus: 30 | times: 0.3 }}px, (min-width: 576px) 30vw, 95vw"{% endcapture %}
32+ {%
33+ include figure .liquid loading ="eager" path =profile_image_path class =profile_image_class sizes =sizes alt =page .profile .image
34+ cache_bust =true
35+ %}
2636 {% endif %}
27- {% capture sizes %}(min-width: {{site .max_width }}) {{ site .max_width | minus: 30 | times: 0.3 }}px, (min-width: 576px) 30vw, 95vw"{% endcapture %}
28- {%
29- include figure .liquid loading ="eager" path =profile_image_path class =profile_image_class sizes =sizes alt =page .profile .image
30- cache_bust =true
31- %}
32- {% endif %}
33- {% if page .profile .more_info %}
34- <div class =" more-info" >{{ page .profile .more_info }}</div >
35- {% endif %}
36- </div >
37- {% endif %}
37+ {% if page .profile .more_info %}
38+ <div class =" more-info" >{{ page .profile .more_info }}</div >
39+ {% endif %}
40+ </div >
41+ {% endif %}
3842
39- <!-- Added GIF section below profile picture with caption and size control -->
40- {% if page .header_gif and page .header_gif .enable %}
41- <div
42- class =" gif-container"
43- style =" clear : both ; margin-top : 20px ; margin-bottom : 20px ; max-width : {{ page .header_gif.width | default : ' 100%' }}; margin-left : auto ; margin-right : auto ;"
44- >
45- <img
46- src =" {{ page .header_gif .file | prepend: '/assets/img/' | relative_url }}"
47- alt =" {{ page .header_gif .alt }}"
48- class =" img-fluid z-depth-1"
49- style =" width : 50% ;"
50- >
51- {% if page .header_gif .caption %}
52- <div class =" caption" style =" text-align : center ; margin-top : 10px ; font-style : italic ; color : #6c757d ;" >
53- {{ page .header_gif .caption }}
54- </div >
55- {% endif %}
56- </div >
57- {% endif %}
43+ <!-- GIF placed below profile picture, aligned to the same side -->
44+ {% if page .header_gif and page .header_gif .enable %}
45+ <div class =" gif-container" style =" margin-top : 20px ; margin-bottom : 20px ; width : 100% ;" >
46+ <img
47+ src =" {{ page .header_gif .file | prepend: '/assets/img/' | relative_url }}"
48+ alt =" {{ page .header_gif .alt }}"
49+ class =" img-fluid z-depth-1"
50+ style =" width : 100% ;"
51+ >
52+ {% if page .header_gif .caption %}
53+ <div class =" caption" style =" text-align : center ; margin-top : 10px ; font-style : italic ; color : #6c757d ; font-size : 0.9em ;" >
54+ {{ page .header_gif .caption }}
55+ </div >
56+ {% endif %}
57+ </div >
58+ {% endif %}
59+ </div >
5860
5961 <div class =" clearfix" >{{ content }}</div >
6062
0 commit comments