aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2024-02-14 13:48:55 +0300
committerValentin Popov <valentin@popov.link>2024-02-14 13:48:55 +0300
commit631ca196c9bbc7fc3eeef4cce6bd9a6463ef74d1 (patch)
tree43fae88532a2c9dcf998ed14661d5d8380eb544f
parentd863b358a6570e397414b21d71e6236561ea8519 (diff)
downloadvalentineus.github.io-631ca196c9bbc7fc3eeef4cce6bd9a6463ef74d1.tar.xz
valentineus.github.io-631ca196c9bbc7fc3eeef4cce6bd9a6463ef74d1.zip
Set up the RSS feed and the authors of the posts
-rw-r--r--_config.yml3
-rw-r--r--_data/authors.yml7
-rw-r--r--_includes/author.html17
-rw-r--r--_layouts/post.html3
-rw-r--r--_pages/atom.xml45
-rw-r--r--_posts/2012-01-30-getting-source-code-of-chromium.md1
-rw-r--r--_posts/2018-07-23-installing-moodle-to-fedora.md1
-rw-r--r--_posts/2019-08-15-electron-reload.md1
-rw-r--r--_posts/2023-05-01-rust-and-tl-mr3020.md1
-rw-r--r--_posts/2023-05-04-create-lib-file-from-dll.md1
10 files changed, 32 insertions, 48 deletions
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 -%}
+
+&nbsp;by&nbsp;
+
+{%- unless author.email == empty -%}
+<a href="mailto:{{- author.email | strip | url_encode -}}?subject={{- page.title | default: site.title | strip | normalize_whitespace | uri_escape -}}">{{- author.name | strip | normalize_whitespace | xml_escape -}}</a>
+{%- endunless -%}
+
+{%- if author.email == empty -%}
+{{- author.name | strip | normalize_whitespace | xml_escape -}}
+{%- endif -%}
+
+&nbsp;
+
+{%- 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
<small>
Posted
<time datetime="{{- page.date | date_to_xmlschema | xml_escape -}}">{{- page.date | date: '%B %e, %Y' | strip | normalize_whitespace | xml_escape -}}</time>
- by
- <a href="mailto:{{- site.email | strip | url_encode -}}?subject={{- page.title | default: site.title | strip | normalize_whitespace | uri_escape -}}">Valentin Popov</a>
+ {%- include author.html -%}
&hyphen;
<strong>{%- include reading-time.html -%}</strong>
</small>
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
----
-
-<?xml version="1.0" encoding="utf-8"?>
-
-<feed xmlns="http://www.w3.org/2005/Atom">
- <link href="{{ site.rss | absolute_url | xml_escape }}" rel="self" type="application/atom+xml"/>
- <link href="{{ site.url | xml_escape }}" rel="alternate" type="text/html"/>
- <id>{{ site.url | absolute_url | xml_escape }}</id>
-
- <icon>{{ "/assets/apple-touch-icon.png" | absolute_url | xml_escape }}</icon>
- <title>{{ site.title | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</title>
- <subtitle>{{ site.description | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</subtitle>
- <updated>{{ site.time | date_to_xmlschema }}</updated>
-
- <author>
- <email>{{ site.author.email | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</email>
- <name>{{ site.author.name | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</name>
- <uri>{{ site.author.url | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</uri>
- </author>
-
- {% for item in site.posts %}
- <entry>
- <link href="{{ item.url | absolute_url | xml_escape }}" rel="alternate" type="text/html"/>
- <id>{{ item.url | absolute_url | xml_escape }}</id>
-
- <title>{{ item.title | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</title>
- <summary>{{ item.description | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</summary>
- <updated>{{ item.latest_update | default: item.date | date_to_xmlschema }}</updated>
- <published>{{ item.date | date_to_xmlschema }}</published>
-
- <author>
- <email>{{ site.author.email | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</email>
- <name>{{ site.author.name | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</name>
- <uri>{{ site.author.url | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}</uri>
- </author>
-
- <content type="html" xml:base="{{ item.url | absolute_url | xml_escape }}">
- {{ item.content | strip_newlines | strip | xml_escape }}
- </content>
- </entry>
- {% endfor %}
-</feed>
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
---