M LICENSE => LICENSE +1 -1
@@ 1,6 1,6 @@
The MIT License (MIT)
-Copyright © 2024 Mikhail Kot
+Copyright (c) 2024 Mikhail Kot
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
M config.toml => config.toml +6 -2
@@ 1,7 1,7 @@
base_url = "https://myrrc.dev"
-title = "Mikhail Kot's blog"
+title = "Mikhail Kot"
author = "Mikhail Kot"
-description = "Mikhail Kot's blog about stuff, mostly music and software"
+description = "Mikhail Kot's blog"
compile_sass = true
minify_html = true
generate_feed = true
@@ 11,3 11,7 @@ ignored_content = ["*/content/__*"]
smart_punctuation = true
[extra]
email = "to-webmaster@myrrc.dev"
+[languages.ru]
+title = "Михаил Кот"
+author = "Михаил Кот"
+generate_feed = true
R content/2024-05-23-study.rpp.md => content/2024-05-23-study-rpp.md +0 -0
A content/_index.ru.md => content/_index.ru.md +3 -0
@@ 0,0 1,3 @@
++++
+insert_anchor_links = "left"
++++
A content/electro.yml => content/electro.yml +20 -0
@@ 0,0 1,20 @@
+- date: 26.11.2016
+ name: Дорога в никуда
+ tracks:
+ - Дорога в никуда
+ - Тапёр
+- date: 20.07.2016
+ name: Летний космос
+ tracks:
+ - Восточный грув
+ - Лето
+ - Остров Пасхи
+ - Ржавый межпланетник
+ - Андромеда
+ - Караван
+ - Тёплый интеграл
+ - Ночное небо в Подмосковье
+ - Чашка ничего
+ - Зеркальный лабиринт
+ - dream, a little dream
+ - Чашка ничего (piano)
A content/music.md => content/music.md +8 -0
@@ 0,0 1,8 @@
++++
++++
+[Yandex music](https://music.yandex.ru/artist/22274471),
+[Spotify](https://open.spotify.com/artist/6GyOtbgFiwMNjh3eMlHK98),
+[iTunes](https://music.apple.com/us/artist/myrrc/1748296848)
+
+## Electronic
+{{ music() }}
A content/music.ru.md => content/music.ru.md +8 -0
@@ 0,0 1,8 @@
++++
++++
+[Яндекс музыка](https://music.yandex.ru/artist/22274471),
+[Spotify](https://open.spotify.com/artist/6GyOtbgFiwMNjh3eMlHK98),
+[iTunes](https://music.apple.com/us/artist/myrrc/1748296848)
+
+## Электронная
+{{ music() }}
M sass/_layout.sass => sass/_layout.sass +7 -0
@@ 70,3 70,10 @@ footer, .section-cut
footer
padding-bottom: 10px
+
+.lang
+ float: right
+.row
+ display: flex
+.col
+ flex: 50%
A static/doroga-v-nikuda.jpg => static/doroga-v-nikuda.jpg +0 -0
A static/doroga-v-nikuda.torrent => static/doroga-v-nikuda.torrent +0 -0
M static/favicon.ico => static/favicon.ico +0 -0
A static/letnii-kosmos.jpg => static/letnii-kosmos.jpg +0 -0
A static/letnii-kosmos.torrent => static/letnii-kosmos.torrent +0 -0
M static/popcat.gif => static/popcat.gif +0 -0
M templates/base.html => templates/base.html +1 -0
@@ 16,6 16,7 @@
<div class="wrapper">
<a class="site-title" href="{{ config.base_url }}"> {{ config.title }} </a>
<img class="popcat" src="{{ get_url(path="popcat.gif") }}" alt="popcat"/>
+ {% block lang %} {% endblock %}
</div>
</header>
<main class="page-content">
M templates/index.html => templates/index.html +21 -9
@@ 3,9 3,13 @@
<title>{{config.title}}</title>
{% endblock %}
{% block main %}
-{% set section = get_section(path="_index.md") %}
+{% if lang == "en" %} {% set ldef = "" %}
+{% else %} {% set ldef = "." ~ lang %} {% endif %}
+{% set index = "_index" ~ ldef ~ ".md" %}
+{% set section = get_section(path=index) %}
{% set posts = section.pages %}
+{% if lang == "en" %}
<figure class="quote">
<i><q>The world is invented to make laugh of you</q></i>
<figcaption>
@@ 16,21 20,29 @@
Hi! I'm Mikhail. Currently I'm a software engineer, but generally I like a lot of things:
writing code, composing and mixing music, and, of course, spending a lot of time to optimize
-nanoseconds.<br>
+nanoseconds. <a href="/cv.pdf">CV</a> · <a href="/music">Music</a>
-<a href="{{ get_url(path="/cv.pdf") }}">CV</a>
-<!-- · <a href="{{ get_url(path="music") }}">Music</a> -->
+{% else %}
+<figure class="quote">
+ <i><q>Мир придуман, чтоб смеяться над тобой</q></i>
+ <figcaption>
+ — <a href="https://multiprogramm.neocities.org/">Multiprogramm</a>,
+ <cite><a href="https://www.youtube.com/watch?v=y59AhNuCzcw">около 2016</a></cite>
+ </figcaption>
+</figure>
+
+Привет, я Михаил. Работаю программистом, но ещё мне нравится разная фигня,
+про которую я пишу. <a href="/cv.pdf">CV</a> · <a href="/music">Музыка</a>
+
+{% endif %}
<p class="section-cut">— § —</p>
<ul>
- {% for post in posts | sort(attribute="date") | reverse %}
- <li>
- {{post.date}} <a href="{{ post.permalink }}">{{ post.title }}</a>
- </li>
+ {% for post in posts | filter(attribute="date") | sort(attribute="date") | reverse %}
+ <li> {{post.date}} <a href="{{ post.permalink }}">{{ post.title }}</a> </li>
{% endfor %}
</ul>
<p class="section-cut">— § —</p>
{{ load_data(path="__pubs.md") | markdown | safe }}
{% endblock %}
-
M templates/page.html => templates/page.html +8 -0
@@ 3,6 3,14 @@
<link rel="canonical" href="{{ page.permalink | safe }}">
<title>{{ page.title }} - {{ config.title }}</title>
{% endblock %}
+
+{% block lang %} {% if page.translations | length > 1 %}
+<div class="lang"> [
+ <a href="{{ page.translations[0].permalink }}">{{ page.translations[0].lang }}</a> /
+ <a href="{{ page.translations[1].permalink }}">{{ page.translations[1].lang }}</a>
+] </div>
+{% endif %} {% endblock %}
+
{% block main %}
<header class="post-header">
<h1>{{ page.title }}</h1>
A templates/shortcodes/music.md => templates/shortcodes/music.md +11 -0
@@ 0,0 1,11 @@
+{% set albums = load_data(path="content/electro.yml") %}
+{% for album in albums %}
+<h3>{{ album.name }}</h3>
+<div class="row">
+ <div class="col"> <img src="/{{ album.name | slugify }}.jpg"></img> </div>
+ <div class="col">
+ <ol> {% for track in album.tracks %} <li> {{ track }} </li> {% endfor %} </ol>
+ {{ album.date }} <a href="/{{ album.name | slugify}}.torrent">torrent</a>
+ </div>
+</div>
+{% endfor %}