task 17075 | внес правки от 16.10

This commit is contained in:
web_103.2 committed 2026-10-16 19:32:13 +03:00
1 parent 9ab584cba5
commit 3e62e846fd
3 files changed
+14 -10

No files matched your search

@@ -4146,6 +4146,8 @@ h4 {
top: 112px;
}
.article-toc {
height: 46vh;
padding: 25px 30px;
background-color: var(--color-light);
border-radius: var(--radius-sm);
@@ -4168,8 +4170,8 @@ h4 {
width: 0;
}
.article-toc__list.is-scrollable {
padding-right: 10px;
scrollbar-width: auto;
height: 83%;
}
@-moz-document url-prefix() {
.article-toc__list.is-scrollable {
@@ -6328,6 +6330,9 @@ h4 {
background: var(--color-light);
box-shadow: 0 2px 12px color-mix(in srgb, var(--color-dark) 8%, transparent);
}
.h-article-cards__item:last-child:nth-child(odd) {
grid-column: 1 / -1;
}
.h-article-cards .h-article-cards__item p {
margin: 0;
+7 -8
View File
@@ -148,7 +148,7 @@ function hantico_schema_graph($graph) {
} else {
$description = $description ?: (get_field('brief_description', $post_id) ?: get_field('article_descr', $post_id));
$article = [
'@type' => 'BlogPosting', '@id' => $url . '#article', 'url' => $url,
'@type' => 'Article', '@id' => $url . '#article', 'url' => $url,
'headline' => hantico_schema_text(get_the_title($post_id)),
'datePublished' => get_post_time('c', true, $post_id),
'dateModified' => get_post_modified_time('c', true, $post_id),
@@ -160,13 +160,12 @@ function hantico_schema_graph($graph) {
if ($image) {
$article['image'] = $image;
}
$author_id = (int) get_post_field('post_author', $post_id);
$author = get_userdata($author_id);
if ($author && $author->display_name) {
$article['author'] = strcasecmp($author->display_name, 'Hantico') === 0
? ['@id' => $organization_id]
: ['@type' => 'Person', '@id' => home_url('/#author-' . $author_id), 'name' => $author->display_name];
}
$article['author'] = [
'@type' => 'Organization',
'@id' => home_url('/about/#editorial'),
'name' => 'Редакция Hantico',
'url' => home_url('/about/'),
];
if ($description) {
$article['description'] = hantico_schema_text($description);
}
@@ -36,7 +36,7 @@ Template Name: Блог
</div>
<div class="blog-header__action">
<a href="/about/" class="blog-item__read-btn btn btn--md btn--transp-red ">О компании</a>
<a href="/about/" class="blog-item__read-btn btn btn--md btn--transp-red ">О редакции</a>
</div>
</div>
<?php endif; ?>