-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #21
- Loading branch information
Showing
14 changed files
with
243 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
@use './footer'; | ||
@use './header'; | ||
@use './logo'; | ||
@use './rss-link'; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
@use 'tokens/color'; | ||
|
||
.rss-link { | ||
display: inline-block; | ||
width: 0.5em; | ||
height: 0.5em; | ||
color: color.$rss; | ||
vertical-align: top; | ||
|
||
&:hover { | ||
color: color.$link-hover; | ||
} | ||
|
||
&:focus-visible { | ||
background-color: color.$link-hover; | ||
color: #fff; | ||
} | ||
|
||
svg { | ||
display: block; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
|
||
path { | ||
fill: currentColor; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{% macro rssLink(href) %} | ||
<a class="rss-link unstyled-link" href="{{ href }}"> | ||
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> | ||
<path d="M19.199 24C19.199 13.467 10.533 4.8 0 4.8V0c13.165 0 24 10.835 24 24h-4.801zM3.291 17.415a3.3 3.3 0 013.293 3.295A3.303 3.303 0 013.283 24C1.47 24 0 22.526 0 20.71s1.475-3.294 3.291-3.295zM15.909 24h-4.665c0-6.169-5.075-11.245-11.244-11.245V8.09c8.727 0 15.909 7.184 15.909 15.91z"/> | ||
</svg> | ||
</a> | ||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
title: Статьи For Web | ||
permalink: "{{ site.feeds.articles }}" | ||
eleventyExcludeFromCollections: true | ||
--- | ||
{% set feedUrl = page.url | absoluteUrl(site.url) %} | ||
{% set posts = collections.articles %} | ||
|
||
<?xml version="1.0" encoding="utf-8"?> | ||
<feed xmlns="http://www.w3.org/2005/Atom"> | ||
<title>{{ site.title }}</title> | ||
<link href="{{ feedUrl }}" rel="self" /> | ||
<link href="{{ site.url }}" /> | ||
<updated>{{ posts | rssLastUpdatedDate }}</updated> | ||
<id>{{ feedUrl }}</id> | ||
<author> | ||
<name>{{ site.author.name }}</name> | ||
<email>{{ site.author.email }}</email> | ||
</author> | ||
{%- for post in posts %} | ||
{% set absolutePostUrl %}{{ post.url | url | absoluteUrl(site.url) }}{% endset %} | ||
<entry> | ||
<title>{{ post.data.title }}</title> | ||
<link href="{{ absolutePostUrl }}"/> | ||
<updated>{{ post.date | rssDate }}</updated> | ||
<id>{{ absolutePostUrl }}</id> | ||
<content type="html">{{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }}</content> | ||
</entry> | ||
{%- endfor %} | ||
</feed> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.