protected function createBlankSite($path, PackageNameVersion $themePair)
    {
        $themeName = '';
        $packagePairs = $this->getInitialPackagePairs();

        if ($themePair->getName() !== self::BLANK_THEME) {
            $themeName = $themePair->getName();
            array_push($packagePairs, $themePair);
        }

        $orgDir = getcwd();
        chdir($path);

        $this->fs->mkdir([
            'build',
            'src/layouts',
            'src/content',
            'src/content/posts',
            'src/content/assets',
            'src/includes',
            'src/plugins',
        ]);
        $this->renderFile('site/config.yml.twig', 'config.yml', [
            'theme_name' => $themeName,
        ]);
        $this->renderFile('site/composer.json.twig', 'composer.json', [
            'requires' => $this->generateRequirePackages($packagePairs),
        ]);
        $this->fs->dumpFile('src/content/index.html', '');

        chdir($orgDir);
    }
protected function createBlankSite($path, PackageNameVersion $themePair)
    {
        $themeName = '';
        $packagePairs = $this->getInitialPackagePairs();

        if ($themePair->getName() !== self::BLANK_THEME) {
            $themeName = $themePair->getName();
            array_push($packagePairs, $themePair);
        }

        $orgDir = getcwd();
        chdir($path);

        $this->fs->mkdir([
            'build',
            'src/layouts',
            'src/content',
            'src/content/posts',
            'src/content/assets',
            'src/includes',
            'src/plugins',
        ]);
        $this->renderFile('site/config.yml.twig', 'config.yml', [
            'theme_name' => $themeName,
        ]);
        $this->renderFile('site/composer.json.twig', 'composer.json', [
            'requires' => $this->generateRequirePackages($packagePairs),
        ]);
        $this->fs->dumpFile('src/content/index.html', '');

        chdir($orgDir);
    }
protected function createBlankSite ( $ path , PackageNameVersion $ themePair ) { $ themeName = '' ; $ packagePairs = $ this -> getInitialPackagePairs ( ) ; if ( $ themePair -> getName ( ) !== self :: BLANK_THEME ) { $ themeName = $ themePair -> getName ( ) ; array_push ( $ packagePairs , $ themePair ) ; } $ orgDir = getcwd ( ) ; chdir ( $ path ) ; $ this -> fs -> mkdir ( [ 'build' , 'src/layouts' , 'src/content' , 'src/content/posts' , 'src/content/assets' , 'src/includes' , 'src/plugins' , ] ) ; $ this -> renderFile ( 'site/config.yml.twig' , 'config.yml' , [ 'theme_name' => $ themeName , ] ) ; $ this -> renderFile ( 'site/composer.json.twig' , 'composer.json' , [ 'requires' => $ this -> generateRequirePackages ( $ packagePairs ) , ] ) ; $ this -> fs -> dumpFile ( 'src/content/index.html' , '' ) ; chdir ( $ orgDir ) ; }
Creates a blank site.

@param string             $path      Where the site will be located
@param PackageNameVersion $themePair Theme pair
Creates a blank site .