From 631ca196c9bbc7fc3eeef4cce6bd9a6463ef74d1 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 14 Feb 2024 14:48:55 +0400 Subject: [PATCH] Set up the RSS feed and the authors of the posts --- _config.yml | 3 +- _data/authors.yml | 7 +++ _includes/author.html | 17 +++++++ _layouts/post.html | 3 +- _pages/atom.xml | 45 ------------------- ...2-01-30-getting-source-code-of-chromium.md | 1 + .../2018-07-23-installing-moodle-to-fedora.md | 1 + _posts/2019-08-15-electron-reload.md | 1 + _posts/2023-05-01-rust-and-tl-mr3020.md | 1 + _posts/2023-05-04-create-lib-file-from-dll.md | 1 + 10 files changed, 32 insertions(+), 48 deletions(-) create mode 100644 _data/authors.yml create mode 100644 _includes/author.html delete mode 100644 _pages/atom.xml diff --git a/_config.yml b/_config.yml index 232f898..ffc0a02 100644 --- a/_config.yml +++ b/_config.yml @@ -41,11 +41,12 @@ baseurl: "" title: Valentin Popov's Technology Blog description: Tech insights and coding best practices from an OpenSource enthusiast and ethical hacker. email: valentin@popov.link -rss: /atom.xml +rss: /feed.xml lang: ru # Plugins plugins: + - jekyll-feed - jekyll-sitemap # Exceptions diff --git a/_data/authors.yml b/_data/authors.yml new file mode 100644 index 0000000..d9daa7a --- /dev/null +++ b/_data/authors.yml @@ -0,0 +1,7 @@ +adrianhenke: + name: Adrian Henke + email: "" + +valentineus: + name: Valentin Popov + email: valentin@popov.link \ No newline at end of file diff --git a/_includes/author.html b/_includes/author.html new file mode 100644 index 0000000..8652c82 --- /dev/null +++ b/_includes/author.html @@ -0,0 +1,17 @@ +{%- assign author = site.data.authors[page.author] -%} + +{%- if author -%} + + by  + +{%- unless author.email == empty -%} +{{- author.name | strip | normalize_whitespace | xml_escape -}} +{%- endunless -%} + +{%- if author.email == empty -%} +{{- author.name | strip | normalize_whitespace | xml_escape -}} +{%- endif -%} + +  + +{%- endif -%} \ No newline at end of file diff --git a/_layouts/post.html b/_layouts/post.html index b988df6..a01cc74 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -9,8 +9,7 @@ layout: default Posted - by - Valentin Popov + {%- include author.html -%} ‐ {%- include reading-time.html -%} diff --git a/_pages/atom.xml b/_pages/atom.xml deleted file mode 100644 index cdaab52..0000000 --- a/_pages/atom.xml +++ /dev/null @@ -1,45 +0,0 @@ ---- -layout: null -permalink: /atom.xml ---- - - - - - - - {{ site.url | absolute_url | xml_escape }} - - {{ "/assets/apple-touch-icon.png" | absolute_url | xml_escape }} - {{ site.title | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }} - {{ site.description | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }} - {{ site.time | date_to_xmlschema }} - - - {{ site.author.email | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }} - {{ site.author.name | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }} - {{ site.author.url | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }} - - - {% for item in site.posts %} - - - {{ item.url | absolute_url | xml_escape }} - - {{ item.title | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }} - {{ item.description | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }} - {{ item.latest_update | default: item.date | date_to_xmlschema }} - {{ item.date | date_to_xmlschema }} - - - {{ site.author.email | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }} - {{ site.author.name | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }} - {{ site.author.url | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }} - - - - {{ item.content | strip_newlines | strip | xml_escape }} - - - {% endfor %} - diff --git a/_posts/2012-01-30-getting-source-code-of-chromium.md b/_posts/2012-01-30-getting-source-code-of-chromium.md index 5216482..5145695 100644 --- a/_posts/2012-01-30-getting-source-code-of-chromium.md +++ b/_posts/2012-01-30-getting-source-code-of-chromium.md @@ -2,6 +2,7 @@ description: >- Изучение исходных кодов Chromium: подготовка системы и установка необходимых программных компонентов. Руководство для начинающих разработчиков. Получите инструкции по установке Microsoft Visual Studio, Cygwin, Python и других инструментов. Действительно на январь-февраль 2012 года. title: Получение исходного кода "Chromium Projects" +author: valentineus layout: post --- diff --git a/_posts/2018-07-23-installing-moodle-to-fedora.md b/_posts/2018-07-23-installing-moodle-to-fedora.md index b142e1f..6dfa40d 100644 --- a/_posts/2018-07-23-installing-moodle-to-fedora.md +++ b/_posts/2018-07-23-installing-moodle-to-fedora.md @@ -2,6 +2,7 @@ description: >- Решение проблем установки Moodle из-за SELinux: как настроить правила доступа для устранения ошибок в веб-интерфейсе и при работе с cURL. Практические советы и команды. title: Установка Moodle в Fedora +author: valentineus layout: post --- diff --git a/_posts/2019-08-15-electron-reload.md b/_posts/2019-08-15-electron-reload.md index 89e5097..21cc2bf 100644 --- a/_posts/2019-08-15-electron-reload.md +++ b/_posts/2019-08-15-electron-reload.md @@ -2,6 +2,7 @@ description: >- Руководство по автоматической перезагрузке приложений на Electron с помощью пакетов electron-reload и electron-webpack. Обход проблем с совместимостью и использование HMR для renderer процесса. title: Горячая перезагрузка ElectronJS приложения +author: valentineus layout: post --- diff --git a/_posts/2023-05-01-rust-and-tl-mr3020.md b/_posts/2023-05-01-rust-and-tl-mr3020.md index 3be44bf..0cf59dd 100644 --- a/_posts/2023-05-01-rust-and-tl-mr3020.md +++ b/_posts/2023-05-01-rust-and-tl-mr3020.md @@ -2,6 +2,7 @@ description: >- Как настроить и оптимизировать проект Rust для кросс-компиляции на TP-Link TL-MR3020 с использованием Fedora Linux 38 и OpenWrt 22.03.4. Шаг за шагом от базового "Hello, World!" до асинхронного TCP сервера. title: Компиляция Rust на TL-MR3020 +author: valentineus layout: post --- diff --git a/_posts/2023-05-04-create-lib-file-from-dll.md b/_posts/2023-05-04-create-lib-file-from-dll.md index 706bc8f..ea5514c 100644 --- a/_posts/2023-05-04-create-lib-file-from-dll.md +++ b/_posts/2023-05-04-create-lib-file-from-dll.md @@ -2,6 +2,7 @@ description: >- Learn how to generate a *.lib file from a *.dll with this comprehensive guide. Using the Visual Studio Command Prompt and Microsoft's recommended tools, this article walks you through the steps for a seamless process. Perfect for developers working with 3rd party win dll's. title: Create ".lib" file from ".dll" (archive) +author: adrianhenke layout: post ---