File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ posts_in_search: false
5858bib_search : false
5959
6060# Dimensions
61- max_width : 1000px
61+ max_width : 930px
6262
6363# TODO: add layout settings (single page vs. multi-page)
6464
Original file line number Diff line number Diff line change 1+ {%- assign img_path = include.path | remove: ".jpg" | remove: ".jpeg" | remove: ".png" | remove: ".tiff" -%}
2+
3+ < figure >
4+
5+ < picture >
6+ {% if site.imagemagick.enabled %}
7+ {% for i in site.imagemagick.widths -%}
8+ < source
9+ class ="responsive-img-srcset "
10+ media ="(max-width: {{ i }}px) "
11+ srcset ="{{ img_path | relative_url }}-{{ i }}.webp "
12+ />
13+ {% endfor -%}
14+ {% endif %}
15+
16+ <!-- Fallback to the original file -->
17+ < img
18+ src ="{{ include.path | relative_url }} "
19+ {% if include.class %}class ="{{ include.class }} "{% endif %}
20+ {% if include.width %}width ="{{ include.width }} "{% else %}width ="auto "{% endif %}
21+ {% if include.height %}height ="{{ include.height }} "{% else %}height ="auto "{% endif %}
22+ {% if include.min-width %}min-width ="{{ include.min-width }} "{% endif %}
23+ {% if include.min-height %}min-height ="{{ include.min-height }} "{% endif %}
24+ {% if include.max-width %}max-width ="{{ include.max-width }} "{% endif %}
25+ {% if include.max-height %}height ="{{ include.max-height }} "{% endif %}
26+ {% if include.alt %}alt ="{{ include.alt }} "{% endif %}
27+ {% if include.title %}title ="{{ include.title }} "{% endif %}
28+ {% if include.zoomable %}data-zoomable{% endif %}
29+ onerror ="this.onerror=null; $('.responsive-img-srcset').remove(); "
30+ />
31+
32+ </ picture >
33+
34+ {%- if include.caption -%}< figcaption class ="caption "> {{ include.caption }}</ figcaption > {%- endif %}
35+
36+ </ figure >
Original file line number Diff line number Diff line change 1+ <!-- _includes/projects.html -->
2+ < div class ="grid-sizer "> </ div >
3+ < div class ="grid-item ">
4+ {% if project.redirect -%}
5+ < a href ="{{ project.redirect }} ">
6+ {%- else -%}
7+ < a href ="javascript:undefined ">
8+ {%- endif %}
9+ < div class ="card hoverable ">
10+ {%- if project.img %}
11+ {%- include figure.html
12+ path=project.img
13+ alt="project thumbnail" -%}
14+ {%- endif %}
15+ < div class ="card-body ">
16+ < h2 class ="card-title "> {{ project.title }}</ h2 >
17+ < p class ="card-text "> {{ project.description }}</ p >
18+ < div class ="row ml-1 mr-1 p-0 ">
19+ {%- if project.github -%}
20+ < div class ="github-icon ">
21+ < div class ="icon " data-toggle ="tooltip " title ="Code Repository ">
22+ < a href ="{{ project.github }} "> < i class ="fab fa-github gh-icon "> </ i > </ a >
23+ </ div >
24+ {%- if project.github_stars -%}
25+ < span class ="stars " data-toggle ="tooltip " title ="GitHub Stars ">
26+ < i class ="fas fa-star "> </ i >
27+ < span id ="{{ project.github_stars }}-stars "> </ span >
28+ </ span >
29+ {%- endif %}
30+ </ div >
31+ {%- endif %}
32+ </ div >
33+ </ div >
34+ </ div >
35+ </ a >
36+ </ div >
Original file line number Diff line number Diff line change 1+ < div class ="card-item col ">
2+ {%- if project.redirect -%}
3+ < a href ="{{ project.redirect }} ">
4+ {%- else -%}
5+ < a href ="{{ project.url | relative_url }} ">
6+ {%- endif -%}
7+ < div class ="card hoverable ">
8+ < div class ="row g-0 ">
9+ {%- if project.img -%}
10+ < div class ="card-img col-md-6 ">
11+ {% include figure.html path=project.img alt="project thumbnail" %}
12+ </ div >
13+ < div class ="col-md-6 ">
14+ {%- else -%}
15+ < div class ="col-md-12 ">
16+ {%- endif -%}
17+ < div class ="card-body ">
18+ < h3 class ="card-title text-lowercase "> {{ project.title }}</ h3 >
19+ < p class ="card-text "> {{ project.description }}</ p >
20+ < div class ="row ml-1 mr-1 p-0 ">
21+ {%- if project.github -%}
22+ < div class ="github-icon ">
23+ < div class ="icon " data-toggle ="tooltip " title ="Code Repository ">
24+ < a href ="{{ project.github }} "> < i class ="fab fa-github gh-icon "> </ i > </ a >
25+ </ div >
26+ {%- if project.github_stars -%}
27+ < span class ="stars " data-toggle ="tooltip " title ="GitHub Stars ">
28+ < i class ="fas fa-star "> </ i >
29+ < span id ="{{ project.github_stars }}-stars "> </ span >
30+ </ span >
31+ {%- endif -%}
32+ </ div >
33+ {%- endif -%}
34+ </ div >
35+ </ div >
36+ </ div >
37+ </ div >
38+ </ div >
39+ </ a >
40+ </ div >
Original file line number Diff line number Diff line change @@ -21,14 +21,14 @@ horizontal: false
2121 <div class =" container " >
2222 <div class="row row-cols-2">
2323 {%- for project in sorted_projects -%}
24- {% include projects_horizontal.liquid %}
24+ {% include projects_horizontal.html %}
2525 {%- endfor %}
2626 </div>
2727 </div >
2828 {%- else -%}
2929 <div class =" grid " >
3030 {%- for project in sorted_projects -%}
31- {% include projects.liquid %}
31+ {% include projects.html %}
3232 {%- endfor %}
3333 </div >
3434 {%- endif -%}
@@ -42,14 +42,14 @@ horizontal: false
4242 <div class =" container " >
4343 <div class="row row-cols-2">
4444 {%- for project in sorted_projects -%}
45- {% include projects_horizontal.liquid %}
45+ {% include projects_horizontal.html %}
4646 {%- endfor %}
4747 </div>
4848 </div >
4949 {%- else -%}
5050 <div class =" grid " >
5151 {%- for project in sorted_projects -%}
52- {% include projects.liquid %}
52+ {% include projects.html %}
5353 {%- endfor %}
5454 </div >
5555 {%- endif -%}
You can’t perform that action at this time.
0 commit comments