| @@ -2752,8 +2752,22 @@ | ||
| 2752 | 2752 | if ($archive_description) { |
| 2753 | 2753 | return $archive_description; |
| 2754 | 2754 | } |
| 2755 | 2755 | |
| 2756 | + // The blog-index homepage's own description (Site Identity | |
| 2757 | + // homepage_description, #897), in the same vocabulary as its title. A | |
| 2758 | + // static front page is a page, and its description is set on it. | |
| 2759 | + if (is_front_page() && is_home() && $this->site_identity_data && $this->site_identity_data['enabled']) { | |
| 2760 | + $identity = $this->site_identity_manager->get_settings('site'); | |
| 2761 | + $template = trim((string) ($identity['homepage_description'] ?? '')); | |
| 2762 | + if ($template !== '') { | |
| 2763 | + $homepage_description = trim($this->process_title_template($template, $this->get_title_placeholders())); | |
| 2764 | + if ($homepage_description !== '') { | |
| 2765 | + return $homepage_description; | |
| 2766 | + } | |
| 2767 | + } | |
| 2768 | + } | |
| 2769 | + | |
| 2756 | 2770 | // Third priority: Site Identity default meta description |
| 2757 | 2771 | if ($this->site_identity_data && $this->site_identity_data['enabled']) { |
| 2758 | 2772 | $settings = $this->site_identity_manager->get_settings('site'); |
| 2759 | 2773 | $default_description = $settings['default_meta_description'] ?? ''; |