diff --git a/wp-content/themes/hantico/assets/css/style.css b/wp-content/themes/hantico/assets/css/style.css index dbae473..eee8628 100644 --- a/wp-content/themes/hantico/assets/css/style.css +++ b/wp-content/themes/hantico/assets/css/style.css @@ -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; diff --git a/wp-content/themes/hantico/inc/schema.php b/wp-content/themes/hantico/inc/schema.php index ebab475..0b7ba55 100644 --- a/wp-content/themes/hantico/inc/schema.php +++ b/wp-content/themes/hantico/inc/schema.php @@ -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); } diff --git a/wp-content/themes/hantico/templates/template-blog.php b/wp-content/themes/hantico/templates/template-blog.php index 6c88270..1fa865d 100644 --- a/wp-content/themes/hantico/templates/template-blog.php +++ b/wp-content/themes/hantico/templates/template-blog.php @@ -36,7 +36,7 @@ Template Name: Блог
- О компании + О редакции