From b2dacb749d1ffb7fa2d59dc951e68ae97c4b7b1e Mon Sep 17 00:00:00 2001 From: Sergey Romanenko Date: Mon, 11 Jul 2022 18:24:54 +0300 Subject: [PATCH] Sitemap 3.0.0 --- CHANGELOG.md | 2 +- settings.yaml | 2 +- src/core/Console/Commands/Sitemap/SitemapGenerateCommand.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ff0080..1946cda 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,5 @@ -# [3.0.0](https://github.com/flextype-plugins/sitemap/compare/v2.10.0...v3.0.0) (2022-06-xx) +# [3.0.0](https://github.com/flextype-plugins/sitemap/compare/v2.10.0...v3.0.0) (2022-07-11) ### Features diff --git a/settings.yaml b/settings.yaml index 1630a8d..2d77b60 100755 --- a/settings.yaml +++ b/settings.yaml @@ -33,7 +33,7 @@ date_format: Y-m-d static: # sitemap.xml path (without trailing and without starting slash) - sitemap_path: '_site' + path: '_site' # Site url (without trailing slash) site_url: '' \ No newline at end of file diff --git a/src/core/Console/Commands/Sitemap/SitemapGenerateCommand.php b/src/core/Console/Commands/Sitemap/SitemapGenerateCommand.php index 3cf66bf..0ea1bb9 100644 --- a/src/core/Console/Commands/Sitemap/SitemapGenerateCommand.php +++ b/src/core/Console/Commands/Sitemap/SitemapGenerateCommand.php @@ -33,7 +33,7 @@ protected function configure(): void { $this->setName('sitemap:generate'); $this->setDescription('Generate sitemap.'); - $this->addOption('sitemap-path', null, InputOption::VALUE_REQUIRED, 'Destination for generated static sitemap file (without trailing and without starting slash)'); + $this->addOption('path', null, InputOption::VALUE_REQUIRED, 'Destination for generated static sitemap file (without trailing and without starting slash)'); $this->addOption('site-url', null, InputOption::VALUE_REQUIRED, 'Sit url (without trailing slash).'); } @@ -41,7 +41,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int { $result = Command::SUCCESS; - $sitemapPath = $input->getOption('sitemap-path') ? $input->getOption('sitemap-path') : registry()->get('plugins.sitemap.settings.static.sitemap_path'); + $sitemapPath = $input->getOption('path') ? $input->getOption('path') : registry()->get('plugins.sitemap.settings.static.path'); $staticSitemapPath = FLEXTYPE_ROOT_DIR . '/' . $sitemapPath;