mirror of
https://github.com/sergeyyarkov/yarkov.tech.git
synced 2026-10-11 10:29:21 +03:00
refactor
This commit is contained in:
parent
2c28b35277
commit
f1dcbb536a
@ -31,9 +31,9 @@ const {
|
|||||||
<ul itemprop="keywords">
|
<ul itemprop="keywords">
|
||||||
{tags.map((tag) => (
|
{tags.map((tag) => (
|
||||||
<li>
|
<li>
|
||||||
<a rel="tag" href={`/articles/?tags=${tag.toLocaleLowerCase()}`}>{`${tag}${
|
<a rel="tag" href={`/articles/?tags=${tag.toLocaleLowerCase()}`}>
|
||||||
tags.at(-1) === tag ? "" : ","
|
{tag}
|
||||||
}`}</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
@ -49,9 +49,9 @@ const {
|
|||||||
<h1 itemprop="headline">{title}</h1>
|
<h1 itemprop="headline">{title}</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="published">
|
<div class="published">
|
||||||
<time itemprop="datePublished" datetime={pubDate.toString()}
|
<time itemprop="datePublished" datetime={pubDate.toString()}>
|
||||||
>{createDateFormatter(lang).format(pubDate)}</time
|
{createDateFormatter(lang).format(pubDate)}
|
||||||
>
|
</time>
|
||||||
<span itemprop="author">{author}</span>
|
<span itemprop="author">{author}</span>
|
||||||
</div>
|
</div>
|
||||||
{coverImage && <ArticleCover src={coverImage} alt={title} />}
|
{coverImage && <ArticleCover src={coverImage} alt={title} />}
|
||||||
@ -116,6 +116,10 @@ const {
|
|||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
column-gap: 7px;
|
column-gap: 7px;
|
||||||
row-gap: 7px;
|
row-gap: 7px;
|
||||||
|
& li:not(:last-child)::after {
|
||||||
|
content: ",";
|
||||||
|
color: var(--color-blue-400);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user