<?php
/**
 * Mageplaza
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Mageplaza.com license that is
 * available through the world-wide-web at this URL:
 * https://www.mageplaza.com/LICENSE.txt
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade this extension to newer
 * version in the future.
 *
 * @category    Mageplaza
 * @package     Mageplaza_Blog
 * @copyright   Copyright (c) Mageplaza (https://www.mageplaza.com/)
 * @license     https://www.mageplaza.com/LICENSE.txt
 */

use Magento\Framework\Escaper;
use Hyva\Theme\ViewModel\StoreConfig;
use Hyva\Theme\Model\ViewModelRegistry;

/** @var \Mageplaza\Blog\Block\Post\Listpost $block */
/** @var Escaper $escaper */
/** @var ViewModelRegistry $viewModels */

/** @var StoreConfig $storeConfig */
$storeConfig = $viewModels->require(StoreConfig::class);
?>
<!--Standard Meta tags by Mageplaza-->
<?php if ($metaTitle = $storeConfig->getStoreConfig('blog/post_view_page/meta_title')): ?>
<meta name="title" content="<?= $escaper->escapeHtml($metaTitle) ?>" />
<?php endif; ?>
<?php if ($metaDescription = $storeConfig->getStoreConfig('blog/post_view_page/meta_description')): ?>
<meta name="description" content="<?= $escaper->escapeHtml($metaDescription) ?>" />
<?php endif; ?>
<?php if ($metaKeywords = $storeConfig->getStoreConfig('blog/post_view_page/meta_keywords')): ?>
<meta name="keywords" content="<?= $escaper->escapeHtml($metaKeywords) ?>" />
<?php endif; ?>
<!--End Standard Meta tags by Mageplaza-->

