Skip to content

Commit 0180de9

Browse files
committed
Add speeches page
1 parent 0a197b5 commit 0180de9

File tree

5 files changed

+71
-3
lines changed

5 files changed

+71
-3
lines changed

_config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,9 @@ collections:
191191
projects:
192192
output: true
193193
permalink: /:collection/:title/
194+
speeches:
195+
output: true
196+
permalink: /:collection/:title/
194197

195198
announcements:
196199
enabled: true

_pages/cv.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: cv
33
permalink: /cv/
44
title: Резюме
55
nav: true
6-
nav_order: 5
6+
nav_order: 6
77
cv_pdf: michael_vasiljev.pdf
88
description:
99
toc:

_pages/repositories.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ permalink: /repositories/
44
title: Репозитории
55
description:
66
nav: true
7-
nav_order: 4
7+
nav_order: 5
88
---
99

1010
{% if site.data.repositories.github_users %}

_pages/speeches.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
---
2+
layout: page
3+
title: Доклады
4+
permalink: /speeches/
5+
description:
6+
nav: true
7+
nav_order: 4
8+
display_categories: ["работа", "аномалии"]
9+
horizontal: false
10+
---
11+
12+
<!-- pages/speeches.md -->
13+
<div class="projects">
14+
{% if site.enable_project_categories and page.display_categories %}
15+
<!-- Display categorized projects -->
16+
{% for category in page.display_categories %}
17+
<a id="{{ category }}" href=".#{{ category }}">
18+
<h2 class="category">{{ category }}</h2>
19+
</a>
20+
{% assign categorized_projects = site.projects | where: "category", category %}
21+
{% assign sorted_projects = categorized_projects | sort: "importance" %}
22+
<!-- Generate cards for each project -->
23+
{% if page.horizontal %}
24+
<div class="container">
25+
<div class="row row-cols-1 row-cols-md-2">
26+
{% for project in sorted_projects %}
27+
{% include projects_horizontal.liquid %}
28+
{% endfor %}
29+
</div>
30+
</div>
31+
{% else %}
32+
<div class="row row-cols-1 row-cols-md-3">
33+
{% for project in sorted_projects %}
34+
{% include projects.liquid %}
35+
{% endfor %}
36+
</div>
37+
{% endif %}
38+
{% endfor %}
39+
40+
{% else %}
41+
42+
<!-- Display projects without categories -->
43+
44+
{% assign sorted_projects = site.projects | sort: "importance" %}
45+
46+
<!-- Generate cards for each project -->
47+
48+
{% if page.horizontal %}
49+
50+
<div class="container">
51+
<div class="row row-cols-1 row-cols-md-2">
52+
{% for project in sorted_projects %}
53+
{% include projects_horizontal.liquid %}
54+
{% endfor %}
55+
</div>
56+
</div>
57+
{% else %}
58+
<div class="row row-cols-1 row-cols-md-3">
59+
{% for project in sorted_projects %}
60+
{% include projects.liquid %}
61+
{% endfor %}
62+
</div>
63+
{% endif %}
64+
{% endif %}
65+
</div>

_projects/work_cv.md renamed to _speeches/work_cv.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: CV-модуль DCAP-системы
44
description: Разработка микросервиса с computer vision нейросетями для анализа неструктурированных данных
55
img: assets/img/computer_vision_analysis.png
66
importance: 1
7-
category: "доклады"
7+
category: "работа"
88
related_publications: false
99
---
1010

0 commit comments

Comments
 (0)