Skip to content

Commit b2dacb7

Browse files
committed
Sitemap 3.0.0
1 parent b0231e9 commit b2dacb7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<a name="3.0.0"></a>
2-
# [3.0.0](https://github.com/flextype-plugins/sitemap/compare/v2.10.0...v3.0.0) (2022-06-xx)
2+
# [3.0.0](https://github.com/flextype-plugins/sitemap/compare/v2.10.0...v3.0.0) (2022-07-11)
33

44
### Features
55

settings.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ date_format: Y-m-d
3333
static:
3434

3535
# sitemap.xml path (without trailing and without starting slash)
36-
sitemap_path: '_site'
36+
path: '_site'
3737

3838
# Site url (without trailing slash)
3939
site_url: ''

src/core/Console/Commands/Sitemap/SitemapGenerateCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ protected function configure(): void
3333
{
3434
$this->setName('sitemap:generate');
3535
$this->setDescription('Generate sitemap.');
36-
$this->addOption('sitemap-path', null, InputOption::VALUE_REQUIRED, 'Destination for generated static sitemap file (without trailing and without starting slash)');
36+
$this->addOption('path', null, InputOption::VALUE_REQUIRED, 'Destination for generated static sitemap file (without trailing and without starting slash)');
3737
$this->addOption('site-url', null, InputOption::VALUE_REQUIRED, 'Sit url (without trailing slash).');
3838
}
3939

4040
protected function execute(InputInterface $input, OutputInterface $output): int
4141
{
4242
$result = Command::SUCCESS;
4343

44-
$sitemapPath = $input->getOption('sitemap-path') ? $input->getOption('sitemap-path') : registry()->get('plugins.sitemap.settings.static.sitemap_path');
44+
$sitemapPath = $input->getOption('path') ? $input->getOption('path') : registry()->get('plugins.sitemap.settings.static.path');
4545

4646
$staticSitemapPath = FLEXTYPE_ROOT_DIR . '/' . $sitemapPath;
4747

0 commit comments

Comments
 (0)