Skip to content

Commit

Permalink
feat: add teachers section
Browse files Browse the repository at this point in the history
  • Loading branch information
diraven committed Feb 28, 2024
1 parent 3c4fd9d commit de45019
Show file tree
Hide file tree
Showing 25 changed files with 125 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{
"label": "build",
"type": "shell",
"command": "python3 -m generators.workshops && rm -rf public && /snap/bin/hugo",
"command": "python3 -m generators.workshops && python3 -m generators.teachers && rm -rf public && /snap/bin/hugo",
"problemMatcher": []
}
]
Expand Down
2 changes: 0 additions & 2 deletions content/pages/care.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
---
title: Догляд
menu: main
weight: 3
---

Описане в цьому пості не є істиною останньої інстанції. Довіряйте, але перевіряйте. Якщо десь надано неточну інформацію – виправте або доповніть, будь ласка, в телеграмі.
Expand Down
11 changes: 4 additions & 7 deletions content/pages/beginners.md → content/teachers/_index.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
---
title: Початківцям
title: Навчання
menu: main
weight: 2
---

# Курси

## Безкоштовні
# Закордонні

- [David Kuckhermann](https://www.youtube.com/playlist?list=PLFk7pqhdFJkEd6ueY2OA56NxkEguEB2X2)
- [Amy Naylor](https://www.youtube.com/playlist?list=PLkOKiXPWwJmxgWWLLlmOfCGLSwdV0mOD8)
- [David Charrier](https://www.youtube.com/playlist?list=PLYNGFPdbn2m5wObjBTgCq4pmgg1PscKha)
- [Peter Levitov](https://www.youtube.com/playlist?list=PLLJlwaQelAldP2JcOY9PY39JoUH3cuFk3)
- [David Urban](https://www.youtube.com/playlist?list=PLEhzkBXowfLnFuUlhDWXDEidz6g3Gz4v8)
- [Збірка майстер класів](https://www.youtube.com/playlist?list=PLYNGFPdbn2m5LP-T9HiGGWE9ftJ4zr234)

## Платні

- [Handpan Dojo](https://www.handpandojo.com/) – курс від David Kuckhermann – моя особиста рекомендація. Дуже якісний і об’ємний.
- [Master the Handpan](https://www.masterthehandpan.com/)

# Вітчизняні
12 changes: 12 additions & 0 deletions content/teachers/anatoliy_hernadenko.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: Анатолій Гернаденко
tags: ['teachers']
weight: 13
---
{{< youtube v08Jzjfc5tk >}}

- **Розташування:** -
- https://www.facebook.com/profile.php?id=100000948445592
- https://www.instagram.com/snowhang/
- https://www.youtube.com/@SnowHang

12 changes: 12 additions & 0 deletions content/teachers/illya_filipenko.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: Ілля Філіпенко
tags: ['teachers']
weight: 88
---
{{< youtube l21MiRXprR4 >}}

- **Розташування:** м. Харків, Україна
- https://www.instagram.com/drum_space_kh
- https://www.instagram.com/penta_tongue
- https://www.facebook.com/drumspace/

13 changes: 13 additions & 0 deletions content/teachers/oleksandr_streletz.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: Олександр Стрелец
tags: ['teachers']
weight: 7
---
{{< youtube O-1VFqxpW4U >}}

- **Розташування:** -
- https://www.facebook.com/profile.php?id=100091958255826
- https://www.youtube.com/channel/UCmwiUlTHUumcJjMnvVaV4_g
- https://www.instagram.com/alex_streletz
- https://www.instagram.com/handpan_lessons_streletz

2 changes: 1 addition & 1 deletion content/workshops/extraterrastrial-workshop.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Інопланетна майстерня

tags: ['tongue-drum-workshops']
weight: 924
weight: 963
---


Expand Down
2 changes: 1 addition & 1 deletion content/workshops/ge-om-music-store.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Ge Om Music Store / Your Pan

tags: ['handpan-workshops']
weight: 921
weight: 934
---
{{< youtube 1Pp1yv5XjPg >}}

Expand Down
2 changes: 1 addition & 1 deletion content/workshops/gubarev-drum.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Guda Drum / Gubarev Drum

tags: ['handpan-workshops', 'tongue-drum-workshops']
weight: 908
weight: 947
---
{{< youtube YYdWHyDW-4k >}}

Expand Down
2 changes: 1 addition & 1 deletion content/workshops/guru-drum.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Guru Drum

tags: ['tongue-drum-workshops']
weight: 989
weight: 912
---


Expand Down
2 changes: 1 addition & 1 deletion content/workshops/imago.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Imago

tags: ['handpan-workshops']
weight: 2
weight: 39
---
{{< youtube ssataMntbB0 >}}

Expand Down
2 changes: 1 addition & 1 deletion content/workshops/it-joy-instrument.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: It.Joy Instrument

tags: ['handpan-workshops']
weight: 18
weight: 100
---


Expand Down
2 changes: 1 addition & 1 deletion content/workshops/magic-drum.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Magic Drum

tags: ['tongue-drum-workshops']
weight: 938
weight: 960
---


Expand Down
2 changes: 1 addition & 1 deletion content/workshops/mysteria-zvuku.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Містерія Звуку

tags: ['tongue-drum-workshops']
weight: 916
weight: 972
---


Expand Down
2 changes: 1 addition & 1 deletion content/workshops/nova-drum.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Nova Drum

tags: ['tongue-drum-workshops', 'handpan-workshops']
weight: 42
weight: 32
---
{{< youtube KnXzn2sii6k >}}

Expand Down
2 changes: 1 addition & 1 deletion content/workshops/omana.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Omana

tags: ['handpan-workshops']
weight: 14
weight: 13
---
{{< youtube Xo6mCqv8Qvo >}}

Expand Down
2 changes: 1 addition & 1 deletion content/workshops/penta.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Пента

tags: ['tongue-drum-workshops']
weight: 982
weight: 943
---


Expand Down
2 changes: 1 addition & 1 deletion content/workshops/puzz-drum.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Puzz Drum

tags: ['tongue-drum-workshops']
weight: 930
weight: 986
---


Expand Down
2 changes: 1 addition & 1 deletion content/workshops/shana.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Шана / Guda Drum

tags: ['tongue-drum-workshops']
weight: 27
weight: 64
---
{{< youtube LoPcflNnb0A >}}

Expand Down
2 changes: 1 addition & 1 deletion content/workshops/steel-tongue-drums.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Майстерня "Глюкофони"

tags: ['tongue-drum-workshops']
weight: 999
weight: 971
---


Expand Down
2 changes: 1 addition & 1 deletion content/workshops/veles-sound-sculpture.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Veles Sound Sculpture

tags: ['handpan-workshops', 'tongue-drum-workshops']
weight: 935
weight: 947
---
{{< youtube kWCJwXsJwtk >}}

Expand Down
2 changes: 1 addition & 1 deletion content/workshops/vimana-takkar.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Vimana Takkar

tags: ['tongue-drum-workshops']
weight: 922
weight: 970
---


Expand Down
2 changes: 1 addition & 1 deletion content/workshops/zen-percussion.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Zen Percussion / Guda Drum / Orbis drum

tags: ['tongue-drum-workshops']
weight: 923
weight: 901
---


Expand Down
31 changes: 31 additions & 0 deletions generators/teachers/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import pathlib
import yaml
import random

WORKING_DIRECTORY = pathlib.Path(__file__).parent.absolute()
TEACHERS_PATH = (WORKING_DIRECTORY.parent.parent / "content" / "teachers").absolute()
DEFAULT_VALUE = "-"

for file in TEACHERS_PATH.glob("*.md"):
if file.name.startswith("_"):
continue
file.unlink()

with open(WORKING_DIRECTORY / "data.yaml", "r") as yaml_file:
data = yaml.load(yaml_file, Loader=yaml.SafeLoader)
for teacher in data["teachers"]:
with open(TEACHERS_PATH / f"{teacher['slug']}.md", "w") as file:
links = "\n".join([f"- {link}" for link in teacher.get("links", [])])
file.write(
f"""---
title: {teacher["title"]}
tags: {teacher.get("tags", [])}
weight: {random.randint(1, 100) if "weight" in teacher else random.randint(900, 999)}
---
{"{{< youtube "+teacher.get("promo_video_youtube_id")+" >}}" if teacher.get("promo_video_youtube_id") else ""}
- **Розташування:** {teacher.get("location", DEFAULT_VALUE)}
{links}
{teacher.get("description", "")}"""
)
35 changes: 35 additions & 0 deletions generators/teachers/data.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
teachers:
- slug: illya_filipenko
weight: 1
title: Ілля Філіпенко
tags:
- teachers
location: м. Харків, Україна
promo_video_youtube_id: l21MiRXprR4
links:
- https://www.instagram.com/drum_space_kh
- https://www.instagram.com/penta_tongue
- https://www.facebook.com/drumspace/

- slug: anatoliy_hernadenko
weight: 1
title: Анатолій Гернаденко
tags:
- teachers
promo_video_youtube_id: v08Jzjfc5tk
links:
- https://www.facebook.com/profile.php?id=100000948445592
- https://www.instagram.com/snowhang/
- https://www.youtube.com/@SnowHang

- slug: oleksandr_streletz
weight: 1
title: Олександр Стрелец
tags:
- teachers
promo_video_youtube_id: O-1VFqxpW4U
links:
- https://www.facebook.com/profile.php?id=100091958255826
- https://www.youtube.com/channel/UCmwiUlTHUumcJjMnvVaV4_g
- https://www.instagram.com/alex_streletz
- https://www.instagram.com/handpan_lessons_streletz

0 comments on commit de45019

Please sign in to comment.