Skip to content

Commit de00d6f

Browse files
committed
Site 2.0.0
1 parent c69e2e8 commit de00d6f

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
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="2.0.0"></a>
2-
# [2.0.0](https://github.com/flextype-plugins/site/compare/v1.11.0...v2.0.0) (2021-07-XX)
2+
# [2.0.0](https://github.com/flextype-plugins/site/compare/v1.11.0...v2.0.0) (2021-07-11)
33

44
### Features
55

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The following dependencies need to be downloaded and installed for Site Plugin.
1515
| [flextype](https://github.com/flextype/flextype) | ^1.0.0-alpha.1 | [download](https://github.com/flextype/flextype/releases) |
1616
| [twig](https://github.com/flextype-plugins/twig) | ^3.0.0 | [download](https://github.com/flextype-plugins/twig/releases) |
1717

18-
* twig is optional dependency.
18+
* twig plugin is optional dependency.
1919

2020
## Installation
2121

lang/ru_RU.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
site_title: Site
22
site_description: Site plugin to display entries content on the website frontend.
3-
site_powered_by_flextype: Создавайте быстрые и легкие в управлении веб-сайты c <a href="https://awilum.github.io/flextype/ru" target="_blank">Flextype</a>.
3+
site_powered_by_flextype: Создавайте быстрые и легкие в управлении веб-сайты c <a href="https://awilum.github.io/flextype" target="_blank">Flextype</a>.

settings.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ minify:
6666
html:
6767

6868
# enable HTML Compressor and Minifier
69-
enabled: true
69+
enabled: false
7070

7171
# optimize html via "HtmlDomParser()"
7272
optimize_via_dom_parser: false

src/core/Console/Commands/Site/SiteGenerateCommand.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
9999
}
100100

101101
// Set entry to the SitemapController class property $sitemap
102-
registry()->set('plugins.site.static.entries', $items);
102+
registry()->set('plugins.site.settings.static.entries', $items);
103103

104104
// Run event onSitemapAfterInitialized
105105
emitter()->emit('onStaticSiteAfterInitialized');
@@ -152,7 +152,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
152152
);
153153

154154
// Iterate through the pages.
155-
foreach(registry()->get('plugins.site.static.entries') as $page) {
155+
foreach(registry()->get('plugins.site.settings.static.entries') as $page) {
156156

157157
// Create page folder.
158158
filesystem()->directory($staticSitePath . '/' . $page['id'])->ensureExists(0755, true);
@@ -223,6 +223,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int
223223
}
224224

225225
foreach ($directories as $directory) {
226+
if (in_array($directory, registry()->get('plugins.site.settings.static.ignore.assets'))) {
227+
continue;
228+
}
229+
226230
filesystem()->directory(FLEXTYPE_PATH_PROJECT . '/assets/' . $directory)->copy($staticSitePath . '/' . FLEXTYPE_PROJECT_NAME . '/assets/' . $directory);
227231
}
228232

0 commit comments

Comments
 (0)