diff --git a/CHANGELOG.md b/CHANGELOG.md index 4da8216..23c7d0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ + +# [2.0.1](https://github.com/flextype-plugins/site/compare/v2.0.0...v2.0.1) (2021-07-11) + +### Bug Fixes + +* **console** Fix settings naming for static site generation. + # [2.0.0](https://github.com/flextype-plugins/site/compare/v1.11.0...v2.0.0) (2021-07-11) diff --git a/settings.yaml b/settings.yaml index f606e56..0b261a0 100644 --- a/settings.yaml +++ b/settings.yaml @@ -144,7 +144,7 @@ minify: static: # Destination for generated static site files (without trailing and without starting slash) - site_path: '_site' + path: '_site' # Site url (without trailing slash) site_url: '' diff --git a/src/core/Console/Commands/Site/SiteGenerateCommand.php b/src/core/Console/Commands/Site/SiteGenerateCommand.php index b39e302..76b7308 100644 --- a/src/core/Console/Commands/Site/SiteGenerateCommand.php +++ b/src/core/Console/Commands/Site/SiteGenerateCommand.php @@ -35,7 +35,7 @@ protected function configure(): void { $this->setName('site:generate'); $this->setDescription('Generate site.'); - $this->addOption('site-path', null, InputOption::VALUE_REQUIRED, 'Destination for generated static site files (without trailing and without starting slash)'); + $this->addOption('path', null, InputOption::VALUE_REQUIRED, 'Destination for generated static site files (without trailing and without starting slash)'); $this->addOption('site-url', null, InputOption::VALUE_REQUIRED, 'Site url (without trailing).'); } @@ -43,7 +43,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int { $elapsedTimeStartPoint = microtime(true); - $sitePath = $input->getOption('site-path') ? $input->getOption('site-path') : registry()->get('plugins.site.settings.static.site_path'); + $sitePath = $input->getOption('path') ? $input->getOption('path') : registry()->get('plugins.site.settings.static.path'); $staticSitePath = FLEXTYPE_ROOT_DIR . '/' . $sitePath; @@ -55,7 +55,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int registry()->set('flextype.settings.base_path', ''); } - $staticSitePathMessage = registry()->get('plugins.site.settings.static.site_path'); + $staticSitePathMessage = registry()->get('plugins.site.settings.static.path'); // Site items. $items = [];