Skip to content

Commit 43c9c9b

Browse files
committed
Добавляет новости в фид
1 parent 477ea35 commit 43c9c9b

2 files changed

Lines changed: 32 additions & 3 deletions

File tree

src/data/meta.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,25 @@ owner:
2020
copyright: СС BY-NC-ND 4.0
2121

2222
cover: cover.png
23+
24+
support:
25+
- name: Boosty
26+
link: https://boosty.to/webstandards_ru
27+
- name: Patreon
28+
link: https://www.patreon.com/webstandards_ru
29+
30+
news:
31+
- name: Telegram
32+
link: https://t.me/webstandards_ru
33+
- name: X
34+
link: https://x.com/webstandards_ru
35+
- name: VK
36+
link: https://vk.com/webstandards_ru
37+
- name: Facebook
38+
link: https://www.facebook.com/webstandardsru/
39+
- name: Mastodon
40+
link: https://mastodon.social/@webstandards_ru
41+
- name: Bluesky
42+
link: https://bsky.app/profile/web-standards.ru
43+
- name: LinkedIn
44+
link: https://www.linkedin.com/company/web-standards-ru/

src/feed.njk

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@
4545
{% set description %}
4646
<p>Простой способ сказать нам «спасибо» и попасть в закрытый чат:</p>
4747
<p>
48-
• <a href="https://boosty.to/webstandards_ru">Бусти</a><br>
49-
• <a href="https://www.patreon.com/webstandards_ru">Патреон</a>
48+
{%- for support in meta.support %}
49+
• <a href="{{ support.link }}">{{ support.name }}</a>{{- '<br>' | safe if not loop.last -}}
50+
{%- endfor %}
5051
</p>
5152
<p>Ведущие: {{ hosts }}</p>
5253
{%- if guests %}
@@ -56,11 +57,17 @@
5657
<p>Темы</p>
5758
<p>
5859
{%- for chapter in episode.data.chapters %}
59-
{{ chapter.time }} {{ chapter.title | safe }}<br>
60+
{{ chapter.time }} {{ chapter.title | safe }}<br>
6061
{%- endfor %}
6162
</p>
6263
{%- endif %}
6364
{{ episode.content | safe }}
65+
<p>Читайте новости</p>
66+
<p>
67+
{%- for news in meta.news %}
68+
• <a href="{{ news.link }}">{{ news.name }}</a>{{- '<br>' | safe if not loop.last -}}
69+
{%- endfor %}
70+
</p>
6471
{% endset %}
6572
<description><![CDATA[{{ description | htmlmin | safe }}]]></description>
6673
<guid isPermaLink="true">{{ meta.url }}episodes/{{ episode.fileSlug }}.mp3</guid>

0 commit comments

Comments
 (0)