Skip to content

Commit

Permalink
Sitemap 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Awilum committed Jul 11, 2022
1 parent b0231e9 commit b2dacb7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<a name="3.0.0"></a>
# [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

Expand Down
2 changes: 1 addition & 1 deletion settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: ''
4 changes: 2 additions & 2 deletions src/core/Console/Commands/Sitemap/SitemapGenerateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ 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).');
}

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;

Expand Down

0 comments on commit b2dacb7

Please sign in to comment.